Documentation ¶
Overview ¶
* * All common util functions and golbal constants will go here. *
Index ¶
- Constants
- Variables
- func FileExists(name string) bool
- func RandString(length int) string
- func ResetOrCreateCluster(namespace string, deleteWegoRuntime bool) (string, error)
- func ResetOrCreateClusterWithName(namespace string, deleteWegoRuntime bool, clusterName string) (string, error)
- func ShowItems(itemType string) error
- func ShowWegoControllerLogs(ns string)
- func StringWithCharset(length int, charset string) string
- func VerifyControllersInCluster(namespace string)
- type TestInputs
Constants ¶
View Source
const DEFAULT_BRANCH_NAME = "main"
View Source
const EVENTUALLY_DEFAULT_TIMEOUT time.Duration = 60 * time.Second
View Source
const INSTALL_PODS_READY_TIMEOUT time.Duration = 3 * time.Minute
View Source
const INSTALL_RESET_TIMEOUT time.Duration = 300 * time.Second
View Source
const NAMESPACE_TERMINATE_TIMEOUT time.Duration = 600 * time.Second
View Source
const SCREENSHOTS_DIR string = "screenshots/"
View Source
const SELENIUM_SERVICE_URL = "http://localhost:4444/wd/hub"
View Source
const THIRTY_SECOND_TIMEOUT time.Duration = 30 * time.Second
View Source
const TIMEOUT_TWO_MINUTES time.Duration = 120 * time.Second
View Source
const WEGO_DEFAULT_NAMESPACE = wego.DefaultNamespace
View Source
const WEGO_UI_URL = "http://localhost:9001"
Variables ¶
View Source
var DEFAULT_SSH_KEY_PATH string
View Source
var GITHUB_ORG string
View Source
var GITLAB_ORG string
View Source
var GITLAB_SUBGROUP string
Make sure the subgroup belongs to the GITLAB_ORG
View Source
var WEGO_BIN_PATH string
Functions ¶
func FileExists ¶
func RandString ¶ added in v0.0.4
func ResetOrCreateCluster ¶ added in v0.0.4
func ResetOrCreateClusterWithName ¶ added in v0.2.5
func ShowItems ¶ added in v0.0.4
showItems displays the current set of a specified object type in tabular format
func ShowWegoControllerLogs ¶ added in v0.0.4
func ShowWegoControllerLogs(ns string)
func StringWithCharset ¶ added in v0.0.4
func VerifyControllersInCluster ¶ added in v0.0.4
func VerifyControllersInCluster(namespace string)
Types ¶
type TestInputs ¶ added in v0.2.0
type TestInputs struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.