Skip to content

Commit

Permalink
Update README with more detail to run E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Jan 25, 2019
1 parent e62545a commit 127d772
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `GINKGO_NODES` to change the parallelism.

### Build and Publish Container Image

Expand Down
4 changes: 3 additions & 1 deletion hack/run-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

set -euo pipefail

ginkgo -p -v --focus ebs-csi-e2e tests/e2e
NODES=${GINKGO_NODES:-32}

ginkgo -p -nodes=$NODES -v --focus ebs-csi-e2e tests/e2e

0 comments on commit 127d772

Please sign in to comment.