Documentation ¶
Index ¶
- func AgentRestart(client *api.Client, nodeID string) (string, error)
- func DeploymentsForJob(t *testing.T, nomadClient *api.Client, jobID string) []*api.Deployment
- func RegisterAllocs(t *testing.T, nomadClient *api.Client, jobFile string, jobID string) []*api.AllocationListStub
- func RegisterAndWaitForAllocs(t *testing.T, nomadClient *api.Client, jobFile string, jobID string) []*api.AllocationListStub
- func RequireConsulDeregistered(require *require.Assertions, client *capi.Client, serviceName string)
- func RequireConsulStatus(require *require.Assertions, client *capi.Client, ...)
- func WaitForAllocRunning(t *testing.T, nomadClient *api.Client, allocID string)
- func WaitForDeployment(t *testing.T, nomadClient *api.Client, deployID string, status string, ...)
- func WaitForLeader(t *testing.T, nomadClient *api.Client)
- func WaitForNodesReady(t *testing.T, nomadClient *api.Client, nodes int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentRestart ¶ added in v0.10.0
AgentRestart is a test helper function that restarts a client node running under systemd using a raw_exec job. Returns the job ID of the restart job so that callers can clean it up.
func DeploymentsForJob ¶ added in v0.9.3
func RegisterAllocs ¶ added in v0.9.2
func RequireConsulDeregistered ¶ added in v0.10.0
func RequireConsulDeregistered(require *require.Assertions, client *capi.Client, serviceName string)
RequireConsulDeregistered asserts that the service eventually is deregistered from Consul
func RequireConsulStatus ¶ added in v0.10.0
func RequireConsulStatus(require *require.Assertions, client *capi.Client, serviceName, expectedStatus string)
RequireConsulStatus asserts the aggregate health of the service converges to the expected status
func WaitForAllocRunning ¶
func WaitForDeployment ¶ added in v0.9.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.