./config/default.json
to ./config/dev.json
and configure it to point to the local development environment of your own booking system using the steps on the rest of this page.NODE_ENV
to dev
to instruct the test suite to use dev.json
file to override each of the values in default.json
:./config/{NODE_ENV}.json
files allows you to override the default configuration. For more information see this documentation.npm start
to run all tests.testDatasetIdentifier
setting is used in all calls in the test interface. It allows any test data that was created with this identifier to be cleared before a new test run begins.primary
Seller provided in the configuration, using the authentication request headers provided for that Seller.primary
” seller is required. If your booking system supports multiple sellers, the “secondary
” seller must also be set to support the “multiple-sellers” tests. datasetSiteUrl
must be set to the local dataset site URL of your booking system. If you have not yet implemented a dataset site, details for creating it can be found here.accessService
property, as specified in the reference documentation. Note that the endpointURL
within the accessService
is most important, and must refer to your local Open Booking API Base URI.openactive-test-suite
directory:--runInBand
limits the test suite to running all tests in series. This ensures that each test is executed one at a time, which slows down the test suite, and can be helpful when debugging issues relating to faulty transactions.openactive-broker-microservice
running, execute the following command, to execute all configured tests:openactive-broker-microservice
as an intermediary.openactive-integration-tests
writes log files into the ./output/
directory for each test in Markdown format, so you can see the endpoints that have been called, with both the requests sent and responses received.npm start
in the rootopenactive-test-suite
directory. This will automatically start the microservice, run the integration tests, then kill the microservice."waitForHarvestCompletion": true
, to ensure the harvester is up-to-date with the feeds before the tests begin.