Skip to content

Commit 14e0960

Browse files
committed
NPA-5537: add block back in
1 parent 9979552 commit 14e0960

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

postman/Validated Relationship Service Sandbox.postman_collection.json

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7488,6 +7488,75 @@
74887488
},
74897489
"response": []
74907490
},
7491+
{
7492+
"name": "No performer record found",
7493+
"event": [
7494+
{
7495+
"listen": "test",
7496+
"script": {
7497+
"exec": [
7498+
"const expectedResponseBody = {",
7499+
" \"resourceType\": \"OperationOutcome\",",
7500+
" \"issue\": [",
7501+
" { ",
7502+
" \"code\": \"processing\",",
7503+
" \"details\": {",
7504+
" \"coding\": [",
7505+
" {",
7506+
" \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",",
7507+
" \"version\": \"1\",",
7508+
" \"code\": \"INVALIDATED_RESOURCE\",",
7509+
" \"display\": \"Resource that has been marked as invalid was requested - invalid resources cannot be retrieved\"",
7510+
" }",
7511+
" ]",
7512+
" },",
7513+
" \"diagnostics\": \"Resource that has been marked as invalid was requested - invalid resources cannot be retrieved\",",
7514+
" \"severity\": \"error\",",
7515+
" ",
7516+
" }",
7517+
" ]",
7518+
"}",
7519+
"",
7520+
"const responseJson = pm.response.json();",
7521+
"",
7522+
"pm.test(\"Status code is 404\", function () {",
7523+
" pm.response.to.have.status(404);",
7524+
"});",
7525+
"",
7526+
"pm.test(\"Should have correct error response\", () => {",
7527+
" pm.expect(responseJson.issue[0].details.coding[0].code).to.eql(\"INVALIDATED_RESOURCE\");",
7528+
"});",
7529+
"",
7530+
"pm.test(\"Should have correct response body\", () => {",
7531+
" pm.expect(responseJson).to.eql(expectedResponseBody);",
7532+
"});"
7533+
],
7534+
"type": "text/javascript",
7535+
"packages": {}
7536+
}
7537+
}
7538+
],
7539+
"request": {
7540+
"method": "GET",
7541+
"header": [],
7542+
"url": {
7543+
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000999",
7544+
"host": [
7545+
"{{api_base_url}}"
7546+
],
7547+
"path": [
7548+
"Consent"
7549+
],
7550+
"query": [
7551+
{
7552+
"key": "performer:identifier",
7553+
"value": "9000000999"
7554+
}
7555+
]
7556+
}
7557+
},
7558+
"response": []
7559+
},
74917560
{
74927561
"name": "Invalid performer identifier",
74937562
"event": [
@@ -10262,4 +10331,4 @@
1026210331
"disabled": true
1026310332
}
1026410333
]
10265-
}
10334+
}

0 commit comments

Comments
 (0)