1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-13 15:57:31 +00:00
kyverno/test/conformance/chainsaw/globalcontext/resource-not-exist
Khaled Emara 1eda4789d1
test(globalcontext): add e2e tests (#9661)
* fix(globalcontext): validation

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): use existence instead of ready for now

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore(globalcontext): improve not ready error message

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): allow any APICall

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* fix(globalcontext): prevent double marshal

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* test(globalcontext): add e2e tests

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* chore(globalcontext): move vaildation to OpenAPI V3

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

---------

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2024-02-06 17:03:32 +00:00
..
chainsaw-test.yaml test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00
clusterpolicy-failed.yaml test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00
clusterpolicy.yaml test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00
gctxentry.yaml test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00
main-deployment.yaml test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00
namespace.yaml test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00
new-deployment.yaml test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00
README.md test(globalcontext): add e2e tests (#9661) 2024-02-06 17:03:32 +00:00

Description

This test verifies that policies are not ready if referenced Global Context Entries don't exist.

Expected Behavior

new-deployment should not be created because the policy is not ready.

Reference Issues