Documentation
¶
Overview ¶
Package dockertest models Docker resource declarations and capability publication for pipeline tests. It never accesses a Docker daemon or shell.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(world *pipelinetest.World, version string)
Install installs deterministic container/volume/network outputs and the docker.install capability effect. version is explicit test data.
func OnJob ¶ added in v0.3.0
func OnJob(world *pipelinetest.World, agent id.AgentId, name string) *testsuite.MockCallWrapper
OnJob is the replacement of ONE job on one agent, picked by the job's name: dockerlib.Job is a single activity, its spec tells the jobs apart. Like every machine body a job has no default — what a container prints is the test's own data:
dockertest.OnJob(w, "runner-1", "bench").Return(dockerlib.JobReport{Stdout: "42\n"}, nil).Once()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.