test

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package test is modeled after the style of e2e testing performed in Knative upstream.

Index

Constants

View Source
const (
	// To simplify testing against our sample yamls, run our testing
	// in the default namespace.
	Namespace = "default"

	// PollInterval is how frequently e2e tests will poll for updates.
	PollInterval = 1 * time.Second
	// PollTimeout is how long e2e tests will wait for resource updates when polling.
	PollTimeout = 1 * time.Minute
)

Variables

This section is empty.

Functions

func BuildClientConfig

func BuildClientConfig(kubeConfigPath string, clusterName string) clientcmd.ClientConfig

Types

type Clients

type Clients struct {
	KubeClient   kubernetes.Interface
	VMWareClient *VMWareClients
	// contains filtered or unexported fields
}

func NewClients

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

func NewClientsFromConfig

func NewClientsFromConfig(clientConfig clientcmd.ClientConfig, namespace string) (*Clients, error)

func Setup

func Setup(t *testing.T) *Clients

func (*Clients) AsPluginClients added in v0.16.0

func (c *Clients) AsPluginClients() *clients.Clients

type VMWareClients

type VMWareClients struct {
	Bindings sources.VSphereBindingInterface
	Sources  sources.VSphereSourceInterface
	// contains filtered or unexported fields
}

Directories

Path Synopsis
test_images

Jump to

Keyboard shortcuts

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