controllertesthelpers

package
v0.0.0-...-c3f02f9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicControllerTest

type BasicControllerTest struct {
	Name          string
	ControllerKey controllerutils.HCPClusterKey
	ArtifactDir   fs.FS

	ControllerInitializerFn ControllerInitializerFunc
	ControllerVerifierFn    ControllerVerifierFunc
	WithMock                bool
}

func (*BasicControllerTest) RunTest

func (tc *BasicControllerTest) RunTest(t *testing.T)

type ControllerInitializationInput

type ControllerInitializationInput struct {
	ResourcesDBClient       corecosmosstorage.ResourcesDBClient
	BillingDBClient         billingcosmosstorage.BillingDBClient
	KubeApplierDBClients    kubeappliercosmosstorage.KubeApplierDBClients
	SubscriptionLister      corelisters.SubscriptionLister
	ManagementClusterLister fleetlisters.ManagementClusterLister
	ClusterServiceClient    ocm.ClusterServiceClientSpec
}

type ControllerInitializerFunc

type ControllerInitializerFunc func(ctx context.Context, t *testing.T, input *ControllerInitializationInput) (controller controllerutils.Controller, testMemory map[string]any)

type ControllerVerifierFunc

type ControllerVerifierFunc func(ctx context.Context, t *testing.T, controller controllerutils.Controller, testMemory map[string]any, input *ControllerInitializationInput)

Jump to

Keyboard shortcuts

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