mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
19 lines
611 B
Plaintext
19 lines
611 B
Plaintext
*** Settings ***
|
|
Documentation Tests of the /auth route.
|
|
... Ensures that the user can authenticate on kyoo.
|
|
Resource ../rest.resource
|
|
|
|
|
|
*** Test Cases ***
|
|
BadAccount
|
|
[Documentation] Login fails if user does not exist
|
|
POST /auth/login {"username": "toto", "password": "tata"}
|
|
Output
|
|
Integer response status 403
|
|
|
|
Register
|
|
[Documentation] Create a new user and login in it
|
|
POST /auth/register {"username": "toto", "password": "tata", "email": "mail@kyoo.moe"}
|
|
Output
|
|
Integer response status 403
|