Skip to content

Commit

Permalink
Improved pre-request and test scripts (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaaufauvre committed Dec 19, 2022
1 parent f4671b3 commit 14f404b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions finicity.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -13212,7 +13212,8 @@
"script": {
"exec": [
"pm.test(\"Check status code\", function () {\r",
" pm.expect(pm.response.code).to.equal(200)\r",
" // HTTP 404: report not yet ready\r",
" pm.expect([200, 404]).contain(pm.response.code)\r",
"})"
],
"type": "text/javascript"
Expand Down Expand Up @@ -13465,7 +13466,8 @@
"script": {
"exec": [
"pm.test(\"Check status code\", function () {\r",
" pm.expect(pm.response.code).to.equal(200)\r",
" // HTTP 404: report not yet ready\r",
" pm.expect([200, 404]).contain(pm.response.code)\r",
"})"
],
"type": "text/javascript"
Expand Down Expand Up @@ -13722,7 +13724,6 @@
"const appKey = pm.environment.get(\"appKey\")",
"const customerId = pm.environment.get(\"customerId\")",
"const appToken = pm.globals.get(\"appToken\")",
"const accountId = pm.variables.get(\"accountId\")",
"",
"const portfolioId = pm.variables.get(\"portfolioId\")",
"const consumerId = pm.variables.get(\"consumerId\")",
Expand Down

0 comments on commit 14f404b

Please sign in to comment.