-
Notifications
You must be signed in to change notification settings - Fork 0
/
performance.yml
46 lines (46 loc) · 1.16 KB
/
performance.yml
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
config:
target: "https://api.todoist.com"
phases:
- duration: 1
arrivalRate: 1
name: "Phase 1"
- duration: 2
arrivalRate: 1
name: "Phase 2"
- duration: 3
arrivalRate: 1
name: "Phase 3"
defaults:
headers:
Authorization: "Bearer {{ $processEnvironment.TOKEN }}"
Content-Type: application/json
processor: "./scripts/scripts.js"
scenarios:
- flow:
- function: generateTestData
- get:
url: "/rest/v1/tasks"
qs:
project_id: "{{ $processEnvironment.ID_PROJECT }}"
- post:
url: "/rest/v1/tasks"
json:
content: "{{ content }}"
priority: "{{ priority }}"
project_id: 2261254215
capture:
json: "$.id"
as: "idTask"
- get:
url: "/rest/v1/tasks/{{ idTask }}"
- post:
url: "/rest/v1/tasks/{{ idTask }}"
json:
content: "{{ updateContent }}"
priority: "{{ updatePriority }}"
- post:
url: "/rest/v1/tasks/{{ idTask }}/close"
- post:
url: "/rest/v1/tasks/{{ idTask }}/reopen"
- delete:
url: "/rest/v1/tasks/{{ idTask }}"