Add test for bad request

This commit is contained in:
2019-08-25 01:19:35 +02:00
parent 53e8bc024c
commit d911109cd2
2 changed files with 32 additions and 4 deletions

View File

@@ -18,6 +18,20 @@ Feature: Auth routes
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.
"""
Scenario: The route for create citizen must response a 200 and return object
When I send a POST request to "/register" with body:
"""
{
"name": {"first_name":"George2", "last_name":"MICHEL2"},
"birthday": "2001-01-01",
"user":{
"username": "",
"plain_password": ""
}
}
"""
Then the response status code should be 400
Scenario: The route for create citizen must response a 200 and return object
When I send a POST request to "/login" with body:
"""