Skip to content

Commit

Permalink
Modified Postman setup step to ensure descriptors are created during …
Browse files Browse the repository at this point in the history
…setup steps.
  • Loading branch information
gmcelhanon committed Nov 11, 2024
1 parent 4c12d6e commit 08157ec
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"exec": [
""
],
"type": "text/javascript"
"type": "text/javascript",
"packages": {}
}
},
{
Expand Down Expand Up @@ -73,14 +74,19 @@
" };",
"",
" pm.sendRequest(descriptorPostRequest, function (err, response) {",
" pm.test(`Should create ${descriptorName} value '${codeValue}'.`, () => {",
" pm.expect(response.code).to.be.oneOf([200, 201]);",
" });",
"",
" if (err) {",
" console.log(err);",
" }",
" });",
" });",
"});"
],
"type": "text/javascript"
"type": "text/javascript",
"packages": {}
}
}
],
Expand Down

0 comments on commit 08157ec

Please sign in to comment.