dockertest

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL