Documentation ¶
Index ¶
- func ForIntegrationTests(m *testing.M, mgr *manager.Manager)
- func ForUnitTests(m *testing.M, mgr *manager.Manager)
- func ForUnitTestsWithCRDs(m *testing.M, crds []*apiextensions.CustomResourceDefinition, ...)
- func SetupMultipleEnvironments(m *testing.M, testType test.Type, ...)
- func TestMain(m *testing.M, testType test.Type, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForIntegrationTests ¶ added in v1.114.0
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.
Click to show internal directories.
Click to hide internal directories.