1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/conformance/kuttl/events/clusterpolicy/no-events-upon-skip-generation
Mariam Fahmy e20745b01d
feat: add events for successful generation (#7550)
* feat: add events for successful generation

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* fix

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* fix

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* modify generate events messages

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* fix: modify mutate event messages

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* feat: add kuttl tests

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* fix

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* add kuttl test for skip generation

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

* Add kuttl test for failures

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>

---------

Signed-off-by: Mariam Fahmy <mariamfahmy66@gmail.com>
2023-07-10 14:22:28 +03:00
..
01-policy.yaml feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00
02-resource.yaml feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00
03-event.yaml feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00
event.yaml feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00
policy-assert.yaml feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00
policy.yaml feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00
README.md feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00
resource.yaml feat: add events for successful generation (#7550) 2023-07-10 14:22:28 +03:00

Description

This test creates a generate policy, and the trigger resource (namespace) ns-1 which is excluded by the policy. No events generated since the ns-1

Steps

    • Create a generate policy
    • Assert the policy becomes ready
  1. Create the namespace.
  2. No events generated as the rule result is skip