diff --git a/docs/README.md b/docs/README.md index d17906883e..85dee706f4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -128,12 +128,24 @@ To execute integration tests, run: make test-integration ``` +**Note**: EC2 instance is required to run integration test, since it is exercising the actual flow of creating EBS volume, attaching it and read/write on the disk. + To execute e2e tests, run: + +Some tests marked with `[env]` require specific environmental variables to be set, if not set these tests will be skipped. + +``` +export AWS_AVAILABILITY_ZONES="us-west-2a,us-west-2b" ``` + +Replacing `us-west-2a,us-west-2b` with the AZ(s) where your Kubernetes worker nodes are located. + +``` +export KUBECONFIG=~/.kube/config make test-e2e ``` -**Note**: EC2 instance is required to run integration test, since it is exercising the actual flow of creating EBS volume, attaching it and read/write on the disk. +**Note**: By default `make test-e2e` will run 32 tests concurrently, set `E2E_GINKGO_NODES` to change the parallelism. ### Build and Publish Container Image diff --git a/hack/run-e2e-test b/hack/run-e2e-test index f4f94cd886..7e6cd1bd73 100755 --- a/hack/run-e2e-test +++ b/hack/run-e2e-test @@ -16,4 +16,6 @@ set -euo pipefail -ginkgo -p -v --focus ebs-csi-e2e tests/e2e +NODES=${E2E_GINKGO_NODES:-32} + +ginkgo -p -nodes=$NODES -v --focus ebs-csi-e2e tests/e2e