-
Notifications
You must be signed in to change notification settings - Fork 39
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
Adding Pod name for idle email notification #478
Adding Pod name for idle email notification #478
Conversation
Signed-off-by: Feny Mehta <[email protected]>
Hi @fbm3307. Thanks for your PR. I'm waiting for a codeready-toolchain member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
Codecov Report
@@ Coverage Diff @@
## master #478 +/- ##
==========================================
+ Coverage 82.34% 82.40% +0.06%
==========================================
Files 30 30
Lines 3160 3172 +12
==========================================
+ Hits 2602 2614 +12
Misses 426 426
Partials 132 132
|
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
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.
Nice job!
I left few minor comments only.
Signed-off-by: Feny Mehta <[email protected]>
/test e2e |
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
Signed-off-by: Feny Mehta <[email protected]>
nsTmplSet := newNSTmplSet(test.MemberOperatorNs, "alex", "advanced", "abcde11", namespaces, usernames) | ||
mur := newMUR("alex") | ||
reconciler, _, _, _ := prepareReconcile(t, idler.Name, getHostCluster, idler, nsTmplSet, mur) | ||
payloads := preparePayloads(t, reconciler, idler.Name, "", time.Now()) |
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.
could we use a different name of the variable instead of payloads since it shadows the struct in here https://github.com/codeready-toolchain/member-operator/blob/master/controllers/idler/idler_controller_test.go#L796
Maybe we should a check here to confirm that the appName and appType are rightly passed to the notification as well - https://github.com/codeready-toolchain/member-operator/blob/master/controllers/idler/idler_controller_test.go#L326 |
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 good overall! left some comments and need to fix the cyclomatic complexity in test
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 good! I've reduced the code duplication in the tests though: 8ddb790
The only thing is left is the "standalone Pod" use case. We need to cover it by another tests. Please see my comment. The rest looks good!
Right. I suggest another test which would cover the standalone pod and the notification's appName & appType all together. See my comment above. |
Signed-off-by: Feny Mehta <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
yes updated it with new test case |
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 good! Thank you for addressing all the comments.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexeykazakov, fbm3307 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 |
Adding the Pod name for idle email notification .
https://issues.redhat.com/browse/SANDBOX-186
related PR codeready-toolchain/host-operator#878