mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +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:
|
||||
app: test
|
||||
register: recreate
|
||||
- name: Assert module reported no changes
|
||||
- name: Assert module reported no or expected changes
|
||||
ansible.builtin.assert:
|
||||
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
|
||||
connection: local
|
||||
|
||||
Reference in New Issue
Block a user