Commit 57ec4833 authored by Alan Braz's avatar Alan Braz
Browse files

fix return codes and messages

parent 2c4a488a
Pipeline #5894 failed with stages
in 8 seconds
......@@ -591,11 +591,11 @@
"id": "1b392096-615a-4114-ad52-32f19affd78a",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is ?\", function () {",
"pm.test(\"Status code is 400\", function () {",
" pm.response.to.have.status(400);",
"});",
"pm.test(\"Status description -\", function () {",
" pm.response.to.have.status(\"?\");",
"pm.test(\"Status description - Bad Request\", function () {",
" pm.response.to.have.status(\"Bad Request\");",
"});"
],
"type": "text/javascript"
......@@ -714,7 +714,7 @@
" pm.response.to.have.status(409);",
"});",
"pm.test(\"Status description - Conflict. Failed to insert group. Entity already exists.\", function () {",
" pm.response.to.have.status(\"Conflict. Failed to insert group. Entity already exists.\");",
" pm.response.to.have.status(\"Conflict\");",
"});"
],
"type": "text/javascript"
......@@ -838,11 +838,11 @@
"id": "52aa7e61-7ce8-4d5b-ae49-a153336b2194",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is ?\", function () {",
" pm.response.to.have.status(\"?\");",
"pm.test(\"Status code is 401\", function () {",
" pm.expect(pm.response.code).to.equal(401);",
"});",
"pm.test(\"Status description - \", function () {",
" pm.response.to.have.status(\"?\");",
"pm.test(\"Status description - Unauthorized\", function () {",
" pm.response.to.have.status(\"Unauthorized\");",
"});"
],
"type": "text/javascript"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment