Documentation ¶
Index ¶
- func AgentRestart(client *api.Client, nodeID string) (string, error)
- func DeploymentsForJob(t *testing.T, nomadClient *api.Client, jobID string) []*api.Deployment
- func ListLinuxClientNodes(client *api.Client) ([]string, error)
- func ListWindowsClientNodes(client *api.Client) ([]string, error)
- 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.9.5
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 ListLinuxClientNodes ¶ added in v0.9.5
ListLinuxClientNodes returns a list of Linux client IDs, so that tests can skip operating-specific tests if there are no Linux clients available Returns an error only on client errors.
func ListWindowsClientNodes ¶ added in v0.9.5
ListWindowsClientNodes returns a list of Windows client IDs, so that tests can skip operating-specific tests if there are no Windows clients available. Returns an error only on client errors.
func RegisterAllocs ¶ added in v0.9.2
func RequireConsulDeregistered ¶ added in v0.9.5
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.9.5
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.