Documentation
¶
Index ¶
- Constants
- Variables
- func AllDeploymentConfigsAndPodsReady(ns string) func() bool
- func AllDeploymentsAndPodsReady(ns string) func() bool
- func AllDeploymentsReady(deploymentType, ns string) func() bool
- func AllPodsReady(ns string) func() bool
- func BuildOperator() (registry string)
- func BuildTestService() (registry string)
- func BuildTestServicePreparedImage(callerName string) (registry string)
- func CleanupTestScenario(namespace string)
- func CreateFile(filePath, content string)
- func CreateNamespaceCmd(name string) string
- func DeleteFile(filePath string)
- func DeleteNamespaceCmd(name string) string
- func DeployNoopLoopCmd(name, ns string) []string
- func DeployTestScenario(scenario string, namespace ...string)
- func DumpTelepresenceLog(dir string)
- func EnablePullingImages(namespace string)
- func GenerateSessionName() string
- func GetAllPods(ns string) []string
- func GetClusterHost() string
- func GetDevRepositoryName() string
- func GetGatewayHost(namespace string) string
- func GetImageTag() string
- func GetInternalContainerRegistry() string
- func GetIstioIngressHostname() string
- func GetIstioNamespace() string
- func GetProjectLabels(namespace string) string
- func GetRepositoryName() string
- func GetResourceCount(resource, ns string) int
- func GetResourceCountFunc(resource, ns string) func() int
- func InstallLocalOperator(namespace string)
- func InstallMultiNamespaceOperator(namespace string, watchNs ...string)
- func LoginAsTestPowerUser()
- func MatchResourceCount(count int, getCount func() int) func() bool
- func PrepareEnvForOpenshift(namespace string)
- func PrintControllerLogs(ns string)
- func PrintEvents(ns string)
- func PrintSessions(ns string)
- func SetExternalContainerRegistry() string
- func SetInternalContainerRegistry()
- func TaskIsDone(ns, taskName string) func() bool
- func TaskResult(ns, taskName, key string) string
- func UpdateSecurityConstraintsFor(namespace string)
- func UsePrebuiltImages() bool
Constants ¶
const PublisherService = `` /* 565-byte string literal not displayed */
PublisherService contains fixed response to be changed by tests.
Variables ¶
var RunsOnOpenshift = func() bool { cmdGetDefaultServices := shell.Execute("kubectl get services -o=custom-columns='SERVICES:metadata.name' --no-headers -n default") <-cmdGetDefaultServices.Done() defaultServices := strings.Join(cmdGetDefaultServices.Status().Stdout, "") return strings.Contains(defaultServices, "openshift") }()
Functions ¶
func AllDeploymentConfigsAndPodsReady ¶ added in v0.0.4
AllDeploymentConfigsAndPodsReady checks if both AllDeploymentsReady(DeploymentConfig) and AllPodsReady return true.
func AllDeploymentsAndPodsReady ¶ added in v0.0.4
AllDeploymentsAndPodsReady checks if both AllDeploymentsReady(Deployment) and AllPodsReady return true.
func AllDeploymentsReady ¶ added in v0.0.4
AllDeploymentsReady checks whether all the deploymentType(deployment or deploymentconfig) in the given namespace have the same replicas and readyReplicas count.
func AllPodsReady ¶ added in v0.0.2
AllPodsReady checks whether all the pods (and their containers) in the given namespace are in Ready state.
func BuildOperator ¶
func BuildOperator() (registry string)
BuildOperator builds istio-workspace operator and pushes it to specified registry.
func BuildTestService ¶
func BuildTestService() (registry string)
BuildTestService builds istio-workspace-test service and pushes it to specified registry.
func BuildTestServicePreparedImage ¶ added in v0.0.2
BuildTestServicePreparedImage builds istio-workspace-test-prepared service and pushes it to specified registry.
func CleanupTestScenario ¶ added in v0.0.2
func CleanupTestScenario(namespace string)
func CreateFile ¶
func CreateFile(filePath, content string)
CreateFile creates file under defined path with a given content.
func CreateNamespaceCmd ¶ added in v0.5.3
func DeleteFile ¶ added in v0.0.2
func DeleteFile(filePath string)
DeleteFile deletes file under defined path.
func DeleteNamespaceCmd ¶ added in v0.5.3
func DeployNoopLoopCmd ¶ added in v0.5.2
func DeployTestScenario ¶
DeployTestScenario deploys a test scenario into the specified namespace.
func DumpTelepresenceLog ¶ added in v0.0.2
func DumpTelepresenceLog(dir string)
DumpTelepresenceLog dumps telepresence log if exists.
func EnablePullingImages ¶ added in v0.0.4
func EnablePullingImages(namespace string)
func GenerateSessionName ¶ added in v0.0.4
func GenerateSessionName() string
GenerateSessionName returns a random safe string to be used as a session name.
func GetAllPods ¶ added in v0.0.2
GetAllPods returns names of all pods from a given namespace.
func GetClusterHost ¶ added in v0.0.2
func GetClusterHost() string
func GetDevRepositoryName ¶ added in v0.0.5
func GetDevRepositoryName() string
GetDevRepositoryName returns the name of the repository containing development related images.
func GetGatewayHost ¶ added in v0.0.2
GetGatewayHost returns the host the Gateway in the scenario is bound to (http header Host).
func GetImageTag ¶ added in v0.0.4
func GetImageTag() string
GetImageTag returns image tag if defined in IKE_IMAGE_TAG variable or "latest" otherwise.
func GetInternalContainerRegistry ¶ added in v0.5.0
func GetInternalContainerRegistry() string
GetInternalContainerRegistry returns the internal address for the container registry.
func GetIstioIngressHostname ¶ added in v0.0.2
func GetIstioIngressHostname() string
func GetIstioNamespace ¶ added in v0.0.2
func GetIstioNamespace() string
func GetProjectLabels ¶ added in v0.0.2
GetProjectLabels returns labels for a given namespace as a string.
func GetRepositoryName ¶ added in v0.0.4
func GetRepositoryName() string
GetRepositoryName returns the name of the repository.
func GetResourceCount ¶ added in v0.2.0
GetResourceCount returns the number of "resource"s in the given namespace.
func GetResourceCountFunc ¶ added in v0.2.0
GetResourceCountFunc wraps GetResourceCount for to be called repeatedly.
func InstallLocalOperator ¶ added in v0.0.2
func InstallLocalOperator(namespace string)
func InstallMultiNamespaceOperator ¶ added in v0.5.3
func LoginAsTestPowerUser ¶ added in v0.0.2
func LoginAsTestPowerUser()
func MatchResourceCount ¶ added in v0.2.0
MatchResourceCount eventually matcher matching count of resources.
func PrepareEnvForOpenshift ¶ added in v0.5.3
func PrepareEnvForOpenshift(namespace string)
PrepareEnvForOpenshift sets up an environmental specific things.
func PrintControllerLogs ¶ added in v0.5.3
func PrintControllerLogs(ns string)
func PrintEvents ¶ added in v0.5.3
func PrintEvents(ns string)
PrintEvents returns all events which occurred for a given namespace.
func PrintSessions ¶ added in v0.5.3
func PrintSessions(ns string)
func SetExternalContainerRegistry ¶ added in v0.5.0
func SetExternalContainerRegistry() string
func SetInternalContainerRegistry ¶ added in v0.5.0
func SetInternalContainerRegistry()
func TaskIsDone ¶ added in v0.0.9
TaskIsDone checks if given task has succeeded.
func TaskResult ¶ added in v0.0.9
TaskResult returns value of given result variable for defined Task.
func UpdateSecurityConstraintsFor ¶
func UpdateSecurityConstraintsFor(namespace string)
UpdateSecurityConstraintsFor applies anyuid and privileged constraints to a given namespace.
func UsePrebuiltImages ¶ added in v0.0.4
func UsePrebuiltImages() bool
UsePrebuiltImages returns true if test suite should use images that are built outside the test execution flow.
Types ¶
This section is empty.