Contract tests for the contracts that #team-nextgenconsumer's services expect of National Savings and Investments' (NS&I's) APIs.
Note that these tests do not connect directly to NS&I, they connect to help-to-save-proxy which in turn connects to NS&I. help-to-save-proxy handles authentication to NS&I using certificates and HTTP basic auth.
Ensure you have the following installed:
Copy the air gap JSON spreadsheet (e.g. WebApiTestingReport_16042018_fixed_headings.xlsx
) into directory src/test/resources/airgap
.
Then run tests with:
sbt "testOnly *.AirGap*Spec"
sm --start NGC_HELP_TO_SAVE_CONTRACT_TESTS -f
sbt test
This code is open source software licensed under the Apache 2.0 License.