mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 02:18:15 +00:00
Kuttl updates (#5257)
* add remainder of e2e verifyImages tests Signed-off-by: Chip Zoller <chipzoller@gmail.com> * add tests Signed-off-by: Chip Zoller <chipzoller@gmail.com> * add external-metrics test case and scaffolding Signed-off-by: Chip Zoller <chipzoller@gmail.com> * update scaffolding Signed-off-by: Chip Zoller <chipzoller@gmail.com> * add keyed-basic test Signed-off-by: Chip Zoller <chipzoller@gmail.com> * add migrated e2e test for gen role and rolebinding Signed-off-by: Chip Zoller <chipzoller@gmail.com> * add clone-role-and-rolebinding from e2e Signed-off-by: Chip Zoller <chipzoller@gmail.com> * remove timeout param from kuttl-test.yaml Signed-off-by: Chip Zoller <chipzoller@gmail.com> * add tests for external-metrics Policy fix Signed-off-by: Chip Zoller <chipzoller@gmail.com> * update test path Signed-off-by: Chip Zoller <chipzoller@gmail.com> * update README Signed-off-by: Chip Zoller <chipzoller@gmail.com> Signed-off-by: Chip Zoller <chipzoller@gmail.com> Co-authored-by: Vyankatesh Kudtarkar <vyankateshkd@gmail.com> Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
1899938f05
commit
9f842fe626
2 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
## Expected Behavior
|
||||
|
||||
The downstream resource, upon deletion, is expected to be recreated/recloned from the source resource.
|
||||
|
||||
## Reference Issue(s)
|
||||
|
||||
N/A
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue