Documentation
¶
Index ¶
- func AssertContains(t *testing.T, actual, expected string)
- func AssertDirContainsFileWithContents(t *testing.T, dir string, file string, expected string)
- func AssertEq(t *testing.T, actual, expected interface{})
- func AssertError(t *testing.T, actual error, expected string)
- func AssertMatch(t *testing.T, actual string, expected *regexp.Regexp)
- func AssertNil(t *testing.T, actual interface{})
- func AssertNotEq(t *testing.T, actual, expected interface{})
- func AssertNotNil(t *testing.T, actual interface{})
- func AssertSameInstance(t *testing.T, actual, expected interface{})
- func AssertSliceContains(t *testing.T, slice []string, value string)
- func CleanDefaultImages(t *testing.T, registryPort string)
- func ConfigurePackHome(t *testing.T, packHome, registryPort string)
- func CopySingleFileFromContainer(dockerCli *docker.Client, ctrID, path string) (string, error)
- func CopySingleFileFromImage(dockerCli *docker.Client, repoName, path string) (string, error)
- func CopyWorkspaceToDocker(t *testing.T, srcPath, destVolume string)
- func CreateImageOnLocal(t *testing.T, dockerCli *docker.Client, repoName, dockerFile string)
- func CreateImageOnRemote(t *testing.T, dockerCli *docker.Client, repoName, dockerFile string) string
- func DefaultBuildImage(t *testing.T, registryPort string) string
- func DefaultBuilderImage(t *testing.T, registryPort string) string
- func DefaultRunImage(t *testing.T, registryPort string) string
- func DockerRmi(dockerCli *docker.Client, repoNames ...string) error
- func Eventually(t *testing.T, test func() bool, every time.Duration, timeout time.Duration)
- func HttpGet(t *testing.T, url string) string
- func HttpGetE(url string) (string, error)
- func ImageID(t *testing.T, repoName string) string
- func RandString(n int) string
- func ReadFromDocker(t *testing.T, volume, path string) string
- func Run(t *testing.T, cmd *exec.Cmd) string
- func RunE(cmd *exec.Cmd) (string, error)
- func RunRegistry(t *testing.T, seedRegistry bool) (localPort string)
- func StopRegistry(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶
func AssertNotEq ¶
func AssertNotNil ¶
func AssertSameInstance ¶
Assert the simplistic pointer (or literal value) equality
func CleanDefaultImages ¶
func ConfigurePackHome ¶
func CopySingleFileFromImage ¶
func CopyWorkspaceToDocker ¶
func CreateImageOnLocal ¶
func CreateImageOnRemote ¶
func Eventually ¶
func RandString ¶
func StopRegistry ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.