From 9f842fe626bfecb2807b63c934cf6630f749b96f Mon Sep 17 00:00:00 2001 From: Chip Zoller Date: Mon, 7 Nov 2022 16:35:11 -0500 Subject: [PATCH] Kuttl updates (#5257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add remainder of e2e verifyImages tests Signed-off-by: Chip Zoller * add tests Signed-off-by: Chip Zoller * add external-metrics test case and scaffolding Signed-off-by: Chip Zoller * update scaffolding Signed-off-by: Chip Zoller * add keyed-basic test Signed-off-by: Chip Zoller * add migrated e2e test for gen role and rolebinding Signed-off-by: Chip Zoller * add clone-role-and-rolebinding from e2e Signed-off-by: Chip Zoller * remove timeout param from kuttl-test.yaml Signed-off-by: Chip Zoller * add tests for external-metrics Policy fix Signed-off-by: Chip Zoller * update test path Signed-off-by: Chip Zoller * update README Signed-off-by: Chip Zoller Signed-off-by: Chip Zoller Co-authored-by: Vyankatesh Kudtarkar Co-authored-by: Charles-Edouard Brétéché --- .../cpol-clone-sync-delete-downstream/README.md | 14 +++++++++----- test/conformance/kuttl/kuttl-test.yaml | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/test/conformance/kuttl/generate/clusterpolicy/standard/clone/sync/cpol-clone-sync-delete-downstream/README.md b/test/conformance/kuttl/generate/clusterpolicy/standard/clone/sync/cpol-clone-sync-delete-downstream/README.md index ff89967525..cca30e962d 100644 --- a/test/conformance/kuttl/generate/clusterpolicy/standard/clone/sync/cpol-clone-sync-delete-downstream/README.md +++ b/test/conformance/kuttl/generate/clusterpolicy/standard/clone/sync/cpol-clone-sync-delete-downstream/README.md @@ -1,7 +1,11 @@ -# Title +## Description -This test ensures that deletion of a downstream resource created by a ClusterPolicy `generate` rule with sync disabled using a clone declaration does NOT cause it to be regenerated. If the downstream resource is regenerated, the test fails. If it is not regenerated, the test succeeds. +This test ensures that deletion of a downstream resource created by a ClusterPolicy `generate` rule with sync enabled using a clone declaration causes it to be regenerated. If it is not regenerated, the test fails. -### Tests a clone rule with sync not enabled that deleting a downstream resource shows it is not recreated. -### Because https://github.com/kyverno/kyverno/issues/4457 is not yet fixed for this type, the test will fail. -### Expected result: fail \ No newline at end of file +## Expected Behavior + +The downstream resource, upon deletion, is expected to be recreated/recloned from the source resource. + +## Reference Issue(s) + +N/A \ No newline at end of file diff --git a/test/conformance/kuttl/kuttl-test.yaml b/test/conformance/kuttl/kuttl-test.yaml index 5c608ec9b6..acd3a79822 100644 --- a/test/conformance/kuttl/kuttl-test.yaml +++ b/test/conformance/kuttl/kuttl-test.yaml @@ -2,7 +2,7 @@ apiVersion: kuttl.dev/v1beta1 kind: TestSuite testDirs: # Generate tests -# - ./generate/clusterpolicy/standard/clone/nosync +# - ./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