-
Notifications
You must be signed in to change notification settings - Fork 47
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
Improve test coverage of backend pt2 #615
Conversation
Signed-off-by: John Pitman <jpitman@redhat.com>
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #615 +/- ##
==========================================
+ Coverage 56.04% 56.12% +0.07%
==========================================
Files 100 100
Lines 17596 17596
==========================================
+ Hits 9862 9876 +14
+ Misses 6513 6497 -16
- Partials 1221 1223 +2 ☔ View full report in Codecov by Sentry. |
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.
Looks great @jopit . I think it needs a rebase to sync with the latest main
/lgtm
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.
Looks great, thanks @jopit, and thanks @chetan-rns for reviewing!
One final request: in reconcileRepositoryCredentialStatus
, the following block isn't covered, but it should just be a matter of writing a quick test to call this function with an invalid objectMeta
, and verify it doesn't explode:
log.Info(fmt.Sprintf("could not find GitopsDeploymentRepositoryCredential %s in the cluster. Skipping reconciliation.", gitopsDeploymentRepositoryCredentialCR.GetName()))
return
Signed-off-by: John Pitman <jpitman@redhat.com>
I've made all requested changes. |
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.
Perfect, thanks again @jopit!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chetan-rns, jgwest, jopit The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description:
Link to JIRA Story (if applicable): https://issues.redhat.com/browse/GITOPSRVCE-696