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 tests for clusteroperatoraro controller #2974

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

tsatam
Copy link
Collaborator

@tsatam tsatam commented Jun 21, 2023

Which issue this PR addresses:

None

What this PR does / why we need it:

Add additional test coverage for the clusteroperatoraro controller, responsible for populating the ARO Cluster Operator resource.

The tests specifically cover the issue found and fixed in #2903 by validating that the version remains set on the resource on all Reconcile scenarios.

Test plan for issue:

The PR is just tests

Is there any documentation that needs to be updated for this PR?

No.

SudoBrendan
SudoBrendan previously approved these changes Jul 11, 2023
Copy link
Collaborator

@SudoBrendan SudoBrendan left a comment

Choose a reason for hiding this comment

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

This is really great. Should we add a test to never set Degraded status?

@tsatam
Copy link
Collaborator Author

tsatam commented Jul 12, 2023

I added a test to ensure we do not set Degraded=True on the operator when controller Degraded=True conditions are present.

Copy link
Contributor

@jhoreman jhoreman left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this!

@cadenmarchese cadenmarchese merged commit 2710ec3 into Azure:master Jul 19, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants