testintegration

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package testintegration test setup for running testintegration tests using the envtest kubebuilder package.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Log is the test logger used by the testintegration tests and server.
	Log = zap.New(zap.UseFlagOptions(&zap.Options{
		Development: true,
		TimeEncoder: zapcore.ISO8601TimeEncoder,
	}))

	// Client is the kubernetes client.
	Client client.Client

	// RestartManager is the controller-runtime manager for the operator
	RestartManager func(string) error
)

Functions

func EnvTestSetup

func EnvTestSetup() (func(), error)

EnvTestSetup sets up the envtest environment for a testing package. This is intended to be called from `func TestMain(m *testing.M)` so that the environment is configured before

func TestContext

func TestContext() context.Context

TestContext returns a background context that includes appropriate logging configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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