-
Notifications
You must be signed in to change notification settings - Fork 27
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
create auth api tests for user endpoints #364
Conversation
Signed-off-by: Aman Dwivedi <[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.
Looks good. Checks on status code from response can also be added
Signed-off-by: Aman Dwivedi <[email protected]>
}).then((res) => { | ||
expect(res.body).to.have.property("error"); | ||
expect(res.body).to.have.property("error_description"); | ||
expect(res.body.error).to.eq("unauthorized"); |
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.
Can you create a constant for the error: unauthorized
and use it everywhere? It will be easy to maintain the error messages in the future.
Signed-off-by: Aman Dwivedi <[email protected]>
@SarthakJain26 @Saranya-jena Thanks for the review, added the requested changes (status code checks and constants for error codes). |
LGTM, thank you for the efforts 🚀 |
* create auth api tests for user endpoints Signed-off-by: Aman Dwivedi <[email protected]> Signed-off-by: Neelanjan Manna <[email protected]>
* Fixed the failing tests (#365) Signed-off-by: Jonsy13 <[email protected]> Signed-off-by: Neelanjan Manna <[email protected]> * create auth api tests for user endpoints (#364) * create auth api tests for user endpoints Signed-off-by: Aman Dwivedi <[email protected]> Signed-off-by: Neelanjan Manna <[email protected]> * added m-agent process-kill pipeline and BDD test cases Signed-off-by: neelanjan00 <[email protected]> Signed-off-by: Neelanjan Manna <[email protected]> * changed vm zone Signed-off-by: Neelanjan Manna <[email protected]> * updated charts Signed-off-by: Neelanjan Manna <[email protected]> * updated yaml syntax Signed-off-by: Neelanjan Manna <[email protected]> * added nightly pipeline; renamed experiment pipeline Signed-off-by: Neelanjan Manna <[email protected]> * renamed experiment pipeline Signed-off-by: Neelanjan Manna <[email protected]> * corrected yaml format Signed-off-by: Neelanjan Manna <[email protected]> * create auth api tests for project endpoints (#366) Signed-off-by: Aman Dwivedi <[email protected]> Signed-off-by: Neelanjan Manna <[email protected]> * updated gcloud sdk setup action version Signed-off-by: Neelanjan Manna <[email protected]> * updated the zones Signed-off-by: Neelanjan Manna <[email protected]> * updated command for matrix and pid Signed-off-by: Neelanjan Manna <[email protected]> * added debug echo Signed-off-by: Neelanjan Manna <[email protected]> * added debug echo to normal pipeline Signed-off-by: Neelanjan Manna <[email protected]> * added debug Signed-off-by: Neelanjan Manna <[email protected]> * removed line breaks Signed-off-by: Neelanjan Manna <[email protected]> * added sleep Signed-off-by: Neelanjan Manna <[email protected]> * removed line break Signed-off-by: Neelanjan Manna <[email protected]> * used jq for parsing json Signed-off-by: Neelanjan Manna <[email protected]> * updated command syntax Signed-off-by: Neelanjan Manna <[email protected]> * added KUBECONFIG env Signed-off-by: Neelanjan Manna <[email protected]> * added EOF and added gcloud sdk Signed-off-by: Neelanjan Manna <[email protected]> * added EOF and added gcloud sdk Signed-off-by: Neelanjan Manna <[email protected]> * added PROCESS_IDS env Signed-off-by: Neelanjan Manna <[email protected]> * updated sleep to 30s Signed-off-by: Neelanjan Manna <[email protected]> * added debug steps Signed-off-by: Neelanjan Manna <[email protected]> * replaced jq with grep Signed-off-by: Neelanjan Manna <[email protected]> * added debug step Signed-off-by: Neelanjan Manna <[email protected]> * added debug step Signed-off-by: Neelanjan Manna <[email protected]> * added debug step Signed-off-by: Neelanjan Manna <[email protected]> * added debug step Signed-off-by: Neelanjan Manna <[email protected]> * updated set-output steps Signed-off-by: Neelanjan Manna <[email protected]> * used artifactory to upload and download secrets Signed-off-by: Neelanjan Manna <[email protected]> * added artifact debug step Signed-off-by: Neelanjan Manna <[email protected]> * reordered download artifact step Signed-off-by: Neelanjan Manna <[email protected]> * split serial and parallel tests Signed-off-by: Neelanjan Manna <[email protected]> * corrected syntax Signed-off-by: Neelanjan Manna <[email protected]> * segregated delete vm job Signed-off-by: Neelanjan Manna <[email protected]> * added missing gcloud setup step Signed-off-by: Neelanjan Manna <[email protected]> * added chaos workflow related tests (#370) * added chaos workflow related tests Signed-off-by: Aman Dwivedi <[email protected]> * updated cluster tests Signed-off-by: Aman Dwivedi <[email protected]> Signed-off-by: Neelanjan Manna <[email protected]> * updated nightly pipeline Signed-off-by: Neelanjan Manna <[email protected]> * updated outputs, removed debug steps Signed-off-by: Neelanjan Manna <[email protected]> Co-authored-by: Vedant Shrotria <[email protected]> Co-authored-by: Aman Dwivedi <[email protected]>
Proposed changes
Summarize your changes here to communicate with the reviewers and make sure to put the link of the related issue
How has this been tested:
Types of changes
What types of changes does your code introduce to Litmus? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Documentation
Special notes for your reviewer:
Contains tests for user related apis. The findings from this test are reported at #362 .
cc @Jonsy13