framework

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0, BSD-3-Clause, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Before = "before"
	After  = "after"
)

Constants

Variables

This section is empty.

Functions

func GetRestClient

func GetRestClient(schemaObj *schema.GroupVersion, kubeconfig string) (*rest.RESTClient, error)

GetRestClient - returns rest client

func GetRestClientForDellStorage

func GetRestClientForDellStorage(kubeconfig string) (*rest.RESTClient, error)

GetRestClientForDellStorage - returns the rest client for storage

func Setup

func Setup() error

Setup sets up a test framework and initialises framework.Global.

func Teardown

func Teardown() error

Teardown shuts down the test framework and cleans up.

Types

type Framework

type Framework struct {
	KubeClient         kubernetes.Interface
	KubeClient2        kubernetes.Clientset
	SnapshotClientBeta snapClient.Clientset
	RestClient         rest.RESTClient
	Client             client.Client
	Namespace          string
	OperatorNamespace  string
	SkipTeardown       bool
	RunID              string
	Phase              string
}

Framework handles communication with the kube cluster in e2e tests.

var Global *Framework

Global framework.

Jump to

Keyboard shortcuts

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