Files
nomad/e2e
Drew Bailey 8095b4868a New monitor pkg for shared monitor functionality
Adds new package that can be used by client and server RPC endpoints to
facilitate monitoring based off of a logger

clean up old code

small comment about write

rm old comment about minsize

rename to Monitor

Removes connection logic from monitor command

Keep connection logic in endpoints, use a channel to send results from
monitoring

use new multisink logger and interfaces

small test for dropped messages

update go-hclogger and update sink/intercept logger interfaces
2019-11-05 09:51:49 -05:00
..
2019-10-11 14:00:05 +02:00
2019-10-11 14:00:05 +02:00
2018-09-18 13:02:03 -07:00
2019-10-11 14:00:05 +02:00
2019-10-11 14:00:05 +02:00
2018-07-31 13:52:25 -04:00
2019-10-11 14:00:05 +02:00
2019-03-21 09:23:37 -05:00
2019-09-18 00:34:48 +02:00
2019-10-11 14:00:05 +02:00
2019-10-11 14:00:05 +02:00
2019-10-11 14:00:05 +02:00
2019-10-11 14:00:05 +02:00
2019-09-18 00:34:48 +02:00
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