Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AUT-1984] Another attempt at getting the sidecar deployed #1470

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

whi-tw
Copy link
Contributor

@whi-tw whi-tw commented Mar 20, 2024

What

  • Revert the previous revert
  • Add tests for the sidecar container, to ensure the behaviour is as expected

How to review

  • Ensure all potential test cases are covered
  • Ensure tests pass

@whi-tw whi-tw force-pushed the AUT-1984/do-it-again branch from 493e4d4 to 30c8d6c Compare April 9, 2024 13:26
whi-tw added 2 commits April 10, 2024 11:53
This reverts commit abe1bf2, reversing
changes made to c70bc72.
This allows the test to pass without having to set the APP_ENV envar to
'prod', meaning that the test will pass when run in an IDE.

Additionally, the test now tests non-prod environments as well as prod.
@whi-tw whi-tw force-pushed the AUT-1984/do-it-again branch from 30c8d6c to 28e3809 Compare April 10, 2024 10:55
@whi-tw whi-tw marked this pull request as ready for review April 10, 2024 10:55
@whi-tw whi-tw requested review from a team as code owners April 10, 2024 10:55
@whi-tw whi-tw changed the title AUT 1984/do it again AUT-1984: Another attempt at getting the sidecar deployed Apr 10, 2024
These tests ensure all possible requests to the sidecar are tested.

Used testcontainers for this - it allows the tests to be completely
isolated from each other, and allows for an additional caddy
container to be spun up to test the TRUSTED_PROXIES functionality.
@whi-tw whi-tw force-pushed the AUT-1984/do-it-again branch 2 times, most recently from 4e21123 to 6e1e57a Compare April 10, 2024 11:26
If the `RUNNER_DEBUG` environment variable is set to `1`, the logs from
the sidecar container will be streamed to the console. This is useful
for debugging test failures.

This is automatically set when the GitHub Actions job is rerun with the
"Enable debug logging" option checked. Otherwise, the test can be run
on the CLI with `RUNNER_DEBUG=1 yarn test:sidecar`
@whi-tw whi-tw force-pushed the AUT-1984/do-it-again branch from fefc28f to fe2adc3 Compare April 10, 2024 11:40
@whi-tw whi-tw changed the title AUT-1984: Another attempt at getting the sidecar deployed [AUT-1984] Another attempt at getting the sidecar deployed Apr 10, 2024
@whi-tw whi-tw merged commit 09e19ef into main Apr 10, 2024
6 checks passed
@whi-tw whi-tw deleted the AUT-1984/do-it-again branch April 10, 2024 14:24
whi-tw added a commit that referenced this pull request Apr 10, 2024
…again"

This reverts commit 09e19ef, reversing
changes made to 8bd7415.
whi-tw added a commit that referenced this pull request Apr 10, 2024
Revert "Merge pull request #1470 from govuk-one-login/AUT-1984/do-it-again"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants