Documentation ¶
Index ¶
- func Cleanup(t *testing.T, profile string, cancel context.CancelFunc)
- func CleanupWithLogs(t *testing.T, profile string, cancel context.CancelFunc)
- func HyperVDriver() bool
- func MaybeParallel(t *testing.T)
- func MaybeSlowParallel(t *testing.T)
- func NoneDriver() bool
- func PodWait(ctx context.Context, t *testing.T, profile string, ns string, selector string, ...) ([]string, error)
- func ReadLineWithTimeout(b *bufio.Reader, timeout time.Duration) (string, error)
- func StartArgs() []string
- func Status(ctx context.Context, t *testing.T, path string, profile 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 HyperVDriver ¶ added in v1.4.0
func HyperVDriver() bool
HyperVDriver returns whether or not this test is using the Hyper-V driver
func MaybeParallel ¶ added in v1.4.0
MaybeParallel sets that the test should run in parallel
func MaybeSlowParallel ¶ added in v1.4.0
MaybeSlowParallel is a terrible workaround for tests which start clusters in a race-filled world TODO: Try removing this hack once certificates are deployed per-profile
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 ReadLineWithTimeout ¶ added in v1.4.0
ReadLineWithTimeout reads a line of text from a buffer with a timeout
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