save api in individual file: each file is corresponding to one api definition

This commit is contained in:
debugtalk
2018-12-04 22:38:41 +08:00
parent 3135e19f25
commit de23957518
13 changed files with 150 additions and 14 deletions

12
tests/api/delete_user.yml Normal file
View File

@@ -0,0 +1,12 @@
variables:
uid: 9000
token: XXX
request:
url: /api/users/$uid
method: DELETE
headers:
Content-Type: "application/json"
device_sn: $device_sn
token: $token
validate:
- eq: ["status_code", 200]