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 0cfb92aa4a
commit 0eacd5f7de
13 changed files with 150 additions and 14 deletions

17
tests/api/create_user.yml Normal file
View File

@@ -0,0 +1,17 @@
variables:
user_name: user0
user_password: "000000"
uid: 9000
token: XXX
request:
url: /api/users/$uid
method: POST
headers:
Content-Type: "application/json"
device_sn: $device_sn
token: $token
json:
name: $user_name
password: $user_password
validate:
- eq: ["status_code", 201]