Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use stage
LOCALTEST
for running tests locally (#26973)
* Use stage `LOCALTEST` for running tests locally Frontend has the concept of a `DEVINFRA` stage which *sort of* means `CI`. Setting this stage has the following behaviour: - Mocks configuration with a local file, instead of resolving configuration from AWS Parameter Store. This means running tests does not require AWS Credentials - Desirable for running tests in CI and locally - Fails tests where the database of mocked request responses is out of date, instead of generating database updates that can be committed. - Desirable in CI, but not locally. We want to generate the files when we run the tests locally so we can commit them as part of the PR Since #26058 we have been running all tests (in CI and locally) with stage `DEVINFRA` but this results in issues like #26972. This change: - introduces a new stage `LOCALTEST` which is used when running tests on a developer machine - this stage will use the same mocked configuration as `DEVINFRA`, so AWS credentials are not required - this stage will create any necessary database files/updates instead of failing the tests - `LOCALTEST` is selected when running tests locally, but not in `CI` where we want to continue using `DEVINFRA` - `DEVINFRA` continues to behave as before Closes #26972 --------- Co-authored-by: Charlotte Emms <[email protected]>
- Loading branch information