Commit e9a8bb7c authored by Kamlesh Todai's avatar Kamlesh Todai
Browse files

Changes to fix request #4 of delivery collection on Azure and other platforms

parent 8b1ba70a
Pipeline #5597 canceled with stages
in 6 seconds
......@@ -333,9 +333,10 @@
"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\");",
" });",
" // \"Azure\" \"GCP\" \"AWS\" \"IBM no response\"",
" const words = ['Access Denied', 'not authorized', 'Missing authorization'];",
" const input = resBody.message;",
" tests[\"Response contains valid string: \" + words] = words.some(word => input.includes(word));",
" }",
"}",
"catch (e) {",
......@@ -347,6 +348,9 @@
}
],
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
......
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