Update group room mocks #14
@@ -75,6 +75,7 @@
|
|||||||
latestBookingTime: "20:00:00"
|
latestBookingTime: "20:00:00"
|
||||||
minimumParticipants: 2
|
minimumParticipants: 2
|
||||||
maxDaysInFuture: 14
|
maxDaysInFuture: 14
|
||||||
|
bookingLengthIncrement: "PT1H"
|
||||||
- conditions:
|
- conditions:
|
||||||
query:
|
query:
|
||||||
size: "large"
|
size: "large"
|
||||||
@@ -149,6 +150,7 @@
|
|||||||
latestBookingTime: "20:00:00"
|
latestBookingTime: "20:00:00"
|
||||||
minimumParticipants: 2
|
minimumParticipants: 2
|
||||||
maxDaysInFuture: 14
|
maxDaysInFuture: 14
|
||||||
|
bookingLengthIncrement: "PT1H"
|
||||||
response:
|
response:
|
||||||
status: 200
|
status: 200
|
||||||
headers:
|
headers:
|
||||||
@@ -198,6 +200,7 @@
|
|||||||
latestBookingTime: "20:00:00"
|
latestBookingTime: "20:00:00"
|
||||||
minimumParticipants: 2
|
minimumParticipants: 2
|
||||||
maxDaysInFuture: 14
|
maxDaysInFuture: 14
|
||||||
|
bookingLengthIncrement: "PT1H"
|
||||||
|
|
||||||
- method: "POST"
|
- method: "POST"
|
||||||
path: "/"
|
path: "/"
|
||||||
@@ -384,6 +387,44 @@
|
|||||||
detail: "Participants are invalid"
|
detail: "Participants are invalid"
|
||||||
violations:
|
violations:
|
||||||
additional_participants: "One or more participant emails are invalid"
|
additional_participants: "One or more participant emails are invalid"
|
||||||
|
# Test error: Validation errors with multiple messages per field - Swedish
|
||||||
|
- conditions:
|
||||||
|
headers:
|
||||||
|
Accept-Language: "sv-SE"
|
||||||
|
body:
|
||||||
|
name: "[TEST:validation:multi]"
|
||||||
|
response:
|
||||||
|
status: 400
|
||||||
|
headers:
|
||||||
|
Content-Type: "application/problem+json"
|
||||||
|
Content-Language: "sv-SE"
|
||||||
|
body:
|
||||||
|
type: "daisy:bad-request"
|
||||||
|
title: "Validering misslyckades"
|
||||||
|
detail: "Ett eller flera fält är ogiltiga"
|
||||||
|
violations:
|
||||||
|
name: "Titeln innehåller ogiltiga tecken"
|
||||||
|
additional_participants:
|
||||||
|
- "En eller flera e-postadresser är ogiltiga"
|
||||||
|
- "Listan får inte vara tom"
|
||||||
|
# Test error: Validation errors with multiple messages per field - English (default)
|
||||||
|
- conditions:
|
||||||
|
body:
|
||||||
|
name: "[TEST:validation:multi]"
|
||||||
|
response:
|
||||||
|
status: 400
|
||||||
|
headers:
|
||||||
|
Content-Type: "application/problem+json"
|
||||||
|
Content-Language: "en"
|
||||||
|
body:
|
||||||
|
type: "daisy:bad-request"
|
||||||
|
title: "Validation failed"
|
||||||
|
detail: "One or more fields are invalid"
|
||||||
|
violations:
|
||||||
|
name: "Title contains invalid characters"
|
||||||
|
additional_participants:
|
||||||
|
- "One or more participant emails are invalid"
|
||||||
|
- "List must not be empty"
|
||||||
# Test error: Unknown error type -> DaisyUnexpectedResponseException
|
# Test error: Unknown error type -> DaisyUnexpectedResponseException
|
||||||
- conditions:
|
- conditions:
|
||||||
body:
|
body:
|
||||||
|
|||||||
Reference in New Issue
Block a user