Documentation
¶
Overview ¶
Package framework has utility functions and helpers for running integration rktlet tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestImageBusybox = "busybox:1.25.1" TestImageFedora = "fedora:25" )
All test images should be listed here so they can be prepulled
Functions ¶
func RequireRoot ¶
Types ¶
type Pod ¶
type Pod struct { Name string SandboxId string Metadata *runtime.PodSandboxMetadata LogDir string // contains filtered or unexported fields }
func (*Pod) ContainerID ¶
func (*Pod) RunContainerToExit ¶
RunContainerToExit runs a container and returns its exit code
type TestContext ¶
type TestContext struct { *testing.T Rktlet rktlet.ContainerAndImageService TmpDir string LogDir string // contains filtered or unexported fields }
func Setup ¶
func Setup(t *testing.T) *TestContext
func (*TestContext) ImageRef ¶
func (t *TestContext) ImageRef(key string) string
func (*TestContext) PullImages ¶
func (t *TestContext) PullImages()
func (*TestContext) RunPod ¶
func (t *TestContext) RunPod(name string, partialConfig *runtime.PodSandboxConfig) *Pod
RunPod runs a pod for a test of the given name. The provided 'partialConfig' is optional and essential fields will be set (or overridden)
func (*TestContext) Teardown ¶
func (t *TestContext) Teardown()
Click to show internal directories.
Click to hide internal directories.