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

Make E2E tests use Acyl instead of Docker Compose #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wwalexander
Copy link
Contributor

@wwalexander wwalexander commented Jan 29, 2021

This PR updates the E2E test scaffolding to use Acyl instead of Docker Compose to spin up the necessary environment. I've tried to avoid doing too many big refactors, and avoided touching existing Guardian code as much as possible. This spins up the official (deprecated) Helm 2 Envoy and Redis images, as well as an http-echo Helm chart that I created. I had to refactor the E2E test as a separate binary rather than Go unit tests, in order to not require the entire Go build stack in the final Docker image. I also moved the configuration options for the test from stdlib flags to Kingpin to match the other binaries.

The environment is now spinning up properly and running the tests. They all seem to be failing, however, except TestWhitelist (maybe just due to the rate limit not kicking in in time?). I'm noticing that there's nowhere the e2e tests seem to reference the address of the http-echo server in any way - the GET requests go to the Envoy server, so maybe there's some way the Envoy server needs to be configured to talk to Guardian. However, I don't see any configuration for this in the old Docker Compose YAML either. This does feel like it's probably the key, though.

Once the tests are passing, I also need to remove the old CircleCI E2E stuff and set things up to run the DQA automatically.

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.

1 participant