UPDATE
This commit is contained in:
+6
-20
@@ -1,30 +1,16 @@
|
||||
base_url: http://backend:8000/api/auth
|
||||
base_url: http://backend-web:8000/api
|
||||
|
||||
flows:
|
||||
|
||||
register_login:
|
||||
auth:
|
||||
|
||||
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/
|
||||
path: /auth/login/
|
||||
body:
|
||||
identifier: "{random_username}"
|
||||
password: "test123456"
|
||||
identifier: "admin"
|
||||
password: "admin123456"
|
||||
|
||||
expected_status: 200
|
||||
|
||||
@@ -32,6 +18,6 @@ flows:
|
||||
token: token
|
||||
|
||||
store_redis:
|
||||
key: "test_token:{random_username}"
|
||||
key: "test_token"
|
||||
ttl: 3600
|
||||
|
||||
|
||||
Reference in New Issue
Block a user