Documentation ¶
Index ¶
- func TestMain(m *testing.M, testType test.TestType, ...)
- func TestMainForIntegrationTests(m *testing.M, mgr *manager.Manager)
- func TestMainForUnitTests(m *testing.M, mgr *manager.Manager)
- func TestMainForUnitTestsWithCRDs(m *testing.M, crds []*apiextensions.CustomResourceDefinition, ...)
- func TestMainSetupMultipleEnvironments(m *testing.M, testType test.TestType, ...)
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 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.
Click to show internal directories.
Click to hide internal directories.