Documentation
¶
Index ¶
- Variables
- func AnnotateTestSuite()
- func ArtifactDirPath() string
- func ArtifactPath(elem ...string) string
- func BuildAuthConfiguration(credKey string, oc *CLI) (*dockerClient.AuthConfiguration, error)
- func CalculatePodMetrics(adminClient kubernetes.Interface, adminConfig *restclient.Config) error
- func CheckBuildCancelled(b *buildv1.Build) bool
- func CheckBuildFailed(b *buildv1.Build) bool
- func CheckBuildSuccess(b *buildv1.Build) bool
- func CheckForBuildEvent(client corev1client.CoreV1Interface, build *buildv1.Build, ...)
- func CheckImageStreamLatestTagPopulated(i *imageapi.ImageStream) bool
- func CheckImageStreamTagNotFound(i *imageapi.ImageStream) bool
- 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 corev1client.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 DumpConfigMapStates(oc *CLI)
- func DumpDeploymentLogs(dcName string, version int64, oc *CLI)
- 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 DumpPodStatesInNamespace(namespace string, oc *CLI)
- func DumpPodsCommand(c kubernetes.Interface, ns string, selector labels.Selector, cmd string)
- func DumpSampleOperator(oc *CLI)
- func ExamineDiskUsage()
- func ExaminePodDiskUsage(oc *CLI)
- func ExecuteTest(t ginkgo.GinkgoTestingT, suite string)
- func FatalErr(msg interface{})
- func FetchURL(oc *CLI, url string, retryTimeout time.Duration) (string, error)
- func FindCLIImage(oc *CLI) (string, bool)
- func FindImageFormatString(oc *CLI) (string, bool)
- func FindRouterImage(oc *CLI) (string, bool)
- 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 corev1client.PodInterface, label labels.Selector, ...) (podNames []string, err error)
- func GetRouterPodTemplate(oc *CLI) (*corev1.PodTemplateSpec, string, error)
- func GetStatefulSetPods(oc *CLI, setName string) (*kapiv1.PodList, error)
- func Init()
- func InitDefaultEnvironmentVariables()
- func InitStandardFlags()
- func InitTest()
- func IsClusterOperated(oc *CLI) bool
- func KubeConfigPath() string
- func ListImages() ([]string, error)
- func NewPodExecutor(oc *CLI, name, image string) (*podExecutor, error)
- func ParseLabelsOrDie(str string) labels.Selector
- func PreTestDump()
- func ReadFixture(path string) (runtime.Object, error)
- func ReadFixtureOrFail(path string) runtime.Object
- 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 buildv1clienttyped.BuildInterface, name string, ...) error
- func WaitForAJob(c batchv1client.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 buildv1clienttyped.BuildInterface, result *BuildResult) error
- func WaitForDeploymentConfig(kc kubernetes.Interface, dcClient appsv1clienttyped.DeploymentConfigsGetter, ...) error
- func WaitForEndpointsAvailable(oc *CLI, serviceName string) error
- func WaitForNoPodsAvailable(oc *CLI) error
- func WaitForOpenShiftNamespaceImageStreams(oc *CLI) error
- func WaitForPods(c corev1client.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 corev1client.ResourceQuotaInterface, name string, ...) (corev1.ResourceList, error)
- func WaitForSelfSAR(interval, timeout time.Duration, c kclientset.Interface, ...) error
- func WaitForServiceAccount(c corev1client.ServiceAccountInterface, name string) error
- func WaitForUserBeAuthorized(oc *CLI, user, verb, resource string) error
- func WaitUntilAllHelpersAreUp(oc *CLI, helpers []Database) error
- func WaitUntilPodIsGone(c corev1client.PodInterface, podName string, timeout time.Duration) error
- func WaitUntilUp(oc *CLI, d Database, timeout time.Duration) error
- type BuildResult
- type CLI
- func (c *CLI) AdminAppsClient() appsv1client.Interface
- func (c *CLI) AdminAuthorizationClient() authorizationclientset.Interface
- func (c *CLI) AdminBuildClient() buildv1client.Interface
- func (c *CLI) AdminConfig() *restclient.Config
- func (c *CLI) AdminConfigClient() configv1client.Interface
- func (c *CLI) AdminImageClient() imagev1client.Interface
- func (c *CLI) AdminInternalImageClient() imageclientset.Interface
- func (c *CLI) AdminInternalTemplateClient() templateclientset.Interface
- func (c *CLI) AdminKubeClient() kclientset.Interface
- func (c *CLI) AdminOperatorClient() operatorv1client.Interface
- func (c *CLI) AdminProjectClient() projectclientset.Interface
- func (c *CLI) AdminRouteClient() routeclientset.Interface
- func (c *CLI) AdminSecurityClient() securityclientset.Interface
- func (c *CLI) AdminTemplateClient() templateclient.Interface
- func (c *CLI) AdminUserClient() userclientset.Interface
- func (c *CLI) AppsClient() appsv1client.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() buildv1client.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) InternalTemplateClient() templateclientset.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() templateclient.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
- type ExitError
- type GitRepo
- type LogDumperFunc
- type MissingTagError
- type ReplicaSet
- type 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)
Constants ¶
This section is empty.
Variables ¶
var TestContext *e2e.TestContextType = &e2e.TestContext
Functions ¶
func AnnotateTestSuite ¶
func AnnotateTestSuite()
func ArtifactDirPath ¶
func ArtifactDirPath() string
ArtifactDirPath returns the value of ARTIFACT_DIR environment variable
func ArtifactPath ¶
ArtifactPath returns the absolute path to the fix artifact file The path is relative to ARTIFACT_DIR
func BuildAuthConfiguration ¶
func BuildAuthConfiguration(credKey string, oc *CLI) (*dockerClient.AuthConfiguration, error)
BuildAuthConfiguration constructs a non-standard dockerClient.AuthConfiguration that can be used to communicate with the openshift internal docker registry
func CalculatePodMetrics ¶
func CalculatePodMetrics(adminClient kubernetes.Interface, adminConfig *restclient.Config) error
CalculatePodMetrics receives an admin client and an admin.kubeconfig, and traverses a list of operator namespaces, measuring requests-per-second for each operator pod, using the overall long-running time of each pod as a base metric.
func CheckBuildCancelled ¶
CheckBuildCancelled return true if the build was canceled
func CheckBuildFailed ¶
CheckBuildFailed return true if the build failed
func CheckBuildSuccess ¶
CheckBuildSuccess returns true if the build succeeded
func CheckForBuildEvent ¶
func CheckForBuildEvent(client corev1client.CoreV1Interface, build *buildv1.Build, reason, message string)
CheckForBuildEvent will poll a build for up to 1 minute looking for an event with the specified reason and message template.
func CheckImageStreamLatestTagPopulated ¶
func CheckImageStreamLatestTagPopulated(i *imageapi.ImageStream) bool
CheckImageStreamLatestTagPopulated returns true if the imagestream has a ':latest' tag filed
func CheckImageStreamTagNotFound ¶
func CheckImageStreamTagNotFound(i *imageapi.ImageStream) bool
CheckImageStreamTagNotFound return true if the imagestream update was not successful
func CheckPodIsReady ¶
CheckPodIsReady returns true if the pod's ready probe determined that the pod is ready.
func CheckPodIsRunning ¶
CheckPodIsRunning returns true if the pod is running