helper

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CmdWaitTimeOut time.Duration = 5 * time.Minute

Variables

This section is empty.

Functions

func Chdir

func Chdir(dir string)

Chdir change current working dir

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

func CmdShouldFail(cmd string) string

CmdShouldFail command needs to return non 0 as en exit code returns just stderr

func CmdShouldPass

func CmdShouldPass(cmd string) string

CmdShouldPass command needs to retrun 0 as en exit code returns just stderr

func CopyExample

func CopyExample(exampleName string, targetDir string)

CopyExample copies an example from tests/e2e/examples/<exampleName> into targetDir

func CreateNewContext

func CreateNewContext() string

CreateNewContext create new empty temporary directory

func DeleteDir

func DeleteDir(dir string)

DeleteDir delete directory

func Getwd

func Getwd() string

Getwd retruns current working dir

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 OcSwitchProject

func OcSwitchProject(project string)

OcSwitchProject switch to the project

func VerifyCmpExists

func VerifyCmpExists(cmpName string, appName string, prjName string)

VerifyCmpExists verifies if component was created successfully

Types

This section is empty.

Jump to

Keyboard shortcuts

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