Festivalens Bruno-testrapport
Deployment · Festival-API ·
Bestået · 19/19 kald · 35/35 tests bestået · 3.8 s
advanced/01 Open sale
POST · HTTP 201 Created · 233 ms · Bestået
- ✓ A fresh sale has two tickets at DKK 350 each
advanced/02 Reserve for Alma
POST · HTTP 201 Created · 310 ms · Bestået
- ✓ Alma owns a new reservation and one ticket remains
advanced/03 Reserve for Noah
POST · HTTP 201 Created · 10 ms · Bestået
- ✓ Noah owns a distinct reservation and no tickets remain
advanced/04 Try to reserve another ticket
POST · HTTP 409 Conflict · 21 ms · Bestået
- ✓ An exhausted sale rejects an additional reservation
advanced/05 Confirm Alma
POST · HTTP 200 OK · 53 ms · Bestået
- ✓ The sale confirms the reservation saved for Alma
advanced/06 Read Alma receipt
GET · HTTP 200 OK · 7 ms · Bestået
- ✓ The receipt belongs to Alma and covers one ticket at DKK 350
advanced/07 Retry Alma confirmation
POST · HTTP 200 OK · 6 ms · Bestået
- ✓ A repeated confirmation returns the same confirmed reservation
advanced/08 Compare Alma receipts
GET · HTTP 200 OK · 4 ms · Bestået
- ✓ Retrying leaves the complete receipt unchanged
advanced/09 Read Noah reservation
GET · HTTP 200 OK · 6 ms · Bestået
- ✓ Confirming Alma leaves Noah's ticket reserved
advanced/10 Confirm Noah
POST · HTTP 200 OK · 5 ms · Bestået
- ✓ The sale confirms the reservation saved for Noah
advanced/11 Read Noah receipt
GET · HTTP 200 OK · 3 ms · Bestået
- ✓ The receipt belongs to Noah and covers one ticket at DKK 350
advanced/12 Verify final inventory
GET · HTTP 200 OK · 10 ms · Bestået
- ✓ Both tickets have been allocated and the sale price is unchanged
01 New run
POST · HTTP 201 Created · 4 ms · Bestået
- ✓ HTTP 201 creates a new sale
- ✓ The sale starts with one available ticket
- ✓ Each ticket costs 350 DKK
- ✓ The response supplies the run ID for the next request
02 Reserve for Alma
POST · HTTP 201 Created · 6 ms · Bestået
- ✓ HTTP 201 creates a reservation with an ID
- ✓ The reservation belongs to Alma and is marked reserved
- ✓ Reserving the last ticket leaves zero available
03 Sold out for Noah
POST · HTTP 409 Conflict · 4 ms · Bestået
- ✓ HTTP 409 is expected when Noah tries to reserve the last ticket
- ✓ The API reports sold_out as the reason
- ✓ Stock stays at zero after the rejected request
04 Receipt before confirmation
GET · HTTP 409 Conflict · 4 ms · Bestået
- ✓ HTTP 409 blocks the receipt before confirmation
- ✓ The API explains the refusal with not_confirmed
05 Confirm
POST · HTTP 200 OK · 5 ms · Bestået
- ✓ HTTP 200 accepts the confirmation
- ✓ The response matches the reservation ID saved in request 02
- ✓ The reservation status is now confirmed
06 Receipt
GET · HTTP 200 OK · 5 ms · Bestået
- ✓ HTTP 200 returns the receipt after confirmation
- ✓ The receipt matches the saved reservation and names Alma
- ✓ The receipt covers exactly one ticket
- ✓ The receipt amount matches the expected ticket price
- ✓ The receipt currency is DKK
07 Ownership
GET · HTTP 403 Forbidden · 4 ms · Bestået
- ✓ HTTP 403 denies Noah access to the receipt
- ✓ The refusal identifies wrong_guest as the reason
- ✓ The error response contains no receipt amount