38 lines
692 B
YAML
38 lines
692 B
YAML
|
|
base_url: http://backend:8000/api/auth
|
||
|
|
|
||
|
|
flows:
|
||
|
|
|
||
|
|
register_login:
|
||
|
|
|
||
|
|
register:
|
||
|
|
method: POST
|
||
|
|
path: /register/
|
||
|
|
body:
|
||
|
|
username: "{random_username}"
|
||
|
|
email: "{random_username}@example.com"
|
||
|
|
phone_number: "09120000000"
|
||
|
|
password: "test123456"
|
||
|
|
first_name: "test"
|
||
|
|
last_name: "user"
|
||
|
|
|
||
|
|
expected_status: 201
|
||
|
|
expected_json:
|
||
|
|
msg: success
|
||
|
|
|
||
|
|
login:
|
||
|
|
method: POST
|
||
|
|
path: /login/
|
||
|
|
body:
|
||
|
|
identifier: "{random_username}"
|
||
|
|
password: "test123456"
|
||
|
|
|
||
|
|
expected_status: 200
|
||
|
|
|
||
|
|
extract:
|
||
|
|
token: token
|
||
|
|
|
||
|
|
store_redis:
|
||
|
|
key: "test_token:{random_username}"
|
||
|
|
ttl: 3600
|
||
|
|
|