create

package
v1.102.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeSkip added in v1.101.0

func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured)

func RunCreateDeleteTest

func RunCreateDeleteTest(t *Harness, unstructs []*unstructured.Unstructured, cleanupResources bool)

func SetupNamespacesAndApplyDefaults

func SetupNamespacesAndApplyDefaults(t *Harness, samples []Sample, project testgcp.GCPProject)

Types

type Harness

type Harness struct {
	*testing.T
	Ctx context.Context
	// contains filtered or unexported fields
}

func NewHarness

func NewHarness(t *testing.T, ctx context.Context) *Harness

func NewHarnessWithManager added in v1.101.0

func NewHarnessWithManager(t *testing.T, ctx context.Context, mgr manager.Manager) *Harness

NewHarnessWithManager builds a Harness for an existing manager. deprecated: Prefer NewHarness, which can construct a manager and mock gcp etc.

func (*Harness) GetClient

func (h *Harness) GetClient() client.Client

type Sample

type Sample struct {
	Name      string
	Resources []*unstructured.Unstructured
}

func LoadSamples

func LoadSamples(t *testing.T, project testgcp.GCPProject) []Sample

LoadSamples loads all the samples

Jump to

Keyboard shortcuts

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