open-nomad/e2e
Preetha Appan 419a2682b0
update to Consul 1.4.0 for e2e tests
2019-01-24 09:52:15 -06:00
..
affinities e2e: add tests for nomad driver upgrade path 2019-01-17 23:32:45 -05:00
cli fix panic 2018-09-18 13:02:03 -07:00
consul consul: support canary tags for services 2018-05-07 14:55:01 -05:00
consultemplate e2e: Add consultemplate test 2019-01-07 17:53:55 +01:00
e2eutil Apply suggestions from code review 2019-01-23 14:09:49 -05:00
example e2e/cli: fix formatting 2018-07-31 13:52:25 -04:00
framework e2e: Add consultemplate test 2019-01-07 17:53:55 +01:00
migrations remove unnecessary test output print 2017-11-01 15:21:05 -05:00
nomad09upgrade e2e/nomad09upgrade: remove test file that is not needed 2019-01-23 21:23:13 -05:00
rescheduling Add more end to end tests for progress deadline and fix flaky test 2018-06-05 17:25:28 -05:00
spread e2e: add tests for nomad driver upgrade path 2019-01-17 23:32:45 -05:00
taskevents e2e: add tests for nomad driver upgrade path 2019-01-17 23:32:45 -05:00
terraform update to Consul 1.4.0 for e2e tests 2019-01-24 09:52:15 -06:00
vault fix iops bug and increase test matrix coverage 2018-12-11 15:28:21 -08:00
README.md Update README.md 2019-01-03 16:15:59 -06:00
e2e.go e2e: skip e2e tests during normal go test runs 2018-07-31 12:42:36 -04:00
e2e_test.go drivers: add docker upgrade path and e2e test 2019-01-23 14:44:42 -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.

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 one of the client IPs.

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