Documentation
¶
Index ¶
- func AssertErrorMatch(t *testing.T, s string, e error)
- func AssertNoError(t *testing.T, err error)
- func Labels(l map[string]string) func(*clusterv1.Cluster)
- func MakeCluster(name, namespace string, opts ...func(*clusterv1.Cluster)) *clusterv1.Cluster
- func MakeClusterBootstrapConfig(name, namespace string, opts ...func(*capiv1alpha1.ClusterBootstrapConfig)) *capiv1alpha1.ClusterBootstrapConfig
- func MatchErrorString(t *testing.T, s string, e error) bool
- func MatchLabels(labels map[string]string) func(*capiv1alpha1.ClusterBootstrapConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertErrorMatch ¶
AssertErrorMatch will fail if the error doesn't match the provided error.
func AssertNoError ¶
AssertNoError will fail if the provided err value is an error.
func MakeCluster ¶
MakeCluster allocates and returns a new CAPI Cluster value.
func MakeClusterBootstrapConfig ¶
func MakeClusterBootstrapConfig(name, namespace string, opts ...func(*capiv1alpha1.ClusterBootstrapConfig)) *capiv1alpha1.ClusterBootstrapConfig
MakeClusterBootstrapConfig allocates and returns a new ClusterBootstrapConfig value.
func MatchErrorString ¶
MatchErrorString takes a string and matches on the error and returns true if the string matches the error.
This is useful in table tests.
If the string can't be compiled as an regexp, then this will fail with a Fatal error.
func MatchLabels ¶
func MatchLabels(labels map[string]string) func(*capiv1alpha1.ClusterBootstrapConfig)
MatchLabels is an option func for MakeClusterBootstrapConfig to set the labels on the new config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.