crcsuite

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CRCHome       string
	CRCExecutable string
)

Functions

func CheckCRCStatus

func CheckCRCStatus(state string) error

CheckCRCStatus checks that output of status command matches given regex

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 CommandReturnShouldContainIfBundleEmbeddedOrNot

func CommandReturnShouldContainIfBundleEmbeddedOrNot(commandField string, value string, expected 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 SetKubeConfigContextSucceedsOrFails

func SetKubeConfigContextSucceedsOrFails(context, 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 UnsetConfigPropertySucceedsOrFails

func UnsetConfigPropertySucceedsOrFails(property string, expected string) error

Types

type Collector

type Collector interface {
	Collect(Writer) error
}

type CommandCollector

type CommandCollector struct {
	Command, Target string
}

func (*CommandCollector) Collect

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

type ContainerLogCollector

type ContainerLogCollector struct {
	Process string
}

func (*ContainerLogCollector) Collect

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

type FileCollector

type FileCollector struct {
	Source, Target string
}

func (*FileCollector) Collect

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

type FileWriter

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

func (*FileWriter) Write

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

type TreeCollector

type TreeCollector struct {
	Dir    string
	Target string
}

func (*TreeCollector) Collect

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

type VMCommandCollector

type VMCommandCollector struct {
	Command, Target string
}

func (*VMCommandCollector) Collect

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

type Writer

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