Documentation ¶
Index ¶
- func AssertEqualEnvVars(t *testing.T, expected []corev1.EnvVar, actual []corev1.EnvVar)
- func CompareResources(actualDeployment *appsv1.Deployment, expected TestExpectedResources, ...)
- func EnableTestMode()
- func FindVolume(volumes []corev1.Volume, name string) corev1.Volume
- func FindVolumeMount(volumes []corev1.VolumeMount, name string) corev1.VolumeMount
- func GetDeployContext(cheCluster *chev2.CheCluster, initObjs []runtime.Object) *chetypes.DeployContext
- func GetResourceQuantity(value string, defaultValue string) resource.Quantity
- func IsObjectExists(client client.Client, key types.NamespacedName, blueprint client.Object) bool
- func IsTestMode() bool
- func ValidateContainData(actualData map[string]string, expectedData map[string]string, t *testing.T)
- func ValidateSecurityContext(actualDeployment *appsv1.Deployment, t *testing.T)
- type TestExpectedResources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqualEnvVars ¶
func CompareResources ¶
func CompareResources(actualDeployment *appsv1.Deployment, expected TestExpectedResources, t *testing.T)
func EnableTestMode ¶
func EnableTestMode()
func FindVolumeMount ¶
func FindVolumeMount(volumes []corev1.VolumeMount, name string) corev1.VolumeMount
func GetDeployContext ¶
func GetDeployContext(cheCluster *chev2.CheCluster, initObjs []runtime.Object) *chetypes.DeployContext
Initialize DeployContext for tests
func GetResourceQuantity ¶
func IsObjectExists ¶
func IsTestMode ¶
func IsTestMode() bool
func ValidateContainData ¶
func ValidateSecurityContext ¶
func ValidateSecurityContext(actualDeployment *appsv1.Deployment, t *testing.T)
Types ¶
Click to show internal directories.
Click to hide internal directories.