make variables marker unified to be

This commit is contained in:
debugtalk
2017-06-27 23:56:59 +08:00
parent baf2d1c8b6
commit 887845493d
7 changed files with 33 additions and 30 deletions

View File

@@ -13,7 +13,7 @@
-
variable_binds:
- TOKEN: "debugtalk"
- token: $TOKEN
- token: ${TOKEN}
-
function_binds:
@@ -35,4 +35,4 @@
- TOKEN: debugtalk
- random: {"func": "gen_random_string", "args": [5]}
- data: "{'name': 'user', 'password': '123456'}"
- authorization: {"func": "gen_md5", "args": [$TOKEN, $data, $random]}
- authorization: {"func": "gen_md5", "args": ["${TOKEN}", "${data}", "${random}"]}

View File

@@ -12,7 +12,7 @@
- TOKEN: debugtalk
- random: {"func": "gen_random_string", "args": [5]}
- data: '{"name": "user", "password": "123456"}'
- authorization: {"func": "gen_md5", "args": ["$TOKEN", "$data", "$random"]}
- authorization: {"func": "gen_md5", "args": ["${TOKEN}", "${data}", "${random}"]}
- expected_status_code: 201
request:
url: http://127.0.0.1:5000/api/users/1000
@@ -43,7 +43,7 @@
- TOKEN: debugtalk
- random: {"func": "gen_random_string", "args": [5]}
- data: '{"name": "user", "password": "123456"}'
- authorization: {"func": "gen_md5", "args": ["$TOKEN", "$data", "$random"]}
- authorization: {"func": "gen_md5", "args": ["${TOKEN}", "${data}", "${random}"]}
- expected_status_code: 500
request:
url: http://127.0.0.1:5000/api/users/1000

View File

@@ -11,7 +11,7 @@
- TOKEN: debugtalk
- random: {"func": "gen_random_string", "args": [5]}
- data: '{"name": "user", "password": "123456"}'
- authorization: {"func": "gen_md5", "args": ["$TOKEN", "$data", "$random"]}
- authorization: {"func": "gen_md5", "args": ["${TOKEN}", "${data}", "${random}"]}
- test:
name: create user which does not exist