Skip to content

Commit 5fade6d

Browse files
Updating structure to match absent attachment
1 parent 0117faf commit 5fade6d

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

wiremock/stubs/mappings/retrieveAmpersandAttachment.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"scenarioName": "migrateStructuredRecord",
44
"requiredScenarioState": "Ampersand Attachment",
55
"request": {
6-
"method": "GET",
6+
"method": "POST",
77
"urlPattern": "/.*/STU3/1/gpconnect/fhir/Patient/[$]gpc[.]migratestructuredrecord"
88
},
99
"response": {
1010
"status": 200,
1111
"bodyFileName": "ampersandFileAttachment.json",
1212
"headers": {
13-
"Server":"nginx",
14-
"Date":"Thu, 09 Jan 2025 16:39:00 GMT",
15-
"Content-Type":"application/fhir+json;charset=UTF-8",
16-
"Connection":"keep-alive",
17-
"expires":"0",
13+
"Server": "nginx",
14+
"Date": "{{now format='E, d MMM y HH:mm:ss z'}}",
15+
"Content-Type": "application/fhir+json;charset=UTF-8",
16+
"Transfer-Encoding": "chunked",
17+
"Connection": "keep-alive",
1818
"Cache-Control": "no-store",
19-
"Pragma": "no-cache",
20-
"Strict-Transport-Security": "max-age:31536000"
19+
"X-Powered-By": "HAPI FHIR 3.0.0 REST Server (FHIR Server; FHIR 3.0.1/DSTU3)",
20+
"Strict-Transport-Security":"max-age=31536000"
2121
}
2222
}
2323
}

wiremock/stubs/mappings/retrieveSimpleAttachment.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
"scenarioName": "migrateStructuredRecord",
44
"requiredScenarioState": "Simple Attachment",
55
"request": {
6-
"method": "GET",
6+
"method": "POST",
77
"urlPattern": "/.*/STU3/1/gpconnect/fhir/Patient/[$]gpc[.]migratestructuredrecord"
88
},
99
"response": {
1010
"status": 200,
1111
"bodyFileName": "simpleFileAttachment.json",
1212
"headers": {
13-
"Server":"nginx",
14-
"Date":"Thu, 09 Jan 2025 16:37:00 GMT",
15-
"Content-Type":"application/fhir+json;charset=UTF-8",
16-
"Connection":"keep-alive",
17-
"expires":"0",
13+
"Server": "nginx",
14+
"Date": "{{now format='E, d MMM y HH:mm:ss z'}}",
15+
"Content-Type": "application/fhir+json;charset=UTF-8",
16+
"Transfer-Encoding": "chunked",
17+
"Connection": "keep-alive",
1818
"Cache-Control": "no-store",
19-
"Pragma": "no-cache",
20-
"Strict-Transport-Security": "max-age:31536000"
19+
"X-Powered-By": "HAPI FHIR 3.0.0 REST Server (FHIR Server; FHIR 3.0.1/DSTU3)",
20+
"Strict-Transport-Security":"max-age=31536000"
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)