ContainerPoll tweaks the pollSettings for `container`
CreateService creates a service on the passed in swarm daemon.
CreateServiceSpec creates a default service-spec, and applies the provided options
func ExecTask(t *testing.T, d *daemon.Daemon, task swarmtypes.Task, config types.ExecConfig) types.HijackedResponse
ExecTask runs the passed in exec config on the given task
GetRunningTasks gets the list of running tasks for a service
func JobComplete(client client.CommonAPIClient, service swarmtypes.Service) func(log poll.LogT) poll.Result
JobComplete is a poll function for determining that a ReplicatedJob is completed additionally, while polling, it verifies that the job never exceeds MaxConcurrent running tasks
NetworkPoll tweaks the pollSettings for `network`
NewSwarm creates a swarm daemon for testing
NoTasks verifies that all tasks are gone
NoTasksForService verifies that there are no more tasks for the given service
RunningTasksCount verifies there are `instances` tasks running for `serviceID`
ServicePoll tweaks the pollSettings for `service`
ServiceWithImage sets the image to use for the service
ServiceWithInit sets whether the service should use init or not
ServiceWithMode sets the mode of the service to the provided mode.
ServiceSpecOpt is used with `CreateService` to pass in service spec modifiers
ServiceWithCapabilities sets the Capabilities option of the service's ContainerSpec.
ServiceWithCommand sets the command to use for the service
ServiceWithConfig adds the config reference to the service
ServiceWithEndpoint sets the Endpoint of the service
ServiceWithMaxReplicas sets the max replicas for the service
ServiceWithName sets the name of the service
ServiceWithNetwork sets the network of the service
ServiceWithPidsLimit sets the PidsLimit option of the service's Resources.Limits.
ServiceWithReplicas sets the replicas for the service
ServiceWithSecret adds the secret reference to the service
ServiceWithSysctls sets the Sysctls option of the service's ContainerSpec.