-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
178 changed files
with
390 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,12 +125,11 @@ Feature: | |
And the JSON should be equal to: | ||
""" | ||
{ | ||
"type": "https://tools.ietf.org/html/rfc2616#section-10", | ||
"title": "An error occurred", | ||
"detail": "nickname: Cette valeur est déjà utilisée.", | ||
"message": "Validation Failed", | ||
"status": "error", | ||
"violations": [ | ||
{ | ||
"code": "@uuid@", | ||
"propertyPath": "nickname", | ||
"message": "Cette valeur est déjà utilisée." | ||
} | ||
|
@@ -151,12 +150,11 @@ Feature: | |
And the JSON should be equal to: | ||
""" | ||
{ | ||
"type": "https://tools.ietf.org/html/rfc2616#section-10", | ||
"title": "An error occurred", | ||
"detail": "nickname: Vous devez saisir au maximum 25 caractères.", | ||
"message": "Validation Failed", | ||
"status": "error", | ||
"violations": [ | ||
{ | ||
"code": "@uuid@", | ||
"propertyPath": "nickname", | ||
"message": "Vous devez saisir au maximum 25 caractères." | ||
} | ||
|
@@ -174,7 +172,19 @@ Feature: | |
""" | ||
Then the response status code should be 400 | ||
And the response should be in JSON | ||
And the JSON node "detail" should be equal to "nickname: La syntaxe est incorrecte, le pseudo ne peut contenir que des chiffres, lettres, et les caractères _ et -" | ||
And the JSON should be equal to: | ||
""" | ||
{ | ||
"message": "Validation Failed", | ||
"status": "error", | ||
"violations": [ | ||
{ | ||
"propertyPath": "nickname", | ||
"message": "La syntaxe est incorrecte, le pseudo ne peut contenir que des chiffres, lettres, et les caractères _ et -" | ||
} | ||
] | ||
} | ||
""" | ||
|
||
Scenario: As a logged-in user I can set my nickname but not use it | ||
Given I am logged as "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,12 +44,11 @@ Feature: | |
And the JSON should be equal to: | ||
""" | ||
{ | ||
"detail": "email_address: Ceci n'est pas une adresse email valide.", | ||
"title": "An error occurred", | ||
"message": "Validation Failed", | ||
"status": "error", | ||
"type": "@[email protected]()", | ||
"violations": [ | ||
{ | ||
"code": "@uuid@", | ||
"message": "Ceci n'est pas une adresse email valide.", | ||
"propertyPath": "email_address" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.