contTest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 20 Imported by: 1

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	ExpectedPingResult  = "Packets: Sent = 4, Received = 4, Lost = 0"
	SecondaryPingResult = "Packets: Sent = 4, Received = 3, Lost = 1"
	ExpectedCurlResult  = "HTTP/1.1 200 OK"
	SecondaryCurlResult = "HTTP/1.1 301 Moved Permanently"
)

Variables

This section is empty.

Functions

func CreateContainer

func CreateContainer(t *testing.T, ContainerName string, imageName string, namespace string) (func(), error)

func CurlTest

func CurlTest(c hcsshim.Container, host string, ipv6 bool) error

func GetOutput

func GetOutput(p hcsshim.Process) string

func PingFromHost

func PingFromHost(containerIp string, ipv6 bool) error

func PingTest

func PingTest(c hcsshim.Container, ip string, ipv6 bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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