./config/dev.jsonand configure it to point to the local development environment of your own booking system using the steps on the rest of this page.
devto instruct the test suite to use
dev.jsonfile to override each of the values in
npm startto run all tests.
testDatasetIdentifiersetting 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.
primarySeller 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.
openactive-broker-microservicerunning, execute the following command, to execute all configured tests:
openactive-broker-microserviceas an intermediary.
openactive-integration-testswrites 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.
"ci": truemust be included in the supplied config JSON to ensure correct console logging output. Then simply run
npm startin the root
openactive-test-suitedirectory. 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.