bc800a18d1
Some tests may chose to deregister jobs to check Nomad cleanup logic, however, it is still possible for the test to fail and exit before this is hit. This therefore adds a cancellable cleanup func which can be deferred, using context to control whether it gets run or not.
11 lines
510 B
Go
11 lines
510 B
Go
// Package servicediscovery provides end-to-end tests for Nomads service
|
|
// discovery feature. It tests all supported discovery providers and ensures
|
|
// Nomad can handle operator changes to services with the desired effects.
|
|
//
|
|
// Subsystems of service discovery such as Consul Connect or Consul Template
|
|
// have their own suite of tests.
|
|
//
|
|
// In order to run this test suite only, from the e2e directory you can trigger
|
|
// go test -v -run '^TestServiceDiscovery$' ./servicediscovery
|
|
package servicediscovery
|