e2e

package
v0.0.0-...-17b0997 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package e2e contains the Addon Operator E2E tests.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Client pointing to the e2e test cluster.
	Client client.Client
	Config *rest.Config
	Scheme = runtime.NewScheme()

	// Typed K8s Clients
	CoreV1Client corev1client.CoreV1Interface

	// Path to the deployment configuration directory.
	PathConfigDeploy string
)

Functions

func LoadObjectsFromDeploymentFiles

func LoadObjectsFromDeploymentFiles(t *testing.T) []unstructured.Unstructured

Load all k8s objects from .yaml files in config/deploy. File/Object order is preserved.

func PrintPodStatusAndLogs

func PrintPodStatusAndLogs(namespace string) error

Prints the phase of a pod together with the logs of every container.

func WaitForObject

func WaitForObject(
	t *testing.T, timeout time.Duration,
	object client.Object, reason string,
	checkFn func(obj client.Object) (done bool, err error),
) error

Wait that something happens with an object.

func WaitToBeGone

func WaitToBeGone(t *testing.T, timeout time.Duration, object client.Object) error

WaitToBeGone blocks until the given object is gone from the kubernetes API server.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL