util

package
v0.26.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry added in v0.22.0

func Retry(t *testing.T, callback func() error, d time.Duration, attempts int) (err error)

func WaitForBusyboxRunning added in v0.22.0

func WaitForBusyboxRunning(t *testing.T, namespace string) error

func WaitForDNSRunning added in v0.22.0

func WaitForDNSRunning(t *testing.T) error

func WaitForDashboardRunning added in v0.22.0

func WaitForDashboardRunning(t *testing.T) error

func WaitForIngressControllerRunning added in v0.25.0

func WaitForIngressControllerRunning(t *testing.T) error

func WaitForIngressDefaultBackendRunning added in v0.25.0

func WaitForIngressDefaultBackendRunning(t *testing.T) error

func WaitForNginxRunning added in v0.25.0

func WaitForNginxRunning(t *testing.T) error

Types

type KubectlRunner

type KubectlRunner struct {
	T          *testing.T
	BinaryPath string
}

func NewKubectlRunner

func NewKubectlRunner(t *testing.T) *KubectlRunner

func (*KubectlRunner) CreateRandomNamespace

func (k *KubectlRunner) CreateRandomNamespace() string

func (*KubectlRunner) DeleteNamespace

func (k *KubectlRunner) DeleteNamespace(namespace string) error

func (*KubectlRunner) RunCommand

func (k *KubectlRunner) RunCommand(args []string) (stdout []byte, err error)

func (*KubectlRunner) RunCommandParseOutput

func (k *KubectlRunner) RunCommandParseOutput(args []string, outputObj interface{}) error

type MinikubeRunner

type MinikubeRunner struct {
	T          *testing.T
	BinaryPath string
	Args       string
	StartArgs  string
}

func (*MinikubeRunner) CheckStatus

func (m *MinikubeRunner) CheckStatus(desired string)

func (*MinikubeRunner) CheckStatusNoFail added in v0.17.0

func (m *MinikubeRunner) CheckStatusNoFail(desired string) error

func (*MinikubeRunner) CombinedOutput added in v0.22.0

func (m *MinikubeRunner) CombinedOutput(cmd string) (string, error)

func (*MinikubeRunner) Copy added in v0.22.0

func (*MinikubeRunner) EnsureRunning

func (m *MinikubeRunner) EnsureRunning()

func (*MinikubeRunner) GetLogs added in v0.22.2

func (m *MinikubeRunner) GetLogs() string

func (*MinikubeRunner) GetStatus

func (m *MinikubeRunner) GetStatus() string

func (*MinikubeRunner) Remove added in v0.22.0

func (m *MinikubeRunner) Remove(f assets.CopyableFile) error

func (*MinikubeRunner) Run added in v0.22.0

func (m *MinikubeRunner) Run(cmd string) error

func (*MinikubeRunner) RunCommand

func (m *MinikubeRunner) RunCommand(command string, checkError bool) string

func (*MinikubeRunner) RunDaemon added in v0.18.0

func (m *MinikubeRunner) RunDaemon(command string) *exec.Cmd

func (*MinikubeRunner) SSH

func (m *MinikubeRunner) SSH(command string) (string, error)

func (*MinikubeRunner) SetEnvFromEnvCmdOutput

func (m *MinikubeRunner) SetEnvFromEnvCmdOutput(dockerEnvVars string) error

func (*MinikubeRunner) Start

func (m *MinikubeRunner) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL