1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/test/conformance/chainsaw/globalcontext/validate-crd
Vishal Choudhary b5b925bf78
feat: add chainsaw tests for global context crd validation (#9628)
* feat: add chainsaw tests for global context crd validation

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* feat: add globalcontext to standard conformance action

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: overlapping names

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2024-02-04 18:15:55 +01:00
..
chainsaw-test.yaml feat: add chainsaw tests for global context crd validation (#9628) 2024-02-04 18:15:55 +01:00
multiple-resources.yaml feat: add chainsaw tests for global context crd validation (#9628) 2024-02-04 18:15:55 +01:00
no-resource.yaml feat: add chainsaw tests for global context crd validation (#9628) 2024-02-04 18:15:55 +01:00
README.md feat: add chainsaw tests for global context crd validation (#9628) 2024-02-04 18:15:55 +01:00
valid-context-assert.yaml feat: add chainsaw tests for global context crd validation (#9628) 2024-02-04 18:15:55 +01:00
valid-context.yaml feat: add chainsaw tests for global context crd validation (#9628) 2024-02-04 18:15:55 +01:00

Description

This test creates the following global context entries:

  1. A valid global context entry.
  2. A context entry with both kubernetesResource and apiCall.
  3. A context entry with neither kubernetesResource nor apiCall.

Expected Behavior

1st global context entry should get created, 2nd and 3rd entries should return an error.