ScaleComputing / HyperCoreAnsibleCollection

Official Ansible collection for Scale Computing SC//HyperCore (HC3) v1 API
GNU General Public License v3.0
12 stars 8 forks source link

Fix vm clone test #253

Closed justinc1 closed 1 year ago

justinc1 commented 1 year ago

The vm_clone works correctly. The test however assumed vm_snapshot_info output is sorted. But it is not. PR now sorts output from vm_snapshot_info before using one of two snapshots with label=="test2".

Test is 14_clone_from_snapshot.yml a bit modified, each of 3 snapshots has a different CPU and disk count. Then it is easier to check that correct snapshot was used to create a new VM.

justinc1 commented 1 year ago

Integ test: https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/5486162516