Documentation
¶
Index ¶
- func Chdir(dir string)
- func CmdRunner(program string, args ...string) *gexec.Session
- func CmdShouldFail(program string, args ...string) string
- func CmdShouldPass(program string, args ...string) string
- func CopyExample(exampleName string, targetDir string)
- func CreateNewContext() string
- func DeleteDir(dir string)
- func FileShouldContainSubstring(file string, subString string)
- func Getwd() string
- func HttpWaitFor(url string, match string, maxRetry int, interval int)
- type OcRunner
- func (oc *OcRunner) CreateRandProject() string
- func (oc *OcRunner) DeleteProject(projectName string)
- func (oc *OcRunner) GetComponentDC(component string, app string, project string) string
- func (oc *OcRunner) GetComponentRoutes(component string, app string, project string) string
- func (oc *OcRunner) GetCurrentProject() string
- func (oc *OcRunner) GetFirstURL(component string, app string, project string) string
- func (oc *OcRunner) Run(args ...string) *gexec.Session
- func (oc *OcRunner) SwitchProject(projectName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdShouldFail ¶
func CmdShouldPass ¶
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 FileShouldContainSubstring ¶
FileShouldContainSubstring check if file contains subString
Types ¶
type OcRunner ¶
type OcRunner struct {
// contains filtered or unexported fields
}
func (*OcRunner) CreateRandProject ¶
CreateRandProject create new project with random name (10 letters) without writing to the config file (without switching project)
func (*OcRunner) DeleteProject ¶
DeleteProject deletes a specified project
func (*OcRunner) GetComponentDC ¶
GetComponentDC run command to get the DeploymentConfig in yaml format for given component
func (*OcRunner) GetComponentRoutes ¶
GetComponentRoute run command to get the Routes in yaml format for given component
func (*OcRunner) GetCurrentProject ¶
GetCurrentProject get currently active project in oc returns empty string if there no active project, or no access to the project
func (*OcRunner) GetFirstURL ¶
GetFirstURL returns the url of the first Route that it can find for given component
func (*OcRunner) SwitchProject ¶
SwitchProject switch to the project