Commit 14f701bc authored by Kamlesh Todai's avatar Kamlesh Todai
Browse files

Merge branch 'KamleshFixLegalAPICollectionJul142020' into 'master'

Fix LegalTag API collection request permission access return 401 on aws and...

See merge request !46
parents 1b5b6763 8b20e3f1
Pipeline #3404 failed with stages
in 9 seconds
......@@ -344,12 +344,20 @@
"id": "9251b44b-3b7d-420e-b802-c5acf2669091",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 401\", function () {",
" pm.response.to.have.status(401);",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"/*pm.test(\"Status description - You do not have permissions to access this API.\", function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/",
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}",
""
],
"type": "text/javascript"
......@@ -370,7 +378,7 @@
{
"key": "slb-data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
"value": "sln_{{data-partition-id}}"
}
],
"body": {
......@@ -592,13 +600,20 @@
"id": "82291262-da80-4181-8ce3-869bc3467d0d",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 401\", function () {",
" pm.response.to.have.status(401);",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"",
"/*pm.test(\"Status description - You do not have permissions to access this API.\" , function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/"
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......@@ -611,7 +626,7 @@
"description": "This value should be the desired data partition id.",
"key": "slb-data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
"value": "sln_{{data-partition-id}}"
}
],
"url": {
......@@ -886,12 +901,20 @@
"id": "ad246afe-808c-47b1-8d21-28a6d0b7842d",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 401\", function () {",
" pm.response.to.have.status(401);",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"/*pm.test(\"Status description - You do not have permissions to access this API.\", function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/"
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......@@ -1115,7 +1138,7 @@
"variable": [
{
"key": "nameInvalid",
"value": "{{LegalTagNameExists}}"
"value": "{{LegalTagNameExists}}_Invalid"
}
]
}
......@@ -1131,12 +1154,20 @@
"id": "ed5b5355-aa86-4192-b1f6-4e5c08afe633",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 401\", function () {",
" pm.response.to.have.status(401);",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"/*pm.test(\"Status description - You do not have permissions to access this API.\", function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/"
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......@@ -1149,7 +1180,7 @@
"description": "This value should be the desired data partition id.",
"key": "slb-data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
"value": "sln_{{data-partition-id}}"
}
],
"url": {
......@@ -1463,12 +1494,20 @@
"id": "f40d6230-2402-42e6-aed4-390f3a0c8d96",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 401\", function () {",
" pm.response.to.have.status(401);",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"/*pm.test(\"Status description - You do not have permissions to access this API.\", function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/"
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......@@ -1481,7 +1520,7 @@
"description": "This value should be the desired data partition id.",
"key": "slb-data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
"value": "sln_{{data-partition-id}}"
},
{
"key": "Content-Type",
......@@ -1587,12 +1626,20 @@
"id": "d7cc201e-dbb8-4ecc-ba35-c93c0b55ca70",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 401\", function () {",
" pm.response.to.have.status(401);",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"/*pm.test(\"Status description - You do not have permissions to access this API.\", function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/"
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......@@ -1605,7 +1652,7 @@
"description": "This value should be the desired data partition id.",
"key": "slb-data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
"value": "sln_{{data-partition-id}}"
}
],
"url": {
......@@ -1834,12 +1881,20 @@
"id": "816579e5-db82-4b21-987e-6c78f58fe9e8",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 401\", function () {",
" pm.response.to.have.status(401);",
"pm.test(\"Status code to be 401 or 403\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([401,403]);",
"});",
"/*pm.test(\"Status description - You do not have permissions to access this API.\", function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/"
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has not authorized string\", function () {",
" pm.expect(pm.response.text()).to.include(\"not authorized\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......@@ -1852,7 +1907,7 @@
"description": "This value should be the desired data partition id.",
"key": "slb-data-partition-id",
"type": "text",
"value": "{{data-partition-id}}"
"value": "sln_{{data-partition-id}}"
},
{
"key": "Content-Type",
......@@ -1887,12 +1942,23 @@
"id": "f35a97ad-f922-4d31-bc59-e0a107383b76",
"exec": [
"// Validate the status code and description",
"pm.test(\"Status code is 404\", function () {",
" pm.response.to.have.status(404);",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"/*pm.test(\"Status description - You do not have permissions to access this API.\", function () {",
" pm.response.to.have.status(\"You do not have permissions to access this API.\");",
"});*/"
"});*/",
"try {",
" let resBody = pm.response.json();",
" if (resBody != null) {",
" pm.test(\"Response has LegalTag not found\", function () {",
" pm.expect(pm.response.text()).to.include(\"LegalTag not found\");",
" });",
" }",
"}",
"catch (e) {",
" console.log(e.message);",
"}"
],
"type": "text/javascript"
}
......
Supports Markdown
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