Documentation ¶
Index ¶
- Constants
- func Run(t *testing.T, te TestEnvironment)
- func RunFile(t *testing.T, te TestEnvironment, file string)
- type AfterSetupContainers
- type AfterTerminateContainers
- type BeforeSetupContainers
- type BeforeTerminateContainers
- type ContainerConfig
- type ContainerTestEnvironment
- func (d *ContainerTestEnvironment) DockerCompose() DockerCompose
- func (d *ContainerTestEnvironment) Fatal(args ...interface{})
- func (d *ContainerTestEnvironment) Fatalf(format string, args ...interface{})
- func (d *ContainerTestEnvironment) File() string
- func (d *ContainerTestEnvironment) Log(format string)
- func (d *ContainerTestEnvironment) Logf(format string, args ...interface{})
- func (d *ContainerTestEnvironment) Service(name string) (*DockerService, bool)
- func (d *ContainerTestEnvironment) ServicePort(name, port string) int
- func (d *ContainerTestEnvironment) SetupSuite()
- func (d *ContainerTestEnvironment) TearDownSuite()
- type DockerCompose
- type DockerService
- type Log
- type Port
- type Service
- type TestEnvironment
- type Wait
Constants ¶
View Source
const (
PRIORITY_DEFAULT = 100
)
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(t *testing.T, te TestEnvironment)
Types ¶
type AfterSetupContainers ¶
type AfterSetupContainers interface {
AfterSetupContainers() error
}
type AfterTerminateContainers ¶
type AfterTerminateContainers interface {
AfterTerminateContainers() error
}
type BeforeSetupContainers ¶
type BeforeSetupContainers interface {
BeforeSetupContainers() error
}
type BeforeTerminateContainers ¶
type BeforeTerminateContainers interface {
BeforeTerminateContainers() error
}
type ContainerConfig ¶
type ContainerTestEnvironment ¶
func (*ContainerTestEnvironment) DockerCompose ¶
func (d *ContainerTestEnvironment) DockerCompose() DockerCompose
func (*ContainerTestEnvironment) Fatal ¶
func (d *ContainerTestEnvironment) Fatal(args ...interface{})
func (*ContainerTestEnvironment) Fatalf ¶
func (d *ContainerTestEnvironment) Fatalf(format string, args ...interface{})
func (*ContainerTestEnvironment) File ¶
func (d *ContainerTestEnvironment) File() string
func (*ContainerTestEnvironment) Log ¶
func (d *ContainerTestEnvironment) Log(format string)
func (*ContainerTestEnvironment) Logf ¶
func (d *ContainerTestEnvironment) Logf(format string, args ...interface{})
func (*ContainerTestEnvironment) Service ¶
func (d *ContainerTestEnvironment) Service(name string) (*DockerService, bool)
func (*ContainerTestEnvironment) ServicePort ¶
func (d *ContainerTestEnvironment) ServicePort(name, port string) int
func (*ContainerTestEnvironment) SetupSuite ¶
func (d *ContainerTestEnvironment) SetupSuite()
func (*ContainerTestEnvironment) TearDownSuite ¶
func (d *ContainerTestEnvironment) TearDownSuite()
type DockerCompose ¶
type DockerService ¶
type DockerService struct {
// contains filtered or unexported fields
}
func (*DockerService) Accept ¶
func (d *DockerService) Accept(l testcontainers.Log)
type Service ¶
type Service struct { ContainerName string `yaml:"container_name"` Image string `yaml:"image"` Environment map[string]string `yaml:"environment"` Labels []string `yaml:"labels"` Ports []string `yaml:"ports"` Networks []string `yaml:"networks"` Command []string `yaml:"command"` Volumes []string `yaml:"volumes"` }
type TestEnvironment ¶
type TestEnvironment interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.