Documentation ¶
Index ¶
- Constants
- func Chdir(dir string)
- func CheckCmdOpInRemoteCmpPod(cmpName string, appName string, prjName string, cmd string, ...) bool
- func CmdShouldFail(cmd string) string
- func CmdShouldPass(cmd string) string
- func CopyExample(exampleName string, targetDir string)
- func CreateNewContext() string
- func DeleteDir(dir string)
- func Getwd() string
- func OcCreateRandProject() string
- func OcDeleteProject(project string)
- func OcGetCurrentProject() string
- func OcSwitchProject(project string)
- func VerifyCmpExists(cmpName string, appName string, prjName string)
Constants ¶
const CmdWaitTimeOut time.Duration = 5 * time.Minute
Variables ¶
This section is empty.
Functions ¶
func CheckCmdOpInRemoteCmpPod ¶
func CheckCmdOpInRemoteCmpPod(cmpName string, appName string, prjName string, cmd string, checkOp func(cmdOp string, err error) bool) bool
CheckCmdOpInRemoteCmpPod runs the provided command on remote component pod and returns the return value of command output handler function passed to it
func CmdShouldFail ¶
CmdShouldFail command needs to return non 0 as en exit code returns just stderr
func CmdShouldPass ¶
CmdShouldPass command needs to retrun 0 as en exit code returns just stderr
func CopyExample ¶
CopyExample copies an example from tests/e2e/examples/<exampleName> into targetDir
func CreateNewContext ¶
func CreateNewContext() string
CreateNewContext create new empty temporary directory
func OcCreateRandProject ¶
func OcCreateRandProject() string
CreateRandProject create new project with random name (10 letters) without writing to the config file (without switching project)
func OcDeleteProject ¶
func OcDeleteProject(project string)
DeleteProject deletes a specified project
func OcGetCurrentProject ¶
func OcGetCurrentProject() string
OcCurrentProject get currently active project in oc returns empty string if there no active project, or no access to the project
func VerifyCmpExists ¶
VerifyCmpExists verifies if component was created successfully
Types ¶
This section is empty.