Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider controller integration tests #446

Open
alexgeorgousis opened this issue Jan 22, 2025 · 0 comments
Open

Provider controller integration tests #446

alexgeorgousis opened this issue Jan 22, 2025 · 0 comments

Comments

@alexgeorgousis
Copy link
Contributor

alexgeorgousis commented Jan 22, 2025

Overview

We want to add integration tests (running in minikube) for the Provider controller. Specifically we want to test that the Provider controller manages the provider service Deployment correctly in every stage of the Provider resource lifecycle.

We're raising a dedicated issue to do this since we don't have any integration tests for any of our controllers, so we'll need to add quite a bit of scaffolding to introduce them for the first time.

Test cases

  • Provider resource Create | Update | Delete:
    • Create Provider -> Assert SynchronizationState = Creating -> Assert Deployment and Service eventually created and healthy -> Assert SynchronizationState = Succeeded
    • Update Provider -> Assert SynchronizationState = Updating -> Assert Deployment and Service eventually updated and healthy -> Assert SynchronizationState = Succeeded
    • Delete Provider -> Assert SynchronizationState = Deleting -> Assert Deployment and Service eventually deleted
  • Deployment resource Update | Delete:
    • Update Deployment -> Assert Provider SynchronizationState = Updating -> Assert Deployment eventually rolled back and healthy -> Assert Provider SynchronizationState = Succeeded
    • Delete Deployment -> Assert Provider SynchronizationState = Creating -> Assert Deployment eventually rolled back and healthy -> Assert Provider SynchronizationState = Succeeded
  • Service resource Update | Delete:
    • Identical to Deployment above
@alexgeorgousis alexgeorgousis changed the title Add integrated tests for Providers Add integration tests for Providers Feb 12, 2025
@alexgeorgousis alexgeorgousis changed the title Add integration tests for Providers Provider controller integration tests Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant