Documentation ¶
Index ¶
- Variables
- func CheckFormat(format string, actual string) error
- func CleanTestRunDir() error
- func ClearScenarioVariables()
- func CloseHostShellInstance() error
- func CloseLog() error
- func CommandReturnShouldBeEmpty(commandField string) error
- func CommandReturnShouldContain(commandField string, expected string) error
- func CommandReturnShouldContainContent(commandField string, expected *messages.PickleStepArgument_PickleDocString) error
- func CommandReturnShouldEqual(commandField string, expected string) error
- func CommandReturnShouldEqualContent(commandField string, expected *messages.PickleStepArgument_PickleDocString) error
- func CommandReturnShouldMatch(commandField string, expected string) error
- func CommandReturnShouldMatchContent(commandField string, expected *messages.PickleStepArgument_PickleDocString) error
- func CommandReturnShouldNotBeEmpty(commandField string) error
- func CommandReturnShouldNotContain(commandField string, notexpected string) error
- func CommandReturnShouldNotContainContent(commandField string, notexpected *messages.PickleStepArgument_PickleDocString) error
- func CommandReturnShouldNotEqual(commandField string, expected string) error
- func CommandReturnShouldNotEqualContent(commandField string, expected *messages.PickleStepArgument_PickleDocString) error
- func CommandReturnShouldNotMatch(commandField string, expected string) error
- func CommandReturnShouldNotMatchContent(commandField string, expected *messages.PickleStepArgument_PickleDocString) error
- func CompareExpectedWithActualContains(expected string, actual string) error
- func CompareExpectedWithActualEquals(expected string, actual string) error
- func CompareExpectedWithActualMatchesRegex(expected string, actual string) error
- func CompareExpectedWithActualNotContains(notexpected string, actual string) error
- func CompareExpectedWithActualNotEquals(notexpected string, actual string) error
- func CompareExpectedWithActualNotMatchesRegex(notexpected string, actual string) error
- func ConfigFileContainsKey(format string, configPath string, condition string, keyPath string) error
- func ConfigFileContainsKeyMatchingValue(format string, configPath string, condition string, keyPath string, ...) error
- func CopyFilesToTestDir() error
- func CopyResourcesFromPath(resourcesPath string) error
- func CreateDirectory(dirName string) error
- func CreateFile(fileName string) error
- func DeleteDirectory(dirName string) error
- func DeleteFile(fileName string) error
- func DirectoryShouldNotExist(dirName string) error
- func DownloadBundle(bundleLocation string, bundleDestination string, bundleName string) (string, error)
- func DownloadFileIntoLocation(downloadURL string, destinationFolder string) error
- func ExecuteCommand(command string) error
- func ExecuteCommandSucceedsOrFails(command string, expectedResult string) error
- func ExecuteCommandWithRetry(retryCount int, retryTime string, command string, containsOrNot string, ...) error
- func ExecuteStdoutLineByLine() error
- func FileContentIsInValidFormat(filePath string, format string) error
- func FileContentShouldContain(filePath string, expected string) error
- func FileContentShouldEqual(filePath string, expected string) error
- func FileContentShouldMatchRegex(filePath string, expected string) error
- func FileContentShouldNotContain(filePath string, expected string) error
- func FileContentShouldNotEqual(filePath string, expected string) error
- func FileContentShouldNotMatchRegex(filePath string, expected string) error
- func FileExist(fileName string) error
- func FileShouldNotExist(fileName string) error
- func GetBundlePath(preset preset.Preset) string
- func GetConfigKeyValue(configData []byte, format string, keyPath string) (string, error)
- func GetFileContent(path string) (string, error)
- func GetLastCommandOutput(commandField string) string
- func LogMessage(messageInfo, message string) error
- func MatchRepetitionsWithRetry(expression string, match func(string) error, matchRepetitions int, ...) error
- func MatchWithRetry(expression string, match func(string) error, iterations, timeoutInSeconds int) error
- func PerformRegexMatch(regex string, input string) (bool, error)
- func PrepareForE2eTest() error
- func PrepareTestResultsDir() error
- func PrepareTestRunDir() error
- func ProcessScenarioVariables(command string) string
- func RemoveCRCHome() error
- func RunDiagnose(dir string) error
- func RunProxy()
- func SetScenarioVariable(name string, value string)
- func SetScenarioVariableExecutingCommand(variableName string, command string) error
- func ShouldBeInValidFormat(commandField string, format string) error
- func StartHostShellInstance(shellName string) error
- func StartLog(logPath string) error
- func ValidateIP(inputString string) (bool, error)
- func ValidateIPWithPort(inputString string) (bool, error)
- func ValidateURL(inputString string) (bool, error)
- func ValidateYAML(inputString string) (bool, error)
- func WriteTempFile(content string, name string) (string, error)
- func WriteToFile(text string, fileName string) error
- type Collector
- type CommandCollector
- type ContainerLogCollector
- type FileCollector
- type FileWriter
- type ShellInstance
- func (shell *ShellInstance) Close() error
- func (shell *ShellInstance) ConfigureTypeOfShell(shellName string)
- func (shell *ShellInstance) GetLastCmdOutput(stdType string) string
- func (shell *ShellInstance) ScanPipe(scanner *bufio.Scanner, buffer *bytes.Buffer, stdType string)
- func (shell *ShellInstance) Start(shellName string) error
- type TreeCollector
- type VMCommandCollector
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var CACertTempLocation string
View Source
var (
CRCHome string
)
View Source
var (
E2eLog *log.Logger
)
View Source
var TestDir string
View Source
var TestResultsDir string
View Source
var TestRunDir string
Functions ¶
func CheckFormat ¶
func CleanTestRunDir ¶
func CleanTestRunDir() error
func ClearScenarioVariables ¶
func ClearScenarioVariables()
func CloseHostShellInstance ¶
func CloseHostShellInstance() error
func ConfigFileContainsKey ¶
func CopyFilesToTestDir ¶
func CopyFilesToTestDir() error
func CopyResourcesFromPath ¶
func CreateDirectory ¶
func CreateFile ¶
func DeleteDirectory ¶
func DeleteFile ¶
func DirectoryShouldNotExist ¶
func DownloadBundle ¶
func DownloadBundle(bundleLocation string, bundleDestination string, bundleName string) (string, error)
Download bundle for testing
func ExecuteCommand ¶
func ExecuteCommandWithRetry ¶
func ExecuteStdoutLineByLine ¶
func ExecuteStdoutLineByLine() error
func FileContentShouldEqual ¶
func FileShouldNotExist ¶
func GetBundlePath ¶
GetBundlePath returns a path to the cached bundle, depending on the preset
func GetConfigKeyValue ¶
func GetFileContent ¶
func GetLastCommandOutput ¶
func LogMessage ¶
func MatchRepetitionsWithRetry ¶
func MatchRepetitionsWithRetry(expression string, match func(string) error, matchRepetitions int, iterations, timeoutInSeconds int) error
MatchRepetitionsWithRetry will execute match function with expression as arg for #iterations with a timeout, expression should be matched # matchRepetitions in a row
func MatchWithRetry ¶
func MatchWithRetry(expression string, match func(string) error, iterations, timeoutInSeconds int) error
MatchWithRetry will execute match function with expression as arg for #iterations with a timeout
func PrepareForE2eTest ¶
func PrepareForE2eTest() error
func PrepareTestResultsDir ¶
func PrepareTestResultsDir() error
func PrepareTestRunDir ¶
func PrepareTestRunDir() error
func RemoveCRCHome ¶
func RemoveCRCHome() error
func RunDiagnose ¶
func SetScenarioVariable ¶
func ShouldBeInValidFormat ¶
func StartHostShellInstance ¶
func ValidateIP ¶
func ValidateIPWithPort ¶
func ValidateURL ¶
func ValidateYAML ¶
func WriteTempFile ¶
WriteTempFile returns full path of the temp file it created, and an error
func WriteToFile ¶
Types ¶
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
}
type ShellInstance ¶
type ShellInstance struct {
// contains filtered or unexported fields
}
func (*ShellInstance) Close ¶
func (shell *ShellInstance) Close() error
func (*ShellInstance) ConfigureTypeOfShell ¶
func (shell *ShellInstance) ConfigureTypeOfShell(shellName string)
func (*ShellInstance) GetLastCmdOutput ¶
func (shell *ShellInstance) GetLastCmdOutput(stdType string) string
func (*ShellInstance) Start ¶
func (shell *ShellInstance) Start(shellName string) error
type TreeCollector ¶
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
Click to show internal directories.
Click to hide internal directories.