mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix: add missing test suite to kuttl (#5268)
* fix: add missing test suite to kuttl Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix path Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * readme Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
b71c0004d0
commit
78fb926862
11 changed files with 20 additions and 6 deletions
test/conformance/kuttl
kuttl-test.yaml
mutate/clusterpolicy/cornercases/defaulting-namespace-labels
|
@ -10,11 +10,12 @@ testDirs:
|
|||
# Mutate tests
|
||||
- ./test/conformance/kuttl/mutate/clusterpolicy/standard
|
||||
- ./test/conformance/kuttl/mutate/clusterpolicy/standard/existing
|
||||
- ./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
|
||||
- ./test/conformance/kuttl/reports/admission
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue