open-nomad/e2e
Lang Martin 0648402150
Merge pull request #6373 from hashicorp/b-raft-proto-upgrade
raft protocol defaults to version 2
2019-09-26 14:33:09 -04:00
..
affinities
allocstats
bin e2e update shell scripts argument quoting 2019-06-04 15:52:32 -04:00
cli
clientstate
connect driver/networking: don't recreate existing network namespaces 2019-09-25 14:58:17 -04:00
consul e2e: move consul status check helpers to e2eutil (#6314) 2019-09-18 08:18:19 -04:00
consultemplate
deployment e2e/deployment DeploymentsForJob fail instead of nil, error passing 2019-06-04 14:31:42 -04:00
e2eutil e2e: test infra for client node restarts (#6313) 2019-09-18 10:10:14 -04:00
example
execagent
fabio
framework
hostvolumes e2e: init host volumes test 2019-09-18 00:34:48 +02:00
metrics
migrations chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
nomad09upgrade
nomadexec add e2e tests for nomad exec 2019-05-09 16:49:08 -04:00
prometheus
rescheduling chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
spread
taskevents
terraform e2e: Add Host Volume Configuration 2019-09-17 20:06:50 +02:00
upgrades script e2e/upgrades: cluster upgrade scripts 2019-09-24 14:35:45 -04:00
vault
e2e.go
e2e_test.go e2e: init host volumes test 2019-09-18 00:34:48 +02:00
README.md e2e bin/update and bin/run, README 2019-06-04 13:42:07 -04:00

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