Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 3.35 KB

File metadata and controls

59 lines (37 loc) · 3.35 KB

< Return to Overview

latestCancellationBeforeStartDate cancellation window (cancellation-window)

A defined window before the event occurs where it can be cancelled without fees

https://www.openactive.io/open-booking-api/EditorsDraft/#customer-requested-cancellation

Coverage Status: complete

Test prerequisites - Opportunities

Opportunities that match the following criteria must exist in the booking system (for each configured bookableOpportunityTypesInScope) for the configured primary Seller in order to use useRandomOpportunities: true. Alternatively the following testOpportunityCriteria values must be supported by the test interface of the booking system for useRandomOpportunities: false.

TestOpportunityBookableCancellableOutsideWindow x3, TestOpportunityBookable x2, TestOpportunityBookableCancellableWithinWindow x3

Running tests for only this feature

npm start -- --runInBand test/features/cancellation/cancellation-window/

'Implemented' tests

Update default.json within packages/openactive-integration-tests/config/ as follows to enable 'Implemented' testing for this feature:

"implementedFeatures": {
  ...
  "cancellation-window": true,
  ...
}
Identifier Name Description Prerequisites per Opportunity Type Required Test Interface Actions
fail-outside-window Successful booking and failed cancellation outside window. A successful end to end booking, but cancellation fails outside the cancellation window. TestOpportunityBookableCancellableOutsideWindow x3, TestOpportunityBookable x1
succeed-within-window Successful booking and cancellation within window. A successful end to end booking including cancellation within the cancellation window. TestOpportunityBookableCancellableWithinWindow x3, TestOpportunityBookable x1

'Not Implemented' tests

Update default.json within packages/openactive-integration-tests/config/ as follows to enable 'Not Implemented' testing for this feature:

"implementedFeatures": {
  ...
  "cancellation-window": false,
  ...
}
Identifier Name Description Prerequisites per Opportunity Type Required Test Interface Actions
assert-unmatched-criteria Opportunities relevant to this not-implemented feature must not be available in opportunity feeds Assert that no opportunities that match criteria 'TestOpportunityBookableCancellableWithinWindow' or 'TestOpportunityBookableCancellableOutsideWindow' are available in the opportunity feeds.