mirror of https://github.com/hashicorp/consul
Browse Source
Locally, always run integration tests using amd64, even if running on an arm mac. This ensures the architecture locally always matches the CI/CD environment. In addition: * Use consul:local for envoy integration and upgrade tests. Previously, consul:local was used for upgrade tests and consul-dev for integration tests. I didn't see a reason to use separate images as it's more confusing. * By default, disable the requirement that aws credentials are set. These are only needed for the lambda tests and make it so you can't run any tests locally, even if you're not running the lambda tests. Now they'll only run if the LAMBDA_TESTS_ENABLED env var is set. * Split out the building of the Docker image for integration tests into its own target from `dev-docker`. This allows us to always use an amd64 image without messing up the `dev-docker` target. * Add support for passing GO_TEST_FLAGs to `test-envoy-integ` target. * Add a wait_for_leader function because tests were failing locally without it.pull/14396/head
Luke Kysow
2 years ago
committed by
GitHub
6 changed files with 51 additions and 25 deletions
@ -1,7 +1,7 @@
|
||||
# Note this arg has to be before the first FROM |
||||
ARG ENVOY_VERSION |
||||
|
||||
FROM consul-dev as consul |
||||
FROM consul:local as consul |
||||
|
||||
FROM docker.mirror.hashicorp.services/envoyproxy/envoy:v${ENVOY_VERSION} |
||||
COPY --from=consul /bin/consul /bin/consul |
||||
|
Loading…
Reference in new issue