#78: merge validators in test with api validators

This commit is contained in:
debugtalk
2018-01-16 19:28:07 +08:00
parent 25539414a2
commit 124cbe8102
7 changed files with 186 additions and 64 deletions

View File

@@ -11,8 +11,8 @@
json:
sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
validate:
- {"check": "status_code", "comparator": "eq", "expect": 200}
- {"check": "content.token", "comparator": "len_eq", "expect": 16}
- "eq": ["status_code", 0]
- "len_eq": ["content.token", 12]
- api:
def: create_user($uid, $user_name, $user_password, $token)