diff --git a/test/conformance/kuttl/kuttl-test.yaml b/test/conformance/kuttl/kuttl-test.yaml index acd3a79822..f88eaa2776 100644 --- a/test/conformance/kuttl/kuttl-test.yaml +++ b/test/conformance/kuttl/kuttl-test.yaml @@ -1,24 +1,25 @@ apiVersion: kuttl.dev/v1beta1 kind: TestSuite testDirs: - # Generate tests +# Generate tests # - ./test/conformance/kuttl/generate/clusterpolicy/standard/clone/nosync - ./test/conformance/kuttl/generate/clusterpolicy/standard/clone/sync - ./test/conformance/kuttl/generate/clusterpolicy/standard/data/sync - ./test/conformance/kuttl/generate/clusterpolicy/standard/data/nosync - ./test/conformance/kuttl/generate/clusterpolicy/cornercases - # Mutate tests +# Mutate tests - ./test/conformance/kuttl/mutate/clusterpolicy/standard - ./test/conformance/kuttl/mutate/clusterpolicy/standard/existing - # Validate tests +- ./test/conformance/kuttl/mutate/clusterpolicy/cornercases +# Validate tests - ./test/conformance/kuttl/validate/clusterpolicy/standard/audit - ./test/conformance/kuttl/validate/clusterpolicy/standard/enforce - ./test/conformance/kuttl/validate/clusterpolicy/cornercases - # verifyImages tests +# Verify image tests - ./test/conformance/kuttl/verifyImages/clusterpolicy/standard - # Report tests +# Report tests - ./test/conformance/kuttl/reports/admission - ./test/conformance/kuttl/reports/background startKIND: false # timeout: 15 -parallel: 1 \ No newline at end of file +parallel: 1 diff --git a/test/conformance/kuttl/issues/5136/01-assert.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/01-assert.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/01-assert.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/01-assert.yaml diff --git a/test/conformance/kuttl/issues/5136/01-manifests.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/01-manifests.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/01-manifests.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/01-manifests.yaml diff --git a/test/conformance/kuttl/issues/5136/02-script.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/02-script.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/02-script.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/02-script.yaml diff --git a/test/conformance/kuttl/issues/5136/03-errors.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/03-errors.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/03-errors.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/03-errors.yaml diff --git a/test/conformance/kuttl/issues/5136/04-manifests.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/04-manifests.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/04-manifests.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/04-manifests.yaml diff --git a/test/conformance/kuttl/issues/5136/05-assert.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/05-assert.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/05-assert.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/05-assert.yaml diff --git a/test/conformance/kuttl/issues/5136/05-pod.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/05-pod.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/05-pod.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/05-pod.yaml diff --git a/test/conformance/kuttl/issues/5136/99-cleanup.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/99-cleanup.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/99-cleanup.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/99-cleanup.yaml diff --git a/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/README.md b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/README.md new file mode 100644 index 0000000000..6d5d9f3cca --- /dev/null +++ b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/README.md @@ -0,0 +1,13 @@ +## Description + +This tests checks that if namespace labels used in a policy are not present the resource is NOT created. +If the expected labels are defaulted in the policy the resource creation should work fine. + +## Expected Behavior + +The first part of the test checks that the resource fails to create if namespace labels are not present. +Then the policy is updated to use default values when namespace labels are missing, then the resource should be created without issue. + +## Reference Issue(s) + +5136 diff --git a/test/conformance/kuttl/issues/5136/resource.yaml b/test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/resource.yaml similarity index 100% rename from test/conformance/kuttl/issues/5136/resource.yaml rename to test/conformance/kuttl/mutate/clusterpolicy/cornercases/defaulting-namespace-labels/resource.yaml