Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEvents ¶
AssertEvents asserts that the expected events were recorded in the events channel.
func EnsureNoEvents ¶
func EnsureNoEvents(events chan string)
EnsureNoEvents ensures that all events are consumed from the events channel.
Types ¶
type TestSuit ¶
type TestSuit struct {
TestEnv *envtest.Environment
Cfg *rest.Config
Client client.Client
Log controllerutil.Logger
}
TestSuit encapsulates the testing environment and utilities.
func SetupEnvironment ¶
func SetupEnvironment(addToScheme func(*k8sruntime.Scheme) error) TestSuit
SetupEnvironment initializes the test environment, including the Kubernetes API server and etcd.
Click to show internal directories.
Click to hide internal directories.