testing

package
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeepEqual

func AssertDeepEqual(t *testing.T, actual, expected interface{})

func AssertEqual

func AssertEqual(t *testing.T, actual, expected interface{})

func DeepMatchWithPath added in v0.22.0

func DeepMatchWithPath(actual mf.Manifest, expectedManifestPath string) bool

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 MakeDaemonSet

func MakeDaemonSet(name string, podSpec corev1.PodSpec) *appsv1.DaemonSet

func MakeDeployment

func MakeDeployment(name string, podSpec corev1.PodSpec) *appsv1.Deployment

func MakeImage added in v0.38.11

func MakeImage(name, image string) *caching.Image

func MakeJob added in v0.38.11

func MakeJob(name string, podSpec corev1.PodSpec) *batchv1.Job

func MakeJobGenerated added in v0.38.11

func MakeJobGenerated(name string, podSpec corev1.PodSpec) *batchv1.Job

func MakeJobNameGeneratedName added in v0.38.11

func MakeJobNameGeneratedName(name, genaredtedName string, podSpec corev1.PodSpec) *batchv1.Job

func MakeStatefulSet added in v0.38.11

func MakeStatefulSet(name string, podSpec corev1.PodSpec) *appsv1.StatefulSet

func MakeUnstructured

func MakeUnstructured(t *testing.T, obj interface{}) unstructured.Unstructured

func ResourceContainingWithPath added in v0.22.0

func ResourceContainingWithPath(actual mf.Manifest, expectedManifestPath string) bool

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

func ResourceMatchWithPath(actual mf.Manifest, expectedManifestPath string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL