Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #339 from zhaoqin-github/newman-test
Browse files Browse the repository at this point in the history
Update test script
  • Loading branch information
zhaoqin-github authored Sep 23, 2019
2 parents 8ecca78 + e3f31b9 commit 49db0cb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/onboard-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@
" pm.expect(resp.adc.status).to.not.have.string('ERROR');",
"});",
"",
"if (resp.adc.status !== 'ONBOARDED') {",
"if (resp.adc.status !== 'ONBOARDED' && resp.adc.status !== 'ONBOARDERROR') {",
" postman.setNextRequest('wait-adc-onboard');",
" setTimeout(function(){}, 10000)",
"}",
Expand Down Expand Up @@ -1866,16 +1866,14 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"my_rule\"\n}"
"raw": "{\n \"name\": \"my_rule\",\n \"endpointpolicyId\": \"{{POLICY_ID}}\"\n}"
},
"url": {
"raw": "{{ADCAAS_URL}}/endpointpolicies/{{POLICY_ID}}/rules",
"raw": "{{ADCAAS_URL}}/rules",
"host": [
"{{ADCAAS_URL}}"
],
"path": [
"endpointpolicies",
"{{POLICY_ID}}",
"rules"
]
}
Expand Down

0 comments on commit 49db0cb

Please sign in to comment.