Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

< Return to Overview

Test interface (test-interface)

Open Booking API Test Interface implementation

Coverage Status: complete

Test prerequisites

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
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