Skip to content

Commit

Permalink
Minor fixes to docs for acceptance tests (#1895)
Browse files Browse the repository at this point in the history
  • Loading branch information
analogue authored Feb 9, 2023
1 parent 0ce9fb4 commit 69ae0ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -986,15 +986,15 @@ Any given test can be run either through GoLand or another IDE, or via command l
To run all of the connect tests from command line:
```shell
$ cd acceptance/test
$ go test ./connect/... -p 1 -timeout 2h -failfast -use-kind -no-cleanup-on-failure -kubecontext=kind-dc1 -secondary-kubecontext=kind-dc2 -enable-enterprise -enable-multi-cluster -debug-directory=/tmp/debug -consul-k8s-image=kyleschochenmaier/consul-k8s-acls
$ cd acceptance/tests
$ go test ./connect/... -v -p 1 -timeout 2h -failfast -use-kind -no-cleanup-on-failure -kubecontext=kind-dc1 -secondary-kubecontext=kind-dc2 -enable-enterprise -enable-multi-cluster -debug-directory=/tmp/debug -consul-k8s-image=kyleschochenmaier/consul-k8s-acls
```
When running from command line a few things are important:
* Some tests use Enterprise features, in which case you need:
* Set environment variables `CONSUL_ENT_LICENSE` and possibly `VAULT_LICENSE`.
* Use `-enable-enterprise` on command line when running the test.
* Multi-cluster tests require `-enable-multi-cluster` + `-kubecontext=<kind-dc1>` + `-secondary-kubecontext=<kind-dc2>`
* Multi-cluster tests require `-enable-multi-cluster -kubecontext=kind-dc1 -secondary-kubecontext=kind-dc2`
* Using `./<test-directory>/...` is required as part of the command-line to pick up necessary environmental config.
### Using the framework to debug in an environment
Expand Down

0 comments on commit 69ae0ca

Please sign in to comment.