package
0.0.0-20230323071529-3256294b6359
Repository: https://github.com/kcp-dev/kcp-tests.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
ApplyNsResourceFromTemplate apply changes to the ns resource.
ApplyNsResourceFromTemplateWithVariables apply changes to the ns resource.
ApplyResourceFromTemplate apply the changes to the cluster resource.
ApplyResourceFromTemplateWithVariables apply the changes to the cluster resource with args.
ArtifactDirPath returns the value of ARTIFACT_DIR environment variable.
ArtifactPath returns the absolute path to the fix artifact file The path is relative to ARTIFACT_DIR.
AssertWaitPollNoErr e is return value of Wait.Poll msg is the reason why time out the function assert return value of Wait.Poll, and expect NO error if e is Nil, just pass and nothing happen.
AssertWaitPollWithErr e is return value of Wait.Poll msg is the reason why not get the function assert return value of Wait.Poll, and expect error raised.
CheckBuildCancelled return true if the build was canceled.
CheckBuildFailed return true if the build failed.
CheckBuildSuccess returns true if the build succeeded.
CheckForBuildEvent will poll a build for up to 1 minute looking for an event with the specified reason and message template.
CheckImageStreamLatestTagPopulated returns true if the imagestream has a ':latest' tag filed.
CheckImageStreamTagNotFound return true if the imagestream update was not successful.
CheckPodIsReady returns true if the pod's ready probe determined that the pod is ready.
CheckPodIsRunning returns true if the pod is running.
CheckPodIsSucceeded returns true if the pod status is "Succdeded".
CheckPodNoOp always returns true.
CreateExecPodOrFail creates a simple busybox pod in a sleep loop used as a vessel for kubectl exec commands.
CreateNsResourceFromTemplate create ns resource from the template.
CreateNsResourceFromTemplateWithVariables create ns resource from the template.
CreateResourceFromTemplate create resource from the template.
CreateResourceFromTemplateWithVariables create resource from the template.
DumpApplicationPodLogs will dump the latest application logs for a DeploymentConfig for debug purposes.
DumpBuildLogs will dump the latest build logs for a BuildConfig for debug purposes.
DumpBuilds will dump the yaml for every build in the test namespace; remember, pipeline builds don't have build pods so a generic framework dump won't cat our pipeline builds objs in openshift.
DumpConfigMapStates dumps the state of all ConfigMaps in the CLI's current namespace.
DumpDeploymentLogs will dump the latest deployment logs for a DeploymentConfig for debug purposes.
DumpImageStreams will dump both the openshift namespace and local namespace imagestreams as part of debugging when the language imagestreams in the openshift namespace seem to disappear.
No description provided by the author
DumpPodLogsStartingWith will dump any pod starting with the name prefix provided.
DumpPodLogsStartingWith will dump any pod starting with the name prefix provided.
DumpPodsCommand runs the provided command in every pod identified by selector in the provided namespace.
DumpPodStates dumps the state of all pods in the CLI's current namespace.
DumpPodStatesInNamespace dumps the state of all pods in the provided namespace.
No description provided by the author
ExamineDiskUsage will dump df output on the testing system; leveraging this as part of diagnosing the registry's disk filling up during external tests on jenkins.
ExaminePodDiskUsage will dump df/du output on registry pod; leveraging this as part of diagnosing the registry's disk filling up during external tests on jenkins.
No description provided by the author
FatalErr exits the test in case a fatal error has occurred.
FetchURL grabs the output from the specified url and returns it.
FileExist checks whether file is exist returns bool.
No description provided by the author
FindImageFormatString returns a format string for components on the cluster.
No description provided by the author
FixturePath returns an absolute path to a fixture file in test/extended/testdata/, test/integration/, or examples/.
GenerateOAuthTokenPair returns two tokens to use with OpenShift OAuth-based authentication.
No description provided by the author
No description provided by the author
GetDockerImageReference retrieves the full Docker pull spec from the given ImageStream and tag.
GetEndpointAddress will return an "ip:port" string for the endpoint.
GetImageIDForTags will obtain the hexadecimal IDs for the array of human readible image tags IDs provided.
GetKcpServerGitCommit gets the kcp server gitCommit.
GetKcpServerVersion gets the kcp server version.
GetMasterThreadDump will get a golang thread stack dump.
GetParentWsServerURL returns the parentServer of the input server URL.
GetPodForContainer creates a new Pod that runs specified container.
GetPodNamesByFilter looks up pods that satisfy the predicate and returns their names.
GetRandomString use for getting a 8 byte random string.
GetRouterPodTemplate finds the router pod template across different namespaces, helping to mitigate the transition from the default namespace to an operator namespace.
No description provided by the author
ProwGCPSetup makes sure certain required env vars are available in the case that extended tests are invoked directly via calls to ginkgo/extended.test.
No description provided by the author
No description provided by the author
No description provided by the author
IsDebug use for check whether the E2E_TEST "DEBUG" log enabled.
IsInMap use for checking whether the map contains specified key.
KubeConfigPath returns the value of KUBECONFIG environment variable.
LaunchWebserverPod launches a pod serving http on port 8080 to act as the target for networking connectivity checks.
ListImages initiates the equivalent of a `docker images`.
No description provided by the author
NewCLI initialize the upstream E2E framework and set the namespace to match with the project name.
NewCLIWithWorkSpace initialize the upstream E2E framework with adding a workspace.
NewDeployment creates a new customized deployment object.
NewGitRepo creates temporary test directories with local and "remote" git repo.
NewPodExecutor returns an executor capable of running commands in a Pod.
No description provided by the author
ParseFileVariables parse the given file and return a new file with its variables being replaced.
ParseLabelsOrDie turns the given string into a label selector or panics; for tests or other cases where you know the string is valid.
PreCheckEnvSupport checks the environment satisfy test suits.
No description provided by the author
ReadKubeConfig returns a specific kubeconfig to JSON.
RunOneShotCommandPod runs the given command in a pod and waits for completion and log output for the given timeout duration, returning the command output or an error.
SetDeploymentAppLabel sets the deployment's appLabel.
SetDeploymentImage sets the deployment's image.
SetDeploymentName sets the deployment's name.
SetDeploymentNameSpace sets the deployment's namespace.
SetDeploymentReplicas sets the deployment's replicas.
StartBuild executes OC start-build with the specified arguments.
StartBuildAndWait executes OC start-build with the specified arguments on an existing buildconfig.
No description provided by the author
StrSliceContains use for checking whether the String Slice contains specified element, return bool.
StrSliceContainsDuplicate use for checking whether string slice contains duplicate string.
StrSliceIntersect use for none duplicate elements slice intersect.
StrSliceToIntSlice use for converting strings slice to integer slice.
StrSliceToMap use for converting String Slice to Map: map[string]struct{}.
StructMarshalOutputToFile executes the command and store output to a file.
TimedWaitForAnImageStreamTag waits until an image stream with given name has non-empty history for given tag.
VarSubOnFile reads in srcFile, finds instances of ${key} from the map and replaces them with their associated values.
VersionIsAbove use for comparing 2 different versions versionA, versionB should be the same length E.g.
WaitForABuild waits for a Build object to match either isOK or isFailed conditions.
No description provided by the author
WaitForAnImageStream waits for an ImageStream to fulfill the isOK function.
WaitForAnImageStreamTag waits until an image stream with given name has non-empty history for given tag.
WaitForBuildResult updates result wit the state of the build.
WaitForDeploymentConfig waits for a DeploymentConfig to complete transition to a given version and report minimum availability.
No description provided by the author
WaitForInternalRegistryHostname waits for the internal registry hostname to be made available to the cluster.
WaitForOpenShiftNamespaceImageStreams waits for the standard set of imagestreams to be imported.
WaitForPods waits until given number of pods that match the label selector and satisfy the predicate are found.
WaitForResourceQuotaSync watches given resource quota until its usage is updated to desired level or a timeout occurs.
No description provided by the author
WaitForServiceAccount waits until the named service account gets fully provisioned.
WaitForUserBeAuthorized waits a minute until the cluster bootstrap roles are available and the provided user is authorized to perform the action on the resource.
WaitSpecificAPISyncedInSpecificWorkSpace waits the specific api-resource synced in specific workspace.
WaitUntilPodIsGone waits until the named Pod will disappear.

# Variables

No description provided by the author

# Structs

No description provided by the author
CLI provides function to call the OpenShift CLI and Kubernetes and OpenShift clients.
Deployment struct definition.
ExitError struct.
No description provided by the author
No description provided by the author
No description provided by the author
WorkSpace definition.

# Type aliases

DeployOption uses function option mode to change the default value of deployment parameters, E.g.
No description provided by the author