helpers

package
v0.0.0-...-e7b3836 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageTag = "testing-" + RandString(4)

Functions

func AddLoggingToTransport

func AddLoggingToTransport(rt http.RoundTripper) http.RoundTripper

func BuildPushContainers

func BuildPushContainers(push bool) error

builds and pushes all docker containers needed for test

func CertsDirectory

func CertsDirectory() string

func DockerRm

func DockerRm(containerName string) error

func DockerRunVault

func DockerRunVault(containerName, rootToken string) error

func E2eDirectory

func E2eDirectory() string

func HelmDirectory

func HelmDirectory() string

func KubeLogs

func KubeLogs(pod string) string

func KubectlOut

func KubectlOut(args ...string) (string, error)

func KubectlOutAsync

func KubectlOutAsync(args ...string) (*bytes.Buffer, chan struct{}, error)

func LocalE2eDirectory

func LocalE2eDirectory() string

func Must

func Must(err error)

func NewTestConfig

func NewTestConfig() *v1.Config

func NewTestRoute1

func NewTestRoute1() *v1.Route

func NewTestRoute2

func NewTestRoute2() *v1.Route

func NewTestSecrets

func NewTestSecrets() secretwatcher.SecretMap

func NewTestUpstream1

func NewTestUpstream1() *v1.Upstream

func NewTestUpstream2

func NewTestUpstream2() *v1.Upstream

func NewTestVirtualHost

func NewTestVirtualHost(name string, routes ...*v1.Route) *v1.VirtualHost

func RandString

func RandString(length int) string

func ServerCert

func ServerCert() string

func ServerKey

func ServerKey() string

func SetupKubeForE2eTest

func SetupKubeForE2eTest(namespace string, buildImages, push bool) error

func SetupKubeForTest

func SetupKubeForTest(namespace string) error

func SoloDirectory

func SoloDirectory() string

func TeardownKube

func TeardownKube(namespace string) error

func TeardownKubeE2E

func TeardownKubeE2E(namespace string) error

func TestRunner

func TestRunner(args ...string) (string, error)

TestRunner executes a command inside the TestRunner container

func TestRunnerAsync

func TestRunnerAsync(args ...string) (*bytes.Buffer, chan struct{}, error)

TestRunnerAsync executes a command inside the TestRunner container returning a buffer that can be read from as it executes

func ToMap

func ToMap(spec interface{}) (map[string]interface{}, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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