1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-07 00:17:13 +00:00
kyverno/test/conformance/kuttl/background-only/cluster-policy/not-rejected
Charles-Edouard Brétéché f6933f11f3
test: add kuttl tests for background only policies (#7709)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-06-29 20:53:23 +08:00
..
01-policy.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
02-resource.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
policy-assert.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
policy.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
README.md test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
resource.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00

Description

This test creates a policy with admission set to false. Then it creates a resource that violates the policy.

Expected Behavior

The resource creates fine as the policy doesn't apply at admission time.