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 ¶ added in v0.42.0
EnableFeatureFlagField enables a boolean feature flag in an existing context (for use in testing).
func SetupDefaultContext ¶ added in v0.41.0
SetupDefaultContext sets up the Context and the default filtered informers for the tests.
func SetupFakeCloudClientContext ¶ added in v0.42.0
SetupFakeCloudClientContext sets up the fakeclient to context
func SetupFakeContext ¶ added in v0.8.0
SetupFakeContext sets up the Context and the fake filtered informers for the tests.
func TestLogger ¶ added in v0.8.0
func TestLogger(t *testing.T) *zap.SugaredLogger
TestLogger sets up the Logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.