crcsuite

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CRCHome       string
	CRCExecutable string
)

Functions

func CheckCRCStatus added in v1.20.0

func CheckCRCStatus(state string) error

CheckCRCStatus checks that output of status command matches given regex number of consecutive times

func CheckClusterOperatorsWithRetry

func CheckClusterOperatorsWithRetry(retryCount int, retryWait string) error

func CheckHTTPResponseWithRetry

func CheckHTTPResponseWithRetry(retryCount int, retryWait string, address string, expectedStatusCode int) error

func CheckOutputMatchWithRetry

func CheckOutputMatchWithRetry(retryCount int, retryTime string, command string, expected string, expectedOutput string) error

func ConfigFileInCRCHomeContainsKey

func ConfigFileInCRCHomeContainsKey(format string, configFile string, condition string, keyPath string) error

func ConfigFileInCRCHomeContainsKeyMatchingValue

func ConfigFileInCRCHomeContainsKeyMatchingValue(format string, configFile string, condition string, keyPath string, expectedValue string) error

func CopyFilesToTestDir

func CopyFilesToTestDir() error

func DeleteCRC

func DeleteCRC() error

Delete CRC instance

func DeleteFileFromCRCHome

func DeleteFileFromCRCHome(fileName string) error

func DownloadBundle

func DownloadBundle(bundleLocation string, bundleDestination string) (string, error)

Download bundle for testing

func FeatureContext

func FeatureContext(s *godog.Suite)

FeatureContext defines godog.Suite steps for the test suite.

func FileExistsInCRCHome

func FileExistsInCRCHome(fileName string) error

func LoginToOcClusterSucceedsOrFails

func LoginToOcClusterSucceedsOrFails(expected string) error

func ParseFlags

func ParseFlags()

func RemoveCRCHome

func RemoveCRCHome() error

Remove CRC home folder ~/.crc

func SetConfigPropertyToValueSucceedsOrFails

func SetConfigPropertyToValueSucceedsOrFails(property string, value string, expected string) error

func StartCRCWithDefaultBundleAndNameServerSucceedsOrFails

func StartCRCWithDefaultBundleAndNameServerSucceedsOrFails(nameserver string, expected string) error

func StartCRCWithDefaultBundleSucceedsOrFails

func StartCRCWithDefaultBundleSucceedsOrFails(expected string) error

func StartCRCWithDefaultBundleWithStopNetworkTimeSynchronizationSucceedsOrFails

func StartCRCWithDefaultBundleWithStopNetworkTimeSynchronizationSucceedsOrFails(expected string) error

func StdoutContainsIfBundleEmbeddedOrNot

func StdoutContainsIfBundleEmbeddedOrNot(value string, expected string) error

func UnsetConfigPropertySucceedsOrFails

func UnsetConfigPropertySucceedsOrFails(property string, expected string) error

Types

type Collector added in v1.20.0

type Collector interface {
	Collect(Writer) error
}

type CommandCollector added in v1.20.0

type CommandCollector struct {
	Command, Target string
}

func (*CommandCollector) Collect added in v1.20.0

func (collector *CommandCollector) Collect(w Writer) error

type ContainerLogCollector added in v1.20.0

type ContainerLogCollector struct {
	Process string
}

func (*ContainerLogCollector) Collect added in v1.20.0

func (collector *ContainerLogCollector) Collect(w Writer) error

type FileCollector added in v1.20.0

type FileCollector struct {
	Source, Target string
}

func (*FileCollector) Collect added in v1.20.0

func (collector *FileCollector) Collect(w Writer) error

type FileWriter added in v1.20.0

type FileWriter struct {
	// contains filtered or unexported fields
}

func (*FileWriter) Write added in v1.20.0

func (fw *FileWriter) Write(filename string, bin []byte) error

type TreeCollector added in v1.20.0

type TreeCollector struct {
	Dir    string
	Target string
}

func (*TreeCollector) Collect added in v1.20.0

func (collector *TreeCollector) Collect(w Writer) error

type VMCommandCollector added in v1.20.0

type VMCommandCollector struct {
	Command, Target string
}

func (*VMCommandCollector) Collect added in v1.20.0

func (collector *VMCommandCollector) Collect(w Writer) error

type Writer added in v1.20.0

type Writer interface {
	Write(filename string, bin []byte) error
}

Jump to

Keyboard shortcuts

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