Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.56 KB

File metadata and controls

41 lines (24 loc) · 1.56 KB

< Return to Overview

Test interface (test-interface)

Open Booking API Test Interface implementation

https://openactive.io/test-interface/

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.

TestOpportunityBookable x1

Running tests for only this feature

npm start -- --runInBand test/features/core/test-interface/

'Implemented' tests

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

"implementedFeatures": {
  ...
  "test-interface": true,
  ...
}
Identifier Name Description Prerequisites per Opportunity Type Required Test Interface Actions
create-opportunity Create opportunity Creates an opportunity using the booking system's test interface, and validates the resulting feed item matches the criteria. TestOpportunityBookable x1