1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/test/conformance/kuttl/rangeoperators/standard
yinka fcf27bb035
fix: change inrange operator regexs (#5962)
* fix inrange operator regexs

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* add support for + sign

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* add support for leftEndpoint + sign

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* update regexs

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* add range operator tests in client code

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* extract range values

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* add cases

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* add test

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* fix test

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* add cli test

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* clean up code

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* fix lint error

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>

* fix kuttl test

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* regex nits

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: damilola olayinka <holayinkajr@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-01-16 16:23:36 +01:00
..
01-policy.yaml fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
02-resource.yaml fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
policy-assert.yaml fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
policy.yaml fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
README.md fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
resource.yaml fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00

Description

This test creates a policy with range operators and a configmap. It uses ranges with negative and (un)signed positive integer endpoints.

Expected Behavior

It ensures that a configmap with values not in a range are not created.

Reference Issue(s)