mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +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
|
@ -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
|
||||
parallel: 1
|
||||
|
|
|
@ -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…
Reference in a new issue