crcsuite

package
v1.99.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 17 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 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 DeleteFileFromCRCHome

func DeleteFileFromCRCHome(fileName string) error

func ExecuteCommand added in v1.29.1

func ExecuteCommand(command string) error

func ExecuteCommandWithExpectedExitStatus added in v1.29.1

func ExecuteCommandWithExpectedExitStatus(command string, expectedExitStatus string) error

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

func SetConfigPropertyToValueSucceedsOrFails

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

func SetKubeConfigContextSucceedsOrFails

func SetKubeConfigContextSucceedsOrFails(context, expected string) error

func StartCRCWithCustomBundleSucceedsOrFails added in v1.26.0

func StartCRCWithCustomBundleSucceedsOrFails(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 WaitForClusterInState added in v1.26.0

func WaitForClusterInState(state string) 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