Documentation ¶
Index ¶
- Constants
- func CheckIfTesting(t *testing.T, boolToCheck bool)
- func CleanUpClusterImagePolicyTest(t *testing.T, fw *framework.Framework, clusterPolicy, namespace string)
- func CleanUpImagePolicyTest(t *testing.T, fw *framework.Framework, namespace string)
- func CreateClusterImagePolicyAndNamespace(t *testing.T, fw *framework.Framework, manifestPath string) (*policyv1.ClusterImagePolicy, *corev1.Namespace)
- func CreateImagePolicyInstalledNamespace(t *testing.T, fw *framework.Framework, manifestPath string, ns string) *corev1.Namespace
- func CreateImagePolicyInstalledNamespaceNoSecrets(t *testing.T, fw *framework.Framework, manifestPath string) *corev1.Namespace
- func CreateImagePolicyInstalledNamespaceOptionalSecrets(t *testing.T, fw *framework.Framework, manifestPath string, ips bool, ...) *corev1.Namespace
- func CreateSecret(t *testing.T, fw *framework.Framework, manifestPath, namespace string)
- func DeleteThenReturnClusterImagePolicy(t *testing.T, fw *framework.Framework, clusterImagePolicy string) *policyv1.ClusterImagePolicy
- func DumpEvents(t *testing.T, fw *framework.Framework, namespace string)
- func DumpPolicies(t *testing.T, fw *framework.Framework, namespace string)
- func KillPod(t *testing.T, fw *framework.Framework, namespace string)
- func TestCronJobNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestCronJobRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestCurrentDeployStatus(t *testing.T, fw *framework.Framework, namespace, deploymentName string)
- func TestDaemonSetNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestDaemonSetRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestDeploymentNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestDeploymentNotRunnableOnPatch(t *testing.T, fw *framework.Framework, ...)
- func TestDeploymentNotRunnableOnReplace(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestDeploymentRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestDeploymentRunnableCheck(t *testing.T, fw *framework.Framework, manifestLocation, namespace string, ...)
- func TestJobNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestJobRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestPodNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestPodRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestReplicaSetNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestReplicaSetRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestReplicationControllerNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestReplicationControllerRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestStartDeployNoDelete(t *testing.T, fw *framework.Framework, manifestLocation, namespace string) (deploymentName string)
- func TestStatefulSetNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func TestStatefulSetRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
- func UpdateImagePolicy(t *testing.T, fw *framework.Framework, ...)
- type ShaCheck
Constants ¶
const ( // NoCheck The image content isn't checked. NoCheck = iota // VerifySha The image content isn't checked. VerifySha // VerifyNoSha The image content isn't checked. VerifyNoSha )
Variables ¶
This section is empty.
Functions ¶
func CheckIfTesting ¶
func CleanUpImagePolicyTest ¶
CleanUpImagePolicyTest ...
func CreateImagePolicyInstalledNamespace ¶
func CreateImagePolicyInstalledNamespace(t *testing.T, fw *framework.Framework, manifestPath string, ns string) *corev1.Namespace
CreateImagePolicyInstalledNamespace ...
func CreateImagePolicyInstalledNamespaceNoSecrets ¶ added in v0.10.0
func CreateImagePolicyInstalledNamespaceNoSecrets(t *testing.T, fw *framework.Framework, manifestPath string) *corev1.Namespace
CreateImagePolicyInstalledNamespaceNoSecrets ...
func CreateImagePolicyInstalledNamespaceOptionalSecrets ¶ added in v0.10.0
func CreateImagePolicyInstalledNamespaceOptionalSecrets(t *testing.T, fw *framework.Framework, manifestPath string, ips bool, namespaceParam string) *corev1.Namespace
CreateImagePolicyInstalledNamespaceOptionalSecrets ...
func CreateSecret ¶
func DeleteThenReturnClusterImagePolicy ¶
func DeleteThenReturnClusterImagePolicy(t *testing.T, fw *framework.Framework, clusterImagePolicy string) *policyv1.ClusterImagePolicy
DeleteThenReturnClusterImagePolicy is used for the temporary deletion of a cluster image policy for a given test. The returned ClusterImagePolicy must be used to re-create the cluster image policy after the test is complete by using a defer.
func KillPod ¶
KillPod stops the first pod that is returned in the pod list in the specified namespace.
func TestCronJobNotRunnable ¶
func TestCronJobNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestCronJobNotRunnable tests whether a manifest is deployable to the specified namespace.
func TestCronJobRunnable ¶
TestCronJobRunnable tests whether a manifest is deployable to the specified namespace.
func TestCurrentDeployStatus ¶
func TestCurrentDeployStatus(t *testing.T, fw *framework.Framework, namespace, deploymentName string)
TestCurrentDeployStatus checks that the deployment has the expected number of replicas.
func TestDaemonSetNotRunnable ¶
func TestDaemonSetNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestDaemonSetNotRunnable tests whether a manifest is deployable to the specified namespace.
func TestDaemonSetRunnable ¶
func TestDaemonSetRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestDaemonSetRunnable tests whether a manifest is deployable to the specified namespace.
func TestDeploymentNotRunnable ¶
func TestDeploymentNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestDeploymentNotRunnable tests whether a manifest is deployable to the specified namespace.
func TestDeploymentNotRunnableOnPatch ¶
func TestDeploymentNotRunnableOnPatch(t *testing.T, fw *framework.Framework, deploymentName, patchString, namespace string)
TestDeploymentNotRunnableOnPatch tests whether a deployment is runnable after a patch.
func TestDeploymentNotRunnableOnReplace ¶
func TestDeploymentNotRunnableOnReplace(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestDeploymentNotRunnableOnReplace tests whether a deployment is runnable after a replace.
func TestDeploymentRunnable ¶
func TestDeploymentRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestDeploymentRunnable tests whether a manifest is deployable to the specified namespace.
func TestDeploymentRunnableCheck ¶ added in v0.10.1
func TestDeploymentRunnableCheck(t *testing.T, fw *framework.Framework, manifestLocation, namespace string, sCheck ShaCheck)
TestDeploymentRunnableCheck tests whether a manifest is deployable to the specified namespace.
func TestJobNotRunnable ¶
TestJobNotRunnable tests whether a manifest is deployable to the specified namespace.
func TestJobRunnable ¶
TestJobRunnable tests whether a manifest is deployable to the specified namespace.
func TestPodNotRunnable ¶
TestPodNotRunnable tests whether a manifest is deployable to the specified namespace.
func TestPodRunnable ¶
TestPodRunnable tests whether a manifest is deployable to the specified namespace.
func TestReplicaSetNotRunnable ¶
func TestReplicaSetNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestReplicaSetNotRunnable tests whether a manifest is deployable to the specified namespace.
func TestReplicaSetRunnable ¶
func TestReplicaSetRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestReplicaSetRunnable tests whether a manifest is deployable to the specified namespace.
func TestReplicationControllerNotRunnable ¶
func TestReplicationControllerNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestReplicationControllerNotRunnable tests whether a manifest is deployable to the specified namespace.
func TestReplicationControllerRunnable ¶
func TestReplicationControllerRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestReplicationControllerRunnable tests whether a manifest is deployable to the specified namespace.
func TestStartDeployNoDelete ¶
func TestStartDeployNoDelete(t *testing.T, fw *framework.Framework, manifestLocation, namespace string) (deploymentName string)
TestStartDeployNoDelete starts a deployment and deletes only on failure.
func TestStatefulSetNotRunnable ¶
func TestStatefulSetNotRunnable(t *testing.T, fw *framework.Framework, manifestLocation, namespace string)
TestStatefulSetNotRunnable tests whether a manifest is deployable to the specified namespace.