Update group room mocks #14
@@ -75,6 +75,7 @@
|
||||
latestBookingTime: "20:00:00"
|
||||
minimumParticipants: 2
|
||||
maxDaysInFuture: 14
|
||||
bookingLengthIncrement: "PT1H"
|
||||
- conditions:
|
||||
query:
|
||||
size: "large"
|
||||
@@ -149,6 +150,7 @@
|
||||
latestBookingTime: "20:00:00"
|
||||
minimumParticipants: 2
|
||||
maxDaysInFuture: 14
|
||||
bookingLengthIncrement: "PT1H"
|
||||
response:
|
||||
status: 200
|
||||
headers:
|
||||
@@ -198,6 +200,7 @@
|
||||
latestBookingTime: "20:00:00"
|
||||
minimumParticipants: 2
|
||||
maxDaysInFuture: 14
|
||||
bookingLengthIncrement: "PT1H"
|
||||
|
||||
- method: "POST"
|
||||
path: "/"
|
||||
@@ -384,6 +387,44 @@
|
||||
detail: "Participants are invalid"
|
||||
violations:
|
||||
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
|
||||
- conditions:
|
||||
body:
|
||||
|
||||
Reference in New Issue
Block a user