testmain

package
v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForIntegrationTests added in v1.114.0

func ForIntegrationTests(m *testing.M, mgr *manager.Manager)

func ForUnitTests added in v1.114.0

func ForUnitTests(m *testing.M, mgr *manager.Manager)

func ForUnitTestsWithCRDs added in v1.114.0

func ForUnitTestsWithCRDs(m *testing.M, crds []*apiextensions.CustomResourceDefinition, mgr *manager.Manager)

func SetupMultipleEnvironments added in v1.114.0

func SetupMultipleEnvironments(m *testing.M, testType test.Type, crds []*apiextensions.CustomResourceDefinition, mgrPtrs []*manager.Manager)

SetupMultipleEnvironments starts n API servers to run tests against. The value for 'n' is determined by the length of the 'mgrPtrs' argument. This is useful when testing multi-cluster scenarios.

func TestMain

func TestMain(m *testing.M, testType test.Type, crds []*apiextensions.CustomResourceDefinition, mgr *manager.Manager)

TestMain starts a local K8S API server to run tests against. These tests do not require an external API server to execute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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