Documentation ¶
Index ¶
- func MaybeSkip(t *testing.T, name string, resources []*unstructured.Unstructured)
- func RunCreateDeleteTest(t *Harness, unstructs []*unstructured.Unstructured, cleanupResources bool)
- func SetupNamespacesAndApplyDefaults(t *Harness, samples []Sample, project testgcp.GCPProject)
- type Harness
- type Sample
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 ¶
func NewHarnessWithManager ¶ added in v1.101.0
NewHarnessWithManager builds a Harness for an existing manager. deprecated: Prefer NewHarness, which can construct a manager and mock gcp etc.
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
Click to show internal directories.
Click to hide internal directories.