-
Notifications
You must be signed in to change notification settings - Fork 126
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
test: improve metrics integration tests by adding kuttl log collectors #2765
Conversation
Signed-off-by: Rizul Gupta <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2765 +/- ##
==========================================
- Coverage 85.71% 85.62% -0.10%
==========================================
Files 160 160
Lines 10163 10140 -23
==========================================
- Hits 8711 8682 -29
- Misses 1171 1176 +5
- Partials 281 282 +1 see 13 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Rizul Gupta <[email protected]>
hello @rizul2108 ! Can you please fit the yamllint errors? here are the logs: ./test/testmetrics/metrics-hpa/01-assert.yaml ./test/testmetrics/metrics/02-teststep-assert.yaml Thank you! |
Hi @rizul2108 thank you for your contribution! As by the issue, you need to modify your command to also log
|
Co-authored-by: odubajDT <[email protected]> Signed-off-by: Rizul Gupta <[email protected]>
Co-authored-by: odubajDT <[email protected]> Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
|
Hi @rizul2108 thanks for reaching out
metrics-operator is a standard pod in the Keptn default namespace (keptn-system). You should be able to access its logs in the same manner as you are already doing with the pods of the podtato-head application
Please be aware, these are not pods, those are resources, you can execute |
|
Signed-off-by: Rizul Gupta <[email protected]>
You should get logs from the metrics-operator, for the rest should be enough to use |
Ok sure, I will change it and push that in some time. |
Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
Co-authored-by: odubajDT <[email protected]> Signed-off-by: Rizul Gupta <[email protected]>
Co-authored-by: odubajDT <[email protected]> Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
Signed-off-by: Rizul Gupta <[email protected]>
The sonar cloud test is failing what I will have to change to pass this test? |
That's not caused by your code changes, you can ignore the failure |
Ok thanks @odubajDT |
Signed-off-by: Rizul Gupta <[email protected]>
Quality Gate failedFailed conditions 3.5% Duplication on New Code (required ≤ 3%) |
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.
Thank you for contribution!
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.
LGTM thank you for the copntribution!
keptn#2765) Signed-off-by: Rizul Gupta <[email protected]> Signed-off-by: Rizul Gupta <[email protected]> Signed-off-by: odubajDT <[email protected]> Co-authored-by: odubajDT <[email protected]> Signed-off-by: vickysomtee <[email protected]>
I have added collectors for the Metrics Integration Tests.
Fixes #2699