-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_descriptions.tavern.yaml
44 lines (44 loc) · 1.32 KB
/
test_descriptions.tavern.yaml
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
---
test_name: set valid users description of track
stages:
- name: set description
request:
url: http://127.0.0.1:5100/api/v1/resources/descriptions
method: POST
json:
username: user_anthony
track_uuid: 275fc399a955403dacb158cdb6f273b5
description: Looks good
response:
status_code: 201
---
test_name: set invalid users description of track
stages:
- name: set description
request:
url: http://127.0.0.1:5100/api/v1/resources/descriptions
method: POST
json:
username: user_invalid
track_uuid: 275fc399a955403dacb158cdb6f273b5
description: Looks good
response:
status_code: 409
---
test_name: retrieve valid users track description
stages:
- name: retrieve description
request:
url: http://127.0.0.1:5100/api/v1/resources/descriptions?username=user_anthony&track_uuid=275fc399a955403dacb158cdb6f273b5
method: GET
response:
status_code: 200
---
test_name: retrieve invalid users track description
stages:
- name: retrieve description
request:
url: http://127.0.0.1:5100/api/v1/resources/descriptions?username=user_invalid&track_uuid=275fc399a955403dacb158cdb6f273b5
method: GET
response:
status_code: 404