Skip to content
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

ci(postman): log request id for user tests #5159

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
console.log("[LOG]::x-request-id - " + pm.response.headers.get("x-request-id"));

// Validate status 4xx
pm.test("[POST]::/user/v2/signin?token_only=true - Status code is 401", function () {
pm.response.to.have.status(401);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
console.log("[LOG]::x-request-id - " + pm.response.headers.get("x-request-id"));

// Validate status 2xx
pm.test("[POST]::user/v2/signin?token_only=true - Status code is 2xx", function () {
pm.response.to.be.success;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
console.log("[LOG]::x-request-id - " + pm.response.headers.get("x-request-id"));

// Validate status code is 4xx Bad Request
pm.test("[POST]::/user/v2/signin - Status code is 401", function () {
pm.response.to.have.status(401);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
console.log("[LOG]::x-request-id - " + pm.response.headers.get("x-request-id"));

// Validate status 2xx
pm.test("[POST]::/user/v2/signin - Status code is 2xx", function () {
pm.response.to.be.success;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
console.log("[LOG]::x-request-id - " + pm.response.headers.get("x-request-id"));

// Validate status 2xx
pm.test("[POST]::/user/connect_account - Status code is 2xx", function () {
pm.response.to.be.success;
Expand All @@ -21,3 +23,4 @@ pm.test("[POST]::/user/connect_account - Response contains is_email_sent", funct
pm.expect(jsonData).to.have.property("is_email_sent");
pm.expect(jsonData.is_email_sent).to.be.true;
});

Loading
Loading