test

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 8 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) (*rest.Config, error)

Types

type Clients

type Clients struct {
	KubeClient   *test.KubeClient
	VMWareClient *VMWareClients
}

func NewClients

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

func NewClientsFromConfig

func NewClientsFromConfig(cfg *rest.Config, namespace string) (*Clients, error)

func Setup

func Setup(t test.TLegacy) *Clients

type VMWareClients

type VMWareClients struct {
	Bindings sources.VSphereBindingInterface
	Sources  sources.VSphereSourceInterface
}

Directories

Path Synopsis
test_images

Jump to

Keyboard shortcuts

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