Skip to content

Commit 47216b9

Browse files
committed
Delay the LargePatientRecord response by 5 minutes
E2E testing of slow GP Connect responses
1 parent 0bdab77 commit 47216b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

wiremock/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ To change the patient record returned to be [PWTP3, which has many Prescriptions
8787
curl --request PUT --data '{"state": "Medications"}' http://localhost:8110/__admin/scenarios/migrateStructuredRecord/state
8888
```
8989

90-
To change the patient record returned to be [Large Patient Record](stubs/__files/correctPatientStructuredRecordLargePayload.json):
90+
To change the patient record returned to be [Large Patient Record](stubs/__files/correctPatientStructuredRecordLargePayload.json)
91+
and also delay the response being sent back by 5 minutes.
9192

9293
```shell
9394
curl --request PUT --data '{"state": "Large Patient Record"}' http://localhost:8110/__admin/scenarios/migrateStructuredRecord/state

wiremock/stubs/mappings/migrateStructuredRecord Large Patient Record.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"response": {
1010
"status": 200,
11+
"fixedDelayMilliseconds": 300000,
1112
"bodyFileName": "correctPatientStructuredRecordLargePayload.json",
1213
"headers": {
1314
"Server": "nginx",

0 commit comments

Comments
 (0)