testing

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMapFromTestFile

func ConfigMapFromTestFile(t *testing.T, name string) *corev1.ConfigMap

ConfigMapFromTestFile creates a v1.ConfigMap from a YAML file It loads the YAML file from the testdata folder.

func SetupFakeContext added in v0.8.0

func SetupFakeContext(t *testing.T) (context.Context, []controller.Informer)

SetupFakeContext sets up the 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 the Logger

func WithLogger added in v0.8.0

func WithLogger(ctx context.Context, t *testing.T) context.Context

WithLogger returns the the Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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