framework

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Failf

func Failf(format string, args ...interface{})

func FailfWithOffset

func FailfWithOffset(offset int, format string, args ...interface{})

FailfWithOffset calls "Fail" and logs the error at "offset" levels above its caller (for example, for call chain f -> g -> FailfWithOffset(1, ...) error would be logged for "f").

func GetKubectlArgs

func GetKubectlArgs(args []string) []string

GetKubectlArgs wraps with default kubectl related args.

func Logf

func Logf(format string, args ...interface{})

func NowStamp

func NowStamp() string

func ParseCmdOutput

func ParseCmdOutput(output string) []string

ParseCmdOutput converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.

func RandomSuffix

func RandomSuffix() string

RandomSuffix provides a random string to append to certain base name.

func RegisterFlags

func RegisterFlags()

Register flags common to all e2e test suites.

func ReplaceFileConent

func ReplaceFileConent(src, target string, filePath string) error

ReplaceFileConent tries to replace the source content of given file with the target concent, source content can be regex.

func Skipf

func Skipf(format string, args ...interface{})

Types

type TestContextType

type TestContextType struct {
	BinariesDir string
	ProjectDir  string
	// kubectl related items
	KubectlPath        string
	KubeConfig         string
	KubeContext        string
	KubeAPIContentType string
	CertDir            string
	Host               string
}
var TestContext TestContextType

Directories

Path Synopsis
Package ginkgowrapper wraps Ginkgo Fail and Skip functions to panic with structured data instead of a constant string.
Package ginkgowrapper wraps Ginkgo Fail and Skip functions to panic with structured data instead of a constant string.

Jump to

Keyboard shortcuts

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