open-nomad/e2e
Preetha Appan a262be08e7
Remove unnecessary step in getting node client
All allocation stats are routable from the server
2019-04-01 10:45:41 -05:00
..
affinities
allocstats Remove unnecessary step in getting node client 2019-04-01 10:45:41 -05:00
cli
clientstate test: properly skip client state in beforeall 2019-03-22 06:42:04 -07:00
consul
consultemplate
e2eutil e2e: add NomadAgent and basic client state test 2019-03-21 07:14:34 -07:00
example
execagent e2e: add NomadAgent and basic client state test 2019-03-21 07:14:34 -07:00
fabio prometheus and fabio for metrics 2019-03-11 09:21:04 -05:00
framework remove stray println 2019-03-21 09:23:37 -05:00
metrics Use specific url prefix for metrics test 2019-03-27 11:04:06 -05:00
migrations
nomad09upgrade e2e: add NomadAgent and basic client state test 2019-03-21 07:14:34 -07:00
prometheus prometheus and fabio for metrics 2019-03-11 09:21:04 -05:00
rescheduling
spread
taskevents
terraform Merge pull request #5405 from hashicorp/e2e_metrics 2019-03-21 09:30:12 -05:00
vault
e2e.go
e2e_test.go Add e2e test with raw exec job for verifying allocation resource stats 2019-03-31 09:46:23 -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