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

Add status reconcile tests #2416

Merged
merged 10 commits into from
Jun 10, 2024
Merged

Add status reconcile tests #2416

merged 10 commits into from
Jun 10, 2024

Conversation

manno
Copy link
Member

@manno manno commented May 7, 2024

Refers to #2400

Add integration tests to check status reconciles

  • BundleDeployment triggers Bundle
  • Bundle triggers GitRepo
  • BundleDeployment triggers Cluster
    • uses BundleDeployment and GitRepo for update
  • Cluster triggers ClusterGroup

@manno manno changed the base branch from main to clustergroup-controlle-migration May 7, 2024 16:27
Base automatically changed from clustergroup-controlle-migration to main May 8, 2024 11:14
@manno manno force-pushed the add-status-reconcile-tests branch from 383f119 to 6b878d7 Compare May 8, 2024 12:36
@rubhanazeem rubhanazeem force-pushed the add-status-reconcile-tests branch 9 times, most recently from 7ccb214 to 157aa9f Compare May 27, 2024 18:38
@rubhanazeem rubhanazeem force-pushed the add-status-reconcile-tests branch 2 times, most recently from b08c007 to c857009 Compare May 28, 2024 15:22
@rubhanazeem rubhanazeem marked this pull request as ready for review May 28, 2024 15:49
@rubhanazeem rubhanazeem requested a review from a team as a code owner May 28, 2024 15:49
@rubhanazeem rubhanazeem force-pushed the add-status-reconcile-tests branch 2 times, most recently from 5f12e60 to 27674fa Compare May 29, 2024 12:07
Copy link
Contributor

@0xavi0 0xavi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a few comments and questions.

In general I think we can check for more Status fields and verify that all fields make sense after updating dependant objects.

The tests make sense to verify that updating a bundledeployment triggers an update in bundle or gitrepo (for example), but I think we could also use the tests for verifying that the whole Status is what we expect to be.

integrationtests/controller/bundle/status_test.go Outdated Show resolved Hide resolved
integrationtests/controller/bundle/status_test.go Outdated Show resolved Hide resolved
integrationtests/controller/bundle/status_test.go Outdated Show resolved Hide resolved
integrationtests/controller/gitrepo/suite_test.go Outdated Show resolved Hide resolved
@rubhanazeem rubhanazeem force-pushed the add-status-reconcile-tests branch 7 times, most recently from 40cd41c to b184137 Compare June 5, 2024 13:01
manno and others added 4 commits June 5, 2024 15:19
* BundleDeployment triggers Bundle
* Bundle triggers GitRepo
* BundleDeployment triggers Cluster
  * uses BundleDeployment and GitRepo for update
* Cluster triggers ClusterGroup
Triggers by status change on bundleDeployments
Triggers by a change in cluster
0xavi0
0xavi0 previously approved these changes Jun 10, 2024
integrationtests/controller/bundle/status_test.go Outdated Show resolved Hide resolved
@0xavi0 0xavi0 self-requested a review June 10, 2024 10:56
0xavi0
0xavi0 previously approved these changes Jun 10, 2024
@rubhanazeem rubhanazeem merged commit 96b321f into main Jun 10, 2024
8 checks passed
@rubhanazeem rubhanazeem deleted the add-status-reconcile-tests branch June 10, 2024 14:23
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

Successfully merging this pull request may close these issues.

None yet

3 participants