package
1.6.112
Repository: https://github.com/hernad/nomad.git
Documentation: pkg.go.dev

# Functions

AssertUntil asserts the test function passes throughout the given duration.
FilesExist verifies all files in the slice are present.
No description provided by the author
No description provided by the author
No description provided by the author
Assert CA file exists and is a valid CA Returns the CA.
Assert key file exists and is a valid signer returns a bool.
No description provided by the author
NewTestServer creates a new TestServer, and makes a call to an optional callback function to modify the configuration.
NewTestVault returns a new TestVault instance that is ready for API calls.
NewTestVaultDelayed returns a test Vault server that has not been started.
No description provided by the author
No description provided by the author
RegisterJobWithToken registers a job and uses the job's Region and Namespace.
No description provided by the author
No description provided by the author
TestMultiplier returns a multiplier for retries and waits given environment the tests are being run under.
Timeout takes the desired timeout and increases it if running in Travis.
VaultVersion returns the Vault version as a string or an error if it couldn't be determined.
No description provided by the author
WaitForClient blocks until the client can be found.
WaitForClientStatus blocks until the client is in the expected status.
WaitForFiles blocks until all the files in the slice are present.
WaitForFilesUntil blocks until duration or all the files in the slice are present.
WaitforJobAllocStatus blocks until the ClientStatus of allocations for a job match the expected map of <ClientStatus>: <count>.
WaitForJobAllocStatusWithToken behaves the same way as WaitForJobAllocStatus but is used for clusters with ACL enabled.
WaitForLeader blocks until a leader is elected.
WaitForLeaders blocks until each rpcs knows the leader.
No description provided by the author
No description provided by the author
WaitForResultUntil waits the duration for the test to pass.
WaitForRunning runs a job and blocks until all allocs are out of pending.
No description provided by the author
WaitForVotingMembers blocks until autopilot promotes all server peers to be voting members.

# Constants

BusyboxImageEnvName is always used, if set, by TestBusyboxImage().

# Structs

ACLConfig is used to configure ACLs.
Advertise is used to configure the addresses to advertise.
ClientConfig is used to configure the client.
Consul is used to configure the communication with Consul.
PortsConfig is used to configure the network ports we use.
ResponseRecorder implements a ResponseWriter which can be written to and read from concurrently.
ServerConfig is used to configure the nomad server.
TestServer is the main server wrapper struct.
TestServerConfig is the main server configuration struct.
TestVault wraps a test Vault server launched in dev mode, suitable for testing.
VaultConfig is used to configure Vault.

# Type aliases

ServerConfigCallback is a function interface which can be passed to NewTestServerConfig to modify the server config.