Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CadvisorActions ¶
type CrioActions ¶ added in v0.55.0
type CrioActions interface {
// Run the no-op pause CRI-O container and return its ID.
RunPause() string
// Run the specified command in a CRI-O busybox container and return its ID.
RunBusybox(cmd ...string) string
// Runs a CRI-O container in the background. Uses the specified CrioRunArgs and command.
// Returns the ID of the new container.
Run(args CrioRunArgs, cmd ...string) string
}
CrioActions provides methods for managing CRI-O containers in tests. CRI-O containers run inside pod sandboxes, so each container requires a pod to be created first.
type CrioRunArgs ¶ added in v0.55.0
type CrioRunArgs struct {
// Image to use.
Image string
// Container name (optional, auto-generated if empty).
Name string
}
CrioRunArgs contains arguments for running a CRI-O container.
type DockerActions ¶
type DockerActions interface {
// Run the no-op pause Docker container and return its ID.
RunPause() string
// Run the specified command in a Docker busybox container and return its ID.
RunBusybox(cmd ...string) string
// Runs a Docker container in the background. Uses the specified DockerRunArgs and command.
// Returns the ID of the new container.
//
// e.g.:
// Run(DockerRunArgs{Image: "busybox"}, "ping", "www.google.com")
// -> docker run busybox ping www.google.com
Run(args DockerRunArgs, cmd ...string) string
RunStress(args DockerRunArgs, cmd ...string) string
Version() []string
StorageDriver() string
}
type DockerRunArgs ¶
type Framework ¶
type Framework interface {
// Clean the framework state.
Cleanup()
// The testing.T used by the framework and the current test.
T() *testing.T
// Returns the hostname being tested.
Hostname() HostnameInfo
// Returns the Docker actions for the test framework.
Docker() DockerActions
// Returns the CRI-O actions for the test framework.
Crio() CrioActions
// Returns the shell actions for the test framework.
Shell() ShellActions
// Returns the cAdvisor actions for the test framework.
Cadvisor() CadvisorActions
}
Integration test framework.
type HostnameInfo ¶
func (HostnameInfo) FullHostname ¶
func (h HostnameInfo) FullHostname() string
Returns: http://<host>:<port>/
Click to show internal directories.
Click to hide internal directories.