test

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyReplacementsToMap

func ApplyReplacementsToMap(m map[string]any, replacements map[string]string) map[string]any

ApplyReplacementsToMap applies `replacements“ for all the values in the map (recursively).

Types

type Harness

type Harness struct {
	T *testing.T
}

Harness is a simple test harness for our operator

func NewHarness

func NewHarness(t *testing.T) *Harness

NewHarness constructs a test harness

func (*Harness) KDPValidator

func (h *Harness) KDPValidator(rewriteObjects func(o *unstructured.Unstructured)) Validator

KDPValidator builds a KDP validator, for use in golden tests.

func (*Harness) RepoPath

func (h *Harness) RepoPath() string

RepoPath is the path to the channels directory

type Validator

type Validator interface {
	Validate(reconcilerFactory func(mgr manager.Manager) (*declarative.Reconciler, error))
}

Directories

Path Synopsis
util

Jump to

Keyboard shortcuts

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