Skip to content

Commit 61ede5c

Browse files
Second round of review changes
1 parent 31e77fa commit 61ede5c

File tree

11 files changed

+2926
-597
lines changed

11 files changed

+2926
-597
lines changed

tests/integration/targets/dcnm_policy/tests/dcnm/dcnm_policy_delete.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,27 @@
119119
that:
120120
- 'item["RETURN_CODE"] == 200'
121121
- 'item["MESSAGE"] == "OK"'
122+
when: (my_idx < (result["diff"][0]["deleted"] | length))
123+
loop: '{{ result.response }}'
124+
loop_control:
125+
index_var: my_idx
126+
127+
- name: ASSERT idempotent delete responses
128+
ansible.builtin.assert:
129+
that:
130+
- 'item["RETURN_CODE"] == 200'
131+
- 'item["MESSAGE"] == "OK"'
132+
when: (my_idx == (result["diff"][0]["deleted"] | length))
133+
loop: '{{ result.response }}'
134+
loop_control:
135+
index_var: my_idx
136+
137+
- name: ASSERT idempotent delete responses
138+
ansible.builtin.assert:
139+
that:
140+
- 'item["RETURN_CODE"] == 200'
141+
- '"Deleted successfully" in item["DATA"]["message"]'
142+
when: (my_idx > (result["diff"][0]["deleted"] | length))
122143
loop: '{{ result.response }}'
123144
loop_control:
124145
index_var: my_idx

0 commit comments

Comments
 (0)