-
Notifications
You must be signed in to change notification settings - Fork 6.4k
chore(tests): add unit tests for isAppHealthy of ApplicationSet #24487
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Kanika Rana <[email protected]>
…setCache Signed-off-by: Kanika Rana <[email protected]>
✅ Preview Environment deployed on Bunnyshell
See: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
@@ -7650,3 +7650,276 @@ func TestIsRollingSyncDeletionReversed(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TestIsApplicationHealthy tests if the application is healthy. |
nit
expectedResult: false, | ||
}, | ||
{ | ||
name: "healthy but out of sync", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "healthy but out of sync", | |
name: "healthy but out of sync", |
I don't know where it would be suitable, but we should mention somewhere that a healthy status doesn't confirm that an application is healthy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments otherwise LGTM!
isApplicationHealthy() is used by appSyncEnabledForNextStep() in progressive sync to determine application in next step is ready to be synced. While investigating another issue, I noticed that this function doesn’t currently have dedicated tests — adding them here should be helpful.
Checklist: