openbao-helm/test
Theron Voran 2451b5fb65
Increase the timeout for leader elector ready (#443)
Bumps the timeout waiting for the injector replicas (with
leader-elector containers) to be "Ready" to 5 minutes. Default was 30
seconds.
2021-01-12 11:06:00 -08:00
..
acceptance Increase the timeout for leader elector ready (#443) 2021-01-12 11:06:00 -08:00
docker Use docker mirror (#409) 2020-11-23 16:47:25 -08:00
terraform Get acceptance tests running against GKE in CI - merges to master only. (#291) 2020-05-27 17:21:16 +01:00
unit Support deploying multiple injector replicas with auto-TLS (#436) 2021-01-05 11:14:00 +00:00
README.md Get acceptance tests running against GKE in CI - merges to master only. (#291) 2020-05-27 17:21:16 +01:00

Running Vault Helm Acceptance tests

The Makefile at the top level of this repo contains a few target that should help with running acceptance tests in your own GKE instance.

  • Set the GOOGLE_CREDENTIALS and CLOUDSDK_CORE_PROJECT variables at the top of the file. GOOGLE_CREDENTIALS should contain the local path to your Google Cloud Platform account credentials in JSON format. CLOUDSDK_CORE_PROJECT should be set to the ID of your GCP project.
  • Run make test-image to create the docker image (with dependencies installed) that will be re-used in the below steps.
  • Run make test-provision to provision the GKE cluster using terraform.
  • Run make test-acceptance to run the acceptance tests in this already provisioned cluster.
  • You can choose to only run certain tests by setting the ACCEPTANCE_TESTS variable and re-running the above target.
  • Run make test-destroy when you have finished testing and want to tear-down and remove the cluster.