Documentation ¶
Index ¶
- func ConfigMapFromTestFile(t *testing.T, name string) *corev1.ConfigMap
- func EnableFeatureFlagField(ctx context.Context, t *testing.T, flagName string) context.Context
- func SetupDefaultContext(t *testing.T) (context.Context, []controller.Informer)
- func SetupFakeCloudClientContext(ctx context.Context, expectedEventCount int) context.Context
- func SetupFakeContext(t *testing.T) (context.Context, []controller.Informer)
- func TestLogger(t *testing.T) *zap.SugaredLogger
- func WithLogger(ctx context.Context, t *testing.T) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMapFromTestFile ¶
ConfigMapFromTestFile creates a v1.ConfigMap from a YAML file It loads the YAML file from the testdata folder.
func EnableFeatureFlagField ¶
EnableFeatureFlagField enables a boolean feature flag in an existing context (for use in testing).
func SetupDefaultContext ¶
SetupDefaultContext sets up the Context and the default filtered informers for the tests.
func SetupFakeCloudClientContext ¶
SetupFakeCloudClientContext sets up the fakeclient to context
func SetupFakeContext ¶
SetupFakeContext sets up the Context and the fake filtered informers for the tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.