fix integration unsafe asserts (#212)

This commit is contained in:
Bikouo Aubin
2023-12-11 17:57:20 +01:00
committed by GitHub
parent 7988daff93
commit b5b2f67015
8 changed files with 48 additions and 48 deletions

View File

@@ -223,8 +223,8 @@
- name: validate clusterrole binding candidates for prune
assert:
that:
- '"{{ item.name }}-binding" in check.cluster_role_binding'
- '"{{ test_ns }}/{{ cluster_roles[0].name }}-binding" in check.role_binding'
- 'item["name"]+"-binding" in check.cluster_role_binding'
- 'test_ns+"/"+cluster_roles[0].name+"-binding" in check.role_binding'
with_items: "{{ cluster_roles }}"
- name: Prune Cluster Role for managing Pod