Skip to content

Commit 2fd350d

Browse files
committed
CI test attached disk is not replaced
The UUID must not change Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent 9ba75b0 commit 2fd350d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/targets/virtual_disk_attach/tasks/01_supported.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@
111111
- disk.record.vm_uuid == vm.record.0.uuid
112112
- not disk.diff.before
113113
- disk.diff.after == disk.record
114+
- name: Store UUID of created virtio disk
115+
ansible.builtin.set_fact:
116+
disk_uuid_virtio: "{{ disk.record.uuid }}"
114117

115118
- name: Assert that disk is attached to XLAB-attach-virtual-disk
116119
scale_computing.hypercore.vm_info:
@@ -158,6 +161,7 @@
158161
- disk.diff.after == disk.record
159162
- disk.diff.before == disk.record
160163
- vm.records.0.disks | length == 1
164+
- disk_uuid_virtio == disk.record.uuid
161165

162166
- name: Attach virtual disk with only type and slot defined (test default values)
163167
scale_computing.hypercore.virtual_disk_attach:

0 commit comments

Comments
 (0)