test

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EventingOperatorNamespace is the default namespace for eventing operator e2e tests
	EventingOperatorNamespace = getenv("TEST_NAMESPACE", "operator-tests")
	// EventingOperatorName is the default operator name for eventing operator e2e tests
	EventingOperatorName = getenv("TEST_RESOURCE", "knative-eventing")
)

Functions

func CleanupOnInterrupt

func CleanupOnInterrupt(cleanup func())

CleanupOnInterrupt will execute the function cleanup if an interrupt signal is caught

func TearDown

func TearDown(clients *Clients, names ResourceNames)

TearDown will delete created names using clients.

Types

type Clients

type Clients struct {
	KubeClient *test.KubeClient
	Dynamic    dynamic.Interface
	Eventing   eventingv1alpha1.OperatorV1alpha1Interface
	Config     *rest.Config
}

Clients holds instances of interfaces for making requests to Knative Serving.

func NewClients

func NewClients(configPath string, clusterName string) (*Clients, error)

NewClients instantiates and returns several clientsets required for making request to the Knative Serving cluster specified by the combination of clusterName and configPath.

func (*Clients) KnativeEventing

func (c *Clients) KnativeEventing() eventingv1alpha1.KnativeEventingInterface

func (*Clients) KnativeEventingAll

func (c *Clients) KnativeEventingAll() eventingv1alpha1.KnativeEventingInterface

type ResourceNames

type ResourceNames struct {
	KnativeEventing string
	Namespace       string
}

ResourceNames holds names of various resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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