Skip to content

Commit

Permalink
OCD-4520: AQA tests for /non-conformities/types end point
Browse files Browse the repository at this point in the history
  • Loading branch information
Anitha Thomas committed Jan 17, 2025
1 parent 36e7424 commit 936da1e
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions chpl/chpl-api/e2e/collections/report-data.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,60 @@
"description": "/report-data/service-base-url-list should retrieve status 200 and valid response"
},
"response": []
},
{
"name": "GET /report-data/non-conformities/types - 200 status and valid response",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"/report-data/non-conformities/types should retrieve status 200 and valid response\", function () {\r",
" pm.response.to.have.status(200);\r",
" pm.expect(pm.response.text()).to.include(\"nonconformityType\");\r",
" pm.expect(pm.response.text()).to.include(\"number\");\r",
" pm.expect(pm.response.text()).to.include(\"title\");\r",
" pm.expect(pm.response.text()).to.include(\"startDay\");\r",
" pm.expect(pm.response.text()).to.include(\"endDay\");\r",
" pm.expect(pm.response.text()).to.include(\"removed\");\r",
" pm.expect(pm.response.text()).to.include(\"status\");\r",
"});\r",
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "API-Key",
"value": "{{apiKey}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{url}}/rest/report-data/non-conformities/types",
"host": [
"{{url}}"
],
"path": [
"rest",
"report-data",
"non-conformities",
"types"
]
},
"description": "GET /report-data/non-conformities/types - 200 status and valid response"
},
"response": []
}
]
}

0 comments on commit 936da1e

Please sign in to comment.