open-nomad/e2e
Tim Gross b5bcfb533b
upgrade CNI plugins to 0.8.4 (#6921)
When multiple Connect-enabled task groups start on the same client
node, a race condition in the CNI plugins for creating iptables chains
causes one of the tasks to fail. We upstreamed a patch to CNI plugins
to make iptables chain creation idempotent.

This changeset updates end-to-end testing, development tooling, and
documentation to use 0.8.4 which includes our patch.
2020-01-09 10:57:07 -05:00
..
affinities e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
bin e2e update shell scripts argument quoting 2019-06-04 15:52:32 -04:00
cli e2e/cli/command: Wait() after execution 2019-11-25 10:56:40 -08:00
clientstate e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
connect e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
consul e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
consultemplate e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
deployment e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
e2eutil e2e: add allocstats test for Windows (#6775) 2019-11-26 08:05:42 -05:00
example e2e/cli: fix formatting 2018-07-31 13:52:25 -04:00
execagent e2e: add NomadAgent and basic client state test 2019-03-21 07:14:34 -07:00
fabio e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
framework remove stray println 2019-03-21 09:23:37 -05:00
hostvolumes e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
metrics commit a hclfmt to eliminate diffs after 'make dev' 2020-01-09 08:18:51 -05:00
migrations chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
nomad09upgrade e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
nomadexec e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
prometheus e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
rescheduling chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
spread e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
taskevents e2e: add a Windows client to test runner (#6735) 2019-11-25 13:31:00 -05:00
terraform upgrade CNI plugins to 0.8.4 (#6921) 2020-01-09 10:57:07 -05:00
upgrades script e2e/upgrades: cluster upgrade scripts 2019-09-24 14:35:45 -04:00
vault docs: vault integration docs should reference new token_explicit_max_ttl field 2019-12-02 14:22:47 -06:00
README.md e2e bin/update and bin/run, README 2019-06-04 13:42:07 -04:00
e2e.go e2e: skip e2e tests during normal go test runs 2018-07-31 12:42:36 -04:00
e2e_test.go e2e: run client/allocs metrics nightly tests vs Windows (#6850) 2019-12-16 08:34:17 -05:00

README.md

End to End Tests

This package contains integration tests.

The terraform folder has provisioning code to spin up a Nomad cluster on AWS. The tests work with the NOMAD_ADDR environment variable which can be set either to a local dev Nomad agent or a Nomad client on AWS.

Local Development

The workflow when developing end to end tests locally is to run the provisioning step described below once, and then run the tests as described below. When making local changes, use ./bin/update $(which nomad) /usr/local/bin/nomad and ./bin/run sudo systemctl restart nomad to destructively modify the provisioned cluster.

Provisioning

You'll need AWS credentials (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) to create the Nomad cluster. See the README for details. The number of servers and clients is configurable, as is the configuration file for each client and server.

Running

After completing the provisioning step above, you should see CLI output showing the IP addresses of Nomad client machines. To run the tests, set the NOMAD_ADDR variable to http://[client IP]:4646/

$ NOMAD_ADDR=<> NOMAD_E2E=1 go test -v