Repository navigation
Add rollout deployment utility edge-case tests - #310
Merged
keithchong merged 1 commit intoOct 28, 2026
Merged
keithchong merged 1 commit into
keithchong merged 1 commit into
Conversation
Signed-off-by: trdoyle <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #310 +/- ##
==========================================
+ Coverage 11.30% 14.16% +2.86%
==========================================
Files 169 192 +23
Lines 6679 7533 +854
Branches 2235 2507 +272
==========================================
+ Hits 755 1067 +312
- Misses 5923 6217 +294
- Partials 1 249 +248
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
keithchong
approved these changes
Oct 28, 2026
keithchong
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Great to see getReplicaSetInfo and getPodStatus being tested.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds edge-case unit tests for rollout deployment utilities.
Covers:
Baseline Terminating / Pending / Running / Succeeded / CrashLoopBackOff / ScaledDown coverage was already in PR Add unit test infrastructure and inline snapshot tests #245.
Jira:
https://redhat.atlassian.net/browse/GITOPS-10538
Note:
Will need to be ported to
release-4.18also.Run tests:
$ pnpm test -- src/gitops/components/shared/pod-utils.test.ts src/gitops/components/rollout/revisions/ReplicaSetInfo.test.ts