mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
* services: un-mark group services as deregistered if restart hook runs This PR may fix a bug where group services will never be deregistered if the group undergoes a task restart. * e2e: add test case for restart and deregister group service * cl: add cl * e2e: add wait for service list call
20 lines
368 B
Go
20 lines
368 B
Go
package consul
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/nomad/e2e/e2eutil"
|
|
)
|
|
|
|
func TestConsul(t *testing.T) {
|
|
// todo: migrate the remaining consul tests
|
|
|
|
nomad := e2eutil.NomadClient(t)
|
|
|
|
e2eutil.WaitForLeader(t, nomad)
|
|
e2eutil.WaitForNodesReady(t, nomad, 1)
|
|
|
|
t.Run("testServiceReversion", testServiceReversion)
|
|
t.Run("testAllocRestart", testAllocRestart)
|
|
}
|