Skip to content

Commit b55b7db

Browse files
author
Adrian Clay
authored
Inrease size of large document patient from 10MB to 30MB (#985)
Helps test NIAD-3228 where we were seeing an issu with 20MB attachments.
1 parent 0b3c27c commit b55b7db

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

wiremock/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ To change the patient record returned to have 100 3.5MB = 350MB total attachment
105105
curl --request PUT --data '{"state": "350MB Attachments"}' http://localhost:8110/__admin/scenarios/migrateStructuredRecord/state
106106
```
107107

108-
To change the patient record returned to have a 10MB attachment (useful for testing fragments) [10MBDocument](stubs/__files/correctPatientStructuredRecordResponse10MBAttachment.json):
108+
To change the patient record returned to have a 30MB attachment (useful for testing fragments) [30MBDocument](stubs/__files/correctPatientStructuredRecordResponse30MBAttachment.json):
109109

110110
```shell
111-
curl --request PUT --data '{"state": "10MB Attachment"}' http://localhost:8110/__admin/scenarios/migrateStructuredRecord/state
111+
curl --request PUT --data '{"state": "30MB Attachment"}' http://localhost:8110/__admin/scenarios/migrateStructuredRecord/state
112112
```
113113

114114
To change the patient record returned to be NOT FOUND:

wiremock/stubs/__files/correct10MBDocumentResponse.json renamed to wiremock/stubs/__files/correct30MBDocumentResponse.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"resourceType": "Binary",
33
"id": "2cb1f113-3b15-41e8-b6b1-21e761838b19",
44
"contentType": "text/plain",
5-
"content": "{{#base64}}{{randomValue length=10485760 type='ALPHANUMERIC'}}{{/base64}}"
5+
"content": "{{#base64}}{{randomValue length=31457280 type='ALPHANUMERIC'}}{{/base64}}"
66
}

wiremock/stubs/__files/correctPatientStructuredRecordResponse10MBAttachment.json renamed to wiremock/stubs/__files/correctPatientStructuredRecordResponse30MBAttachment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@
524524
"attachment": {
525525
"contentType": "text/plain",
526526
"url": "{{request.baseUrl}}/B82617/STU3/1/gpconnect/documents/fhir/Binary/2cb1f113-3b15-41e8-b6b1-21e761838b19",
527-
"size": 10485760
527+
"size": 31457280
528528
}
529529
}
530530
],

wiremock/stubs/mappings/migrateStructuredRecord 10MB Attachment.json renamed to wiremock/stubs/mappings/migrateStructuredRecord 30MB Attachment.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"priority": 2,
33
"scenarioName": "migrateStructuredRecord",
4-
"requiredScenarioState": "10MB Attachment",
4+
"requiredScenarioState": "30MB Attachment",
55
"request": {
66
"method": "POST",
77
"urlPattern": "/.*/STU3/1/gpconnect/fhir/Patient/[$]gpc[.]migratestructuredrecord"
88
},
99
"response": {
1010
"status": 200,
11-
"bodyFileName": "correctPatientStructuredRecordResponse10MBAttachment.json",
11+
"bodyFileName": "correctPatientStructuredRecordResponse30MBAttachment.json",
1212
"headers": {
1313
"Server": "nginx",
1414
"Date": "{{now format='E, d MMM y HH:mm:ss z'}}",

wiremock/stubs/mappings/retrieve10MBDocumentResponse.json renamed to wiremock/stubs/mappings/retrieve30MBDocumentResponse.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"response": {
88
"status": 200,
9-
"bodyFileName": "correct10MBDocumentResponse.json",
9+
"bodyFileName": "correct30MBDocumentResponse.json",
1010
"headers": {
1111
"Server":"nginx",
1212
"Date":"Tue, 12 Jan 2021 11:36:57 GMT",

0 commit comments

Comments
 (0)