Skip to content

Commit fe1c9a5

Browse files
Adding wiremock scenarios for file attachment transfers
1 parent 875bff6 commit fe1c9a5

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

wiremock/stubs/__files/ampersandFileAttachment.json

Lines changed: 6 additions & 0 deletions
Large diffs are not rendered by default.

wiremock/stubs/__files/simpleFileAttachment.json

Lines changed: 6 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"priority": 1,
3+
"request": {
4+
"method": "GET",
5+
"urlPattern": "\/.*\/STU3\/1\/gpconnect\/documents\/fhir\/Binary\/D759A61F-5F00-4FA3-8055-FE7F9CB2F306"
6+
},
7+
"response": {
8+
"status": 200,
9+
"bodyFileName": "ampersandFileAttachment.json",
10+
"headers": {
11+
"Server":"nginx",
12+
"Date":"Thu, 09 Jan 2025 16:39:00 GMT",
13+
"Content-Type":"application/fhir+json;charset=UTF-8",
14+
"Connection":"keep-alive",
15+
"expires":"0",
16+
"Cache-Control": "no-store",
17+
"Pragma": "no-cache",
18+
"Strict-Transport-Security": "max-age:31536000"
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"priority": 1,
3+
"request": {
4+
"method": "GET",
5+
"urlPattern": "\/.*\/STU3\/1\/gpconnect\/documents\/fhir\/Binary\/07a6483f-732b-461e-86b6-edb665c45511-1"
6+
},
7+
"response": {
8+
"status": 200,
9+
"bodyFileName": "simpleFileAttachment.json",
10+
"headers": {
11+
"Server":"nginx",
12+
"Date":"Thu, 09 Jan 2025 16:37:00 GMT",
13+
"Content-Type":"application/fhir+json;charset=UTF-8",
14+
"Connection":"keep-alive",
15+
"expires":"0",
16+
"Cache-Control": "no-store",
17+
"Pragma": "no-cache",
18+
"Strict-Transport-Security": "max-age:31536000"
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)