testutils

package
v0.0.0-...-842e221 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Harness

type Harness struct {
	*testing.T

	Scheme *runtime.Scheme
	Ctx    context.Context
	// contains filtered or unexported fields
}

func NewHarness

func NewHarness(t *testing.T) *Harness

func (*Harness) AssertMatchesFile

func (h *Harness) AssertMatchesFile(p string, got string)

func (*Harness) Client

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

func (*Harness) DynamicClient

func (h *Harness) DynamicClient() dynamic.Interface

func (*Harness) MustReadFile

func (h *Harness) MustReadFile(p string) []byte

func (*Harness) ParseObjects

func (h *Harness) ParseObjects(y string) []*unstructured.Unstructured

func (*Harness) RESTConfig

func (h *Harness) RESTConfig() *rest.Config

func (*Harness) RESTMapper

func (*Harness) Stop

func (h *Harness) Stop()

func (*Harness) WithObjects

func (h *Harness) WithObjects(initObjs ...*unstructured.Unstructured)

Jump to

Keyboard shortcuts

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