-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotify_load_test.yml
More file actions
65 lines (62 loc) · 1.9 KB
/
notify_load_test.yml
File metadata and controls
65 lines (62 loc) · 1.9 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
config:
processor: "./notify_entrypoint.mjs"
plugins:
expect: {}
apdex: {}
phases:
- name: ramp up phase
duration: "{{ $env.rampUpDuration }}"
arrivalRate: 1
rampTo: "{{ $env.arrivalRate }}"
maxVusers: "{{ $env.maxVusers }}"
- 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: Allowed ODS code scenario
weight: 1
flow:
- function: initUserAllowed
- 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 }}"
- name: Blocked ODS code scenario
weight: 0
flow:
- function: initUserBlocked
- 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 }}"