mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-29 19:04:35 +00:00
fix(tests,kubevirt_vm): Assert there are no or expected changes
Assert there are no or expected changes in verify.yml of the kubevirt_vm integration test. This is necessary since in downstream tests the kubemacpool operator might add annotations to the VM which can trigger a changed result. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
@@ -11,10 +11,15 @@
|
|||||||
labels:
|
labels:
|
||||||
app: test
|
app: test
|
||||||
register: recreate
|
register: recreate
|
||||||
- name: Assert module reported no changes
|
- name: Assert module reported no or expected changes
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- not recreate.changed
|
- >-
|
||||||
|
not recreate.changed or
|
||||||
|
recreated.changed and
|
||||||
|
recreated.method == "update" and
|
||||||
|
recreated.diff.before.metadata.annotations.get('kubemacpool.io/transaction-timestamp') and
|
||||||
|
not recreated.diff.after.metadata.annotations
|
||||||
|
|
||||||
- name: Delete VM
|
- name: Delete VM
|
||||||
connection: local
|
connection: local
|
||||||
|
|||||||
Reference in New Issue
Block a user