Documentation ¶
Index ¶
- func AssertDeepEqual(t *testing.T, actual, expected interface{})
- func AssertEqual(t *testing.T, actual, expected interface{})
- func DeepMatchWithPath(actual mf.Manifest, expectedManifestPath string) bool
- func MakeDaemonSet(name string, podSpec corev1.PodSpec) *appsv1.DaemonSet
- func MakeDeployment(name string, podSpec corev1.PodSpec) *appsv1.Deployment
- func MakeUnstructured(t *testing.T, obj interface{}) unstructured.Unstructured
- func ResourceContainingWithPath(actual mf.Manifest, expectedManifestPath string) bool
- func ResourceMatchWithPath(actual mf.Manifest, expectedManifestPath string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeepEqual ¶
func AssertEqual ¶
func DeepMatchWithPath ¶ added in v0.22.0
DeepMatchWithPath returns true if the resources in the actual manifest match exactly the same resources in the expected manifest of the expected path. Two manifests are identical, in terms of every attribute. The number of the resources has to match.
func MakeDeployment ¶
func MakeDeployment(name string, podSpec corev1.PodSpec) *appsv1.Deployment
func MakeUnstructured ¶
func MakeUnstructured(t *testing.T, obj interface{}) unstructured.Unstructured
func ResourceContainingWithPath ¶ added in v0.22.0
ResourceContainingWithPath returns true if the resources in the actual manifest contains all the resources in the expected manifest of the expected path, but the number of resources is not necessarily the same. For the identical resources, they need to match in terms of every attribute.
func ResourceMatchWithPath ¶ added in v0.22.0
ResourceMatchWithPath returns true if the resources in the actual manifest match the same resources in the expected manifest of the expected path, in terms of name, namespace, group and kind. The number of resources does not necessarily have to match.
Types ¶
This section is empty.