testmain

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestMain

func TestMain(m *testing.M, testType test.TestType, 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.

func TestMainForIntegrationTests

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

func TestMainForUnitTests

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

func TestMainForUnitTestsWithCRDs

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

func TestMainSetupMultipleEnvironments

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

TestMainSetupMultipleEnvironments 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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