61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
test_name: Users
|
|
|
|
stages:
|
|
- name: Make sure we can log in
|
|
request:
|
|
url: "{tavern.env_vars.API_URL}/auth/login"
|
|
method: POST
|
|
json:
|
|
email: info@lufthansa.com
|
|
password: password1234
|
|
headers:
|
|
content-type: application/json
|
|
response:
|
|
status_code: 200
|
|
json:
|
|
user_id: 1
|
|
access_token: !anystr
|
|
refresh_token: !anystr
|
|
headers:
|
|
content-type: application/json
|
|
|
|
---
|
|
test_name: Register
|
|
|
|
stages:
|
|
- name: Make sure we can register
|
|
request:
|
|
url: "{tavern.env_vars.API_URL}/users"
|
|
method: POST
|
|
json:
|
|
username: acosta
|
|
email: acosta@gmail.com
|
|
password: password1234
|
|
headers:
|
|
content-type: application/json
|
|
response:
|
|
status_code: 200
|
|
json:
|
|
id: !anyint
|
|
username: !anystr
|
|
email: !anystr
|
|
headers:
|
|
content-type: application/json
|
|
- name: Make sure we can log in
|
|
request:
|
|
url: "{tavern.env_vars.API_URL}/auth/login"
|
|
method: POST
|
|
json:
|
|
email: acosta@gmail.com
|
|
password: password1234
|
|
headers:
|
|
content-type: application/json
|
|
response:
|
|
status_code: 200
|
|
json:
|
|
user_id: !anyint
|
|
access_token: !anystr
|
|
refresh_token: !anystr
|
|
headers:
|
|
content-type: application/json
|