This repository was archived by the owner on Feb 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathartilleryrc.yaml
More file actions
74 lines (72 loc) · 1.96 KB
/
artilleryrc.yaml
File metadata and controls
74 lines (72 loc) · 1.96 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
66
67
68
69
70
71
72
73
74
config:
target: "http://127.0.0.1:{{ $processEnvironment.PORT }}"
plugins:
metrics-by-endpoint:
useOnlyRequestNames: true
ensure: {}
ensure:
thresholds:
- "http.response_time.p95": 150
- "http.response_time.p99": 250
phases:
- name: warm up
duration: 300
arrivalRate: 1
rampTo: 5
- name: peak load
duration: 600
arrivalRate: 5
- name: cool down
duration: 300
arrivalRate: 5
rampTo: 1
payload:
path: "{{ $processEnvironment.CSV_OF_VUSER }}"
fields:
- user_id
- password
scenarios:
- flow:
- post:
name: Sign In
url: /users/{{ user_id }}/access-token
json:
password: "{{ password }}"
capture:
json: $.data.access_token
as: access_token
- get:
name: Get Task List
url: /tasks?sort=deadline&progress=todo&progress=doing
headers:
Authorization: Bearer {{ access_token }}
- loop:
- post:
name: Register New Task
url: /tasks
headers:
Authorization: Bearer {{ access_token }}
json:
content: test content
deadline: "2023-08-25"
capture:
json: $.data.task.id
as: task_id
- patch:
name: Start Task
url: /tasks/{{ task_id }}?action=start
headers:
Authorization: Bearer {{ access_token }}
- put:
name: Update Task Content
url: /tasks/{{ task_id }}/content
headers:
Authorization: Bearer {{ access_token }}
json:
content: updated content
- patch:
name: Finish Task
url: /tasks/{{ task_id }}?action=finish
headers:
Authorization: Bearer {{ access_token }}
count: 2