open-nomad/e2e
Drew Bailey 2befab6900
Merge pull request #6573 from hashicorp/update-cci-consul
updates default consul version to 1.6.1
2019-11-07 11:01:22 -05:00
..
affinities chore: initial hclfmt 2019-10-11 14:00:05 +02:00
allocstats chore: initial hclfmt 2019-10-11 14:00:05 +02:00
bin
cli
clientstate chore: initial hclfmt 2019-10-11 14:00:05 +02:00
connect
consul New monitor pkg for shared monitor functionality 2019-11-05 09:51:49 -05:00
consultemplate
deployment chore: initial hclfmt 2019-10-11 14:00:05 +02:00
e2eutil
example
execagent
fabio chore: initial hclfmt 2019-10-11 14:00:05 +02:00
framework
hostvolumes
metrics New monitor pkg for shared monitor functionality 2019-11-05 09:51:49 -05:00
migrations
nomad09upgrade chore: initial hclfmt 2019-10-11 14:00:05 +02:00
nomadexec chore: initial hclfmt 2019-10-11 14:00:05 +02:00
prometheus New monitor pkg for shared monitor functionality 2019-11-05 09:51:49 -05:00
rescheduling
spread chore: initial hclfmt 2019-10-11 14:00:05 +02:00
taskevents chore: initial hclfmt 2019-10-11 14:00:05 +02:00
terraform Merge pull request #6573 from hashicorp/update-cci-consul 2019-11-07 11:01:22 -05:00
upgrades
vault
e2e.go
e2e_test.go
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