< Return to Summary | File Generated: Wed Feb 28 2024 15:29:22 GMT+0000 (Coordinated Universal Time)

order-deletion >> unknown-order

Booking Flow:

Opportunity Type:

Feature: Core / Order Deletion Endpoint (Implemented)

Test: Expect a UnknownOrderError for an Order that does not exist

Runs Order Deletion for a non-existent Order (with a fictional UUID), expecting an UnknownOrderError error to be returned

Running only this test

npm start -- --runInBand test/features/core/order-deletion/implemented/unknown-order-test.js

Is this test failing?

The OpenActive Reference Implementation test result for this test can be used as a reference to help with debugging.

✅ 2 passed with 0 failures, 0 warnings and 0 suggestions

✅ Order Deletion

delete-order Request

DELETE https://localhost:5001/api/openbooking/orders/e5666b86-f2dd-41c2-a086-0bd91a34b180

Response status code: 404 Not Found. Responded in 44.815134ms.

  "@context": "https://openactive.io/",
  "@type": "UnknownOrderError",
  "name": "The Booking System has no 'Order' matching the one requested.",
  "statusCode": 404