Skip to content

showcase how to test operator #860

@scrocquesel

Description

@scrocquesel

Actually, tests are E2E integration tests and require external dependencies (database instance, k8s cluster). In some CI environment, it may not be possible to do so.

We should be able to unit test with mock for those dependencies. This would allow to add more tests as we have more control on the state of those dependencies.

See related works on quarkus extension to unit test mysql schema operator : https://github.com/quarkiverse/quarkus-operator-sdk/pull/201/files#diff-43e4c3f21bc716a010119d458691c0a57aeafe813c6606e805c7d63a62da3e17

Metadata

Metadata

Assignees

No one assigned

    Labels

    examplesImprovements to the example projectstests-epic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions