Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2018 Changes in this version + var TestContext *e2e.TestContextType = &e2e.TestContext + func ArtifactDirPath() string + func ArtifactPath(elem ...string) string + func BuildAuthConfiguration(credKey string, oc *CLI) (*dockerClient.AuthConfiguration, error) + func CheckBuildCancelled(b *buildapi.Build) bool + func CheckBuildFailed(b *buildapi.Build) bool + func CheckBuildSuccess(b *buildapi.Build) bool + func CheckForBuildEvent(client kcoreclient.CoreV1Interface, build *buildapi.Build, ...) + func CheckImageStreamLatestTagPopulated(i *imageapi.ImageStream) bool + func CheckImageStreamTagNotFound(i *imageapi.ImageStream) bool + func CheckOpenShiftNamespaceImageStreams(oc *CLI) + func CheckPodIsReady(pod kapiv1.Pod) bool + func CheckPodIsRunning(pod kapiv1.Pod) bool + func CheckPodIsSucceeded(pod kapiv1.Pod) bool + func CheckPodNoOp(pod kapiv1.Pod) bool + func CreateExecPodOrFail(client kcoreclient.CoreV1Interface, ns, name string) string + func CreateResource(jsonFilePath string, oc *CLI) error + func DeletePVCsForDeployment(client clientset.Interface, oc *CLI, deploymentPrefix string) + func DumpAndReturnTagging(tags []string) ([]string, error) + func DumpApplicationPodLogs(dcName string, oc *CLI) + func DumpBuildLogs(bc string, oc *CLI) + func DumpBuilds(oc *CLI) + func DumpDeploymentLogs(dcName string, version int64, oc *CLI) + func DumpDockerInfo() + func DumpImageStreams(oc *CLI) + func DumpPersistentVolumeInfo(oc *CLI) + func DumpPodLogs(pods []kapiv1.Pod, oc *CLI) + func DumpPodLogsStartingWith(prefix string, oc *CLI) + func DumpPodLogsStartingWithInNamespace(prefix, namespace string, oc *CLI) + func DumpPodStates(oc *CLI) + func DumpPodsCommand(c kclientset.Interface, ns string, selector labels.Selector, cmd string) + func ExamineDiskUsage() + func ExaminePodDiskUsage(oc *CLI) + func ExecuteTest(t *testing.T, suite string) + func FatalErr(msg interface{}) + func FetchURL(url string, retryTimeout time.Duration) (response string, err error) + func FixturePath(elem ...string) string + func GetApplicationPods(oc *CLI, dcName string) (*kapiv1.PodList, error) + func GetDeploymentConfigPods(oc *CLI, dcName string, version int64) (*kapiv1.PodList, error) + func GetDockerImageReference(c imagetypeclientset.ImageStreamInterface, name, tag string) (string, error) + func GetEndpointAddress(oc *CLI, name string) (string, error) + func GetImageIDForTags(comps []string) ([]string, error) + func GetMasterThreadDump(oc *CLI) + func GetPodForContainer(container kapiv1.Container) *kapiv1.Pod + func GetPodNamesByFilter(c kcoreclient.PodInterface, label labels.Selector, ...) (podNames []string, err error) + func GetStatefulSetPods(oc *CLI, setName string) (*kapiv1.PodList, error) + func InitTest() + func KubeConfigPath() string + func ListImages() ([]string, error) + func NewPodExecutor(oc *CLI, name, image string) (*podExecutor, error) + func ParseLabelsOrDie(str string) labels.Selector + func RemoveDeploymentConfigs(oc *CLI, dcs ...string) error + func RemovePodsWithPrefixes(oc *CLI, prefixes ...string) error + func RemoveStatefulSets(oc *CLI, sets ...string) error + func SetupK8SNFSServerAndVolume(oc *CLI, count int) (*kapiv1.Pod, []*kapiv1.PersistentVolume, error) + func StartBuild(oc *CLI, args ...string) (stdout, stderr string, err error) + func TimedWaitForAnImageStreamTag(oc *CLI, namespace, name, tag string, waitTimeout time.Duration) error + func VarSubOnFile(srcFile string, destFile string, vars map[string]string) error + func WaitForABuild(c buildtypedclientset.BuildResourceInterface, name string, ...) error + func WaitForAJob(c kbatchclient.JobInterface, name string, timeout time.Duration) error + func WaitForAnImageStream(client imagetypeclientset.ImageStreamInterface, name string, ...) error + func WaitForAnImageStreamTag(oc *CLI, namespace, name, tag string) error + func WaitForBuildResult(c buildtypedclientset.BuildResourceInterface, result *BuildResult) error + func WaitForDeploymentConfig(kc kclientset.Interface, dcClient appstypeclientset.DeploymentConfigsGetter, ...) error + func WaitForEndpointsAvailable(oc *CLI, serviceName string) error + func WaitForNoPodsAvailable(oc *CLI) error + func WaitForOpenShiftNamespaceImageStreams(oc *CLI) error + func WaitForPods(c kcoreclient.PodInterface, label labels.Selector, ...) ([]string, error) + func WaitForQueryOutputContains(oc *CLI, d Database, timeout time.Duration, admin bool, ...) error + func WaitForQueryOutputSatisfies(oc *CLI, d Database, timeout time.Duration, admin bool, query string, ...) error + func WaitForResourceQuotaSync(client kinternalcoreclient.ResourceQuotaInterface, name string, ...) (kapi.ResourceList, error) + func WaitForSelfSAR(interval, timeout time.Duration, c kclientset.Interface, ...) error + func WaitForServiceAccount(c kcoreclient.ServiceAccountInterface, name string) error + func WaitForUserBeAuthorized(oc *CLI, user, verb, resource string) error + func WaitUntilAllHelpersAreUp(oc *CLI, helpers []Database) error + func WaitUntilPodIsGone(c kcoreclient.PodInterface, podName string, timeout time.Duration) error + func WaitUntilUp(oc *CLI, d Database, timeout time.Duration) error + type BuildResult struct + Build *buildapi.Build + BuildAttempt bool + BuildCancelled bool + BuildConfigName string + BuildFailure bool + BuildName string + BuildPath string + BuildSuccess bool + BuildTimeout bool + LogDumper LogDumperFunc + Oc *CLI + StartBuildErr error + StartBuildStdErr string + StartBuildStdOut string + func NewBuildResult(oc *CLI, build *buildapi.Build) *BuildResult + func StartBuildAndWait(oc *CLI, args ...string) (result *BuildResult, err error) + func StartBuildResult(oc *CLI, args ...string) (result *BuildResult, err error) + func (t *BuildResult) AssertFailure() *BuildResult + func (t *BuildResult) AssertSuccess() *BuildResult + func (t *BuildResult) DumpLogs() + func (t *BuildResult) Logs() (string, error) + type CLI struct + func NewCLI(project, adminConfigPath string) *CLI + func (c *CLI) AdminAppsClient() appsclientset.Interface + func (c *CLI) AdminAuthorizationClient() authorizationclientset.Interface + func (c *CLI) AdminBuildClient() buildclientset.Interface + func (c *CLI) AdminConfig() *restclient.Config + func (c *CLI) AdminImageClient() imageclientset.Interface + func (c *CLI) AdminKubeClient() kclientset.Interface + func (c *CLI) AdminProjectClient() projectclientset.Interface + func (c *CLI) AdminRouteClient() routeclientset.Interface + func (c *CLI) AdminSecurityClient() securityclientset.Interface + func (c *CLI) AdminTemplateClient() templateclientset.Interface + func (c *CLI) AdminUserClient() userclientset.Interface + func (c *CLI) AppsClient() appsclientset.Interface + func (c *CLI) Args(args ...string) *CLI + func (c *CLI) AsAdmin() *CLI + func (c *CLI) AuthorizationClient() authorizationclientset.Interface + func (c *CLI) Background() (*exec.Cmd, *bytes.Buffer, *bytes.Buffer, error) + func (c *CLI) BackgroundRC() (*exec.Cmd, io.ReadCloser, error) + func (c *CLI) BuildClient() buildclientset.Interface + func (c *CLI) ChangeUser(name string) *CLI + func (c *CLI) CreateProject() string + func (c *CLI) Execute() error + func (c *CLI) ImageClient() imageclientset.Interface + func (c *CLI) InputString(input string) *CLI + func (c *CLI) InternalAdminKubeClient() kinternalclientset.Interface + func (c *CLI) InternalKubeClient() kinternalclientset.Interface + func (c *CLI) KubeClient() kclientset.Interface + func (c *CLI) KubeFramework() *e2e.Framework + func (c *CLI) Namespace() string + func (c *CLI) Output() (string, error) + func (c *CLI) OutputToFile(filename string) (string, error) + func (c *CLI) Outputs() (string, string, error) + func (c *CLI) ProjectClient() projectclientset.Interface + func (c *CLI) RESTMapper() meta.RESTMapper + func (c *CLI) RouteClient() routeclientset.Interface + func (c *CLI) Run(commands ...string) *CLI + func (c *CLI) SetNamespace(ns string) *CLI + func (c *CLI) SetupProject() + func (c *CLI) TeardownProject() + func (c *CLI) Template(t string) *CLI + func (c *CLI) TemplateClient() templateclientset.Interface + func (c *CLI) UserClient() userclientset.Interface + func (c *CLI) UserConfig() *restclient.Config + func (c *CLI) Username() string + func (c *CLI) Verbose() *CLI + func (c CLI) WithoutNamespace() *CLI + type Database interface + IsReady func(oc *CLI) (bool, error) + PodName func() string + Query func(oc *CLI, query string) (string, error) + QueryPrivileged func(oc *CLI, query string) (string, error) + TestRemoteLogin func(oc *CLI, hostAddress string) error + type ExitError struct + Cmd string + StdErr string + type GitRepo struct + RepoPath string + func NewGitRepo(repoName string) (GitRepo, error) + func (r GitRepo) AddAndCommit(file, content string) error + func (r GitRepo) Remove() + type LogDumperFunc func(oc *CLI, br *BuildResult) (string, error) + type MissingTagError struct + Tags []string + func (mte MissingTagError) Error() string + type ReplicaSet interface + QueryPrimary func(oc *CLI, query string) (string, error) + type SimpleReporter struct + Output io.Writer + func NewSimpleReporter() *SimpleReporter + func (r *SimpleReporter) AfterSuiteDidRun(setupSummary *types.SetupSummary) + func (r *SimpleReporter) BeforeSuiteDidRun(*types.SetupSummary) + func (r *SimpleReporter) SpecDidComplete(spec *types.SpecSummary) + func (r *SimpleReporter) SpecSuiteDidEnd(summary *types.SuiteSummary) + func (r *SimpleReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) + func (r *SimpleReporter) SpecWillRun(spec *types.SpecSummary)