Big refactoring #77
@@ -80,7 +80,7 @@ class `Citizen routes` : BaseTest() {
|
|||||||
fun `I cannot change my password if request is bad formatted`() {
|
fun `I cannot change my password if request is bad formatted`() {
|
||||||
withIntegrationApplication {
|
withIntegrationApplication {
|
||||||
`Given I have citizen`("Louis", "Breguet", id = "6cf2a19d-d15d-4ee5-b2a9-907afd26b525")
|
`Given I have citizen`("Louis", "Breguet", id = "6cf2a19d-d15d-4ee5-b2a9-907afd26b525")
|
||||||
`When I send a PUT request`("/citizens/6cf2a19d-d15d-4ee5-b2a9-907afd26b525/password/change", Validate.ALL - Validate.RESPONSE_BODY) {
|
`When I send a PUT request`("/citizens/6cf2a19d-d15d-4ee5-b2a9-907afd26b525/password/change", Validate.ALL - Validate.REQUEST_BODY) {
|
||||||
`authenticated as`("Louis", "Breguet")
|
`authenticated as`("Louis", "Breguet")
|
||||||
`with body`("""
|
`with body`("""
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class `Register routes` : BaseTest() {
|
|||||||
@Test
|
@Test
|
||||||
fun `I cannot register if no username was sent`() {
|
fun `I cannot register if no username was sent`() {
|
||||||
withIntegrationApplication {
|
withIntegrationApplication {
|
||||||
`When I send a POST request`("/register", Validate.ALL - Validate.RESPONSE_BODY) {
|
`When I send a POST request`("/register", Validate.ALL - Validate.REQUEST_BODY) {
|
||||||
`with body`("""
|
`with body`("""
|
||||||
{
|
{
|
||||||
"name": {"firstName":"George2", "lastName":"MICHEL2"},
|
"name": {"firstName":"George2", "lastName":"MICHEL2"},
|
||||||
|
|||||||
Reference in New Issue
Block a user