Documentation ¶
Index ¶
- func CanCleanup() bool
- func Cleanup(t *testing.T, profile string, cancel context.CancelFunc)
- func CleanupWithLogs(t *testing.T, profile string, cancel context.CancelFunc)
- func DockerDriver() bool
- func HyperVDriver() bool
- func KicDriver() bool
- func MaybeParallel(t *testing.T)
- func Minutes(n int) time.Duration
- func NeedsPortForward() bool
- func NoneDriver() bool
- func PodWait(ctx context.Context, t *testing.T, profile string, ns string, selector string, ...) ([]string, error)
- func PodmanDriver() bool
- func ReadLineWithTimeout(b *bufio.Reader, timeout time.Duration) (string, error)
- func Seconds(n int) time.Duration
- func StartArgs() []string
- func Status(ctx context.Context, t *testing.T, path string, profile string, key string) string
- func Target() string
- func TestMain(m *testing.M)
- func UniqueProfileName(prefix string) string
- type RunResult
- type StartSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶ added in v1.4.0
func Cleanup(t *testing.T, profile string, cancel context.CancelFunc)
Cleanup cleans up after a test run
func CleanupWithLogs ¶ added in v1.4.0
func CleanupWithLogs(t *testing.T, profile string, cancel context.CancelFunc)
CleanupWithLogs cleans up after a test run, fetching logs and deleting the profile
func DockerDriver ¶ added in v1.10.0
func DockerDriver() bool
DockerDriver returns whether or not this test is using the docker or podman driver
func HyperVDriver ¶ added in v1.4.0
func HyperVDriver() bool
HyperVDriver returns whether or not this test is using the Hyper-V driver
func KicDriver ¶ added in v1.9.0
func KicDriver() bool
KicDriver returns whether or not this test is using the docker or podman driver
func MaybeParallel ¶ added in v1.4.0
MaybeParallel sets that the test should run in parallel
func Minutes ¶ added in v1.8.0
Minutes will return timeout in minutes based on how slow the machine is
func NeedsPortForward ¶ added in v1.9.1
func NeedsPortForward() bool
NeedsPortForward returns access to endpoints with this driver needs port forwarding (Docker on non-Linux platforms requires ports to be forwarded to 127.0.0.1)
func NoneDriver ¶ added in v1.4.0
func NoneDriver() bool
NoneDriver returns whether or not this test is using the none driver
func PodWait ¶ added in v1.4.0
func PodWait(ctx context.Context, t *testing.T, profile string, ns string, selector string, timeout time.Duration) ([]string, error)
PodWait waits for pods to achieve a running state.
func PodmanDriver ¶ added in v1.10.0
func PodmanDriver() bool
PodmanDriver returns whether or not this test is using the docker or podman driver
func ReadLineWithTimeout ¶ added in v1.4.0
ReadLineWithTimeout reads a line of text from a buffer with a timeout
func Seconds ¶ added in v1.8.0
Seconds will return timeout in minutes based on how slow the machine is
func StartArgs ¶ added in v1.4.0
func StartArgs() []string
StartArgs returns the arguments normally used for starting minikube
func Target ¶ added in v1.4.0
func Target() string
Target returns where the minikube binary can be found
func UniqueProfileName ¶ added in v1.4.0
UniqueProfileName returns a reasonably unique profile name
Types ¶
type RunResult ¶ added in v1.4.0
RunResult stores the result of an cmd.Run call
type StartSession ¶ added in v1.4.0
type StartSession struct { Stdout *bufio.Reader Stderr *bufio.Reader // contains filtered or unexported fields }
StartSession stores the result of an cmd.Start call
func (*StartSession) Stop ¶ added in v1.4.0
func (ss *StartSession) Stop(t *testing.T)
Stop stops the started process