Skip to content

Commit 7b9ed87

Browse files
committed
test(helm): detect unscoped policy mutation
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
1 parent b099584 commit 7b9ed87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎deploy/helm/openshell/tests/clusterrole_test.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tests:
3535
- notExists:
3636
path: rules[?(@.resources[0] == "networkpolicies")].verbs[?(@ == "update")]
3737
- notExists:
38-
path: rules[?(@.resources[0] == "networkpolicies" && @.resourceNames == null)].verbs[?(@ == "patch")]
38+
path: rules[?(@.resources[0] == "networkpolicies" && !@.resourceNames)].verbs[?(@ == "patch")]
3939

4040
- it: limits namespaced admission reads to PVCs
4141
set:

0 commit comments

Comments
 (0)