testutil

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGitSubmodule

func InitGitSubmodule(t *testing.T)

func PullImage

func PullImage(t *testing.T, l log.Logger, image string)

Types

type Container

type Container struct {
	T             *testing.T
	L             log.Logger
	ContainerID   string
	ContainerPort string
	// contains filtered or unexported fields
}

func RunContainerWithPort

func RunContainerWithPort(t *testing.T, l log.Logger, image string, port string) *Container

func (*Container) HostPort

func (c *Container) HostPort() string

func (*Container) Kill

func (c *Container) Kill()

func (*Container) Run

func (c *Container) Run(cmd ...string)

func (*Container) Url

func (c *Container) Url() string

func (*Container) WaitForPort

func (c *Container) WaitForPort()

Jump to

Keyboard shortcuts

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