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)
Click to show internal directories.
Click to hide internal directories.