-
Notifications
You must be signed in to change notification settings - Fork 55
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
DXCDT-386: Make api test cases more robust #665
Conversation
df0efc4
to
7aa952f
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## DXCDT-386-log-stream-tests #665 +/- ##
==============================================================
+ Coverage 51.12% 51.15% +0.02%
==============================================================
Files 92 92
Lines 11607 11607
==============================================================
+ Hits 5934 5937 +3
+ Misses 5244 5242 -2
+ Partials 429 428 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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, just a non-blocking nit.
test/integration/api-test-cases.yaml
Outdated
json: | ||
idle_session_lifetime: "72" | ||
|
||
004 - it fails to use the api command to patch tenant settings with wrong json: |
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.
004 - it fails to use the api command to patch tenant settings with wrong json: | |
004 - it fails to use the api command to patch tenant settings with invalid json: |
7aa952f
to
b37ebbb
Compare
🔧 Changes
The api command test cases seem to be very flaky due to the big json output and commander having issues parsing it and not finding the right values. In this PR we're leveraging the query parameters to only get back one field and check it for the right value.
📚 References
🔬 Testing
📝 Checklist