testsuite

package
v2.45.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CRCExecutable string

	CRCVersion string
	CRCMemory  string

	GodogTags string
)

Functions

func CheckCRCStatus

func CheckCRCStatus(state 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 CommandReturnShouldContainCorrectVersion

func CommandReturnShouldContainCorrectVersion() 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 DecodeBase64File

func DecodeBase64File(inputFile, outputFile string) error

Decode a file encoded with base64

func DeleteFileFromCRCHome

func DeleteFileFromCRCHome(fileName string) error

func DeletingPodSucceedsOrFails

func DeletingPodSucceedsOrFails(expected string) error

func EnsureCRCIsRunning

func EnsureCRCIsRunning() error

func EnsureKubeConfigIsCleanedUp added in v2.44.0

func EnsureKubeConfigIsCleanedUp() error

func EnsureMicroshiftClusterIsOperational added in v2.28.0

func EnsureMicroshiftClusterIsOperational() error

This function will wait until the microshift cluster got operational

func EnsureOCCommandIsAvailable

func EnsureOCCommandIsAvailable() error

func EnsureUserIsLoggedIntoClusterSucceedsOrFails

func EnsureUserIsLoggedIntoClusterSucceedsOrFails(expected string) error

func EnsureUserNetworkmode added in v2.28.0

func EnsureUserNetworkmode() error

func ExecuteCRCCommand

func ExecuteCRCCommand(command string) error

func ExecuteCommandWithExpectedExitStatus

func ExecuteCommandWithExpectedExitStatus(command string, expectedExitStatus string) error

func ExecuteSingleCommandWithExpectedExitStatus

func ExecuteSingleCommandWithExpectedExitStatus(command string, expectedExitStatus string) error

func ExecutingPodmanCommandSucceedsFails

func ExecutingPodmanCommandSucceedsFails(command string, expected string) error

func FileExistsInCRCHome

func FileExistsInCRCHome(fileName string) error

func InitializeScenario

func InitializeScenario(s *godog.ScenarioContext)

func InitializeTestSuite

func InitializeTestSuite(tctx *godog.TestSuiteContext)

func ParseFlags

func ParseFlags()

func PodmanCommandIsAvailable

func PodmanCommandIsAvailable() error

func PullLoginTagPushImageSucceeds

func PullLoginTagPushImageSucceeds(image string) error

func RemoveBundleFromCache

func RemoveBundleFromCache() error

func SetConfigPropertyToValueSucceedsOrFails

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

func SetKubeConfigContextSucceedsOrFails

func SetKubeConfigContextSucceedsOrFails(context, expected string) error

func StartCRCWithCustomBundleSucceedsOrFails

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

func WaitForClusterInState(state string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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