-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotify_load_test.yml
More file actions
44 lines (40 loc) · 1.2 KB
/
notify_load_test.yml
File metadata and controls
44 lines (40 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
config:
processor: "./notify_entrypoint.mjs"
plugins:
expect: {}
apdex: {}
phases:
- name: run phase
duration: "{{ $env.duration }}"
arrivalRate: "{{ $env.arrivalRate }}"
maxVusers: "{{ $env.maxVusers }}"
environments:
dev:
target: https://internal-dev.api.service.nhs.uk/
ref:
target: https://ref.api.service.nhs.uk/
int:
target: https://int.api.service.nhs.uk/
pr:
target: https://psu-pr-{{ prNumber }}.dev.eps.national.nhs.uk/
before:
flow:
- function: getSharedAuthToken
scenarios:
- name: dynamic PSU calls for each patient
flow:
- function: initUser
# for each prescription (number of prescriptions is variable)
- loop:
- function: getSharedAuthToken
- post:
url: "/prescription-status-update/"
beforeRequest: "generatePrescData"
headers:
Authorization: "Bearer {{ authToken }}"
x-request-id: "{{ x_request_id }}"
x-correlation-id: "{{ x_correlation_id }}"
expect:
- statusCode: 201
- think: "{{ nextDelay }}seconds"
count: "{{ prescriptionCount }}"