Skip to content

Commit 5ce88e0

Browse files
committed
Use API /rest/v2 when asserting test responses
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent 13202f2 commit 5ce88e0

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

tests/integration/targets/i_vm_params/tasks/01_main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@
184184
register: output
185185
- ansible.builtin.assert:
186186
that:
187-
- "'No records from endpoint /rest/v1/VirDomainSnapshotSchedule' in output.msg"
187+
- >
188+
('No records from endpoint /rest/v1/VirDomainSnapshotSchedule' in output.msg) or
189+
('No records from endpoint /rest/v2/VirDomainSnapshotSchedule' in output.msg)
188190
189191
- name: Check VMs snapshot schedule isn't changed
190192
scale_computing.hypercore.vm_info:

tests/integration/targets/i_vm_params/tasks/02_machine_type.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@
199199
register: output
200200
- ansible.builtin.assert:
201201
that:
202-
- "'No records from endpoint /rest/v1/VirDomainSnapshotSchedule' in output.msg"
202+
- >
203+
('No records from endpoint /rest/v1/VirDomainSnapshotSchedule' in output.msg) or
204+
('No records from endpoint /rest/v2/VirDomainSnapshotSchedule' in output.msg)
203205
204206
- name: Check VMs snapshot schedule isn't changed
205207
scale_computing.hypercore.vm_info:

tests/integration/targets/vm_node_affinity/tasks/main.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@
278278
that:
279279
- output is failed
280280
- output is not changed
281-
- "'No records from endpoint /rest/v1/Node' in output.msg"
281+
- >
282+
('No records from endpoint /rest/v1/Node' in output.msg) or
283+
('No records from endpoint /rest/v2/Node' in output.msg)
282284
283285
- name: Check that affinity is not changed
284286
scale_computing.hypercore.vm_info:
@@ -304,7 +306,9 @@
304306
that:
305307
- output is failed
306308
- output is not changed
307-
- "'No records from endpoint /rest/v1/Node' in output.msg"
309+
- >
310+
('No records from endpoint /rest/v1/Node' in output.msg) or
311+
('No records from endpoint /rest/v2/Node' in output.msg)
308312
309313
- name: Check that affinity is not changed
310314
scale_computing.hypercore.vm_info:
@@ -330,7 +334,9 @@
330334
that:
331335
- output is failed
332336
- output is not changed
333-
- "'No records from endpoint /rest/v1/Node' in output.msg"
337+
- >
338+
('No records from endpoint /rest/v1/Node' in output.msg) or
339+
('No records from endpoint /rest/v2/Node' in output.msg)
334340

335341
- name: Check that affinity is not changed
336342
scale_computing.hypercore.vm_info:
@@ -356,7 +362,9 @@
356362
that:
357363
- output is failed
358364
- output is not changed
359-
- "'No records from endpoint /rest/v1/Node' in output.msg"
365+
- >
366+
('No records from endpoint /rest/v1/Node' in output.msg) or
367+
('No records from endpoint /rest/v2/Node' in output.msg)
360368

361369
- name: Check that affinity is not changed
362370
scale_computing.hypercore.vm_info:

0 commit comments

Comments
 (0)