Skip to content

Commit

Permalink
tests: Add tests for custom block volume sharing
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Apr 17, 2024
1 parent 6dc90c0 commit 0311714
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/storage-volumes-vm
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ do
lxc storage volume attach "${poolName}" vol2 v1
lxc storage volume attach "${poolName}" vol3 v1

echo "==> Share a custom block volume"
! lxc storage volume attach "${poolName}" vol2 v2 || false
lxc storage volume set default vol2 security.shared true
lxc storage volume attach "${poolName}" vol2 v2
! lxc storage volume set default vol2 security.shared false || false
lxc storage volume detach "${poolName}" vol2 v2
lxc storage volume set default vol2 security.shared false

if hasNeededAPIExtension custom_volume_iso; then
echo "==> Attach custom ISO volumes to VM"
lxc storage volume attach "${poolName}" vol5 v1
Expand Down

0 comments on commit 0311714

Please sign in to comment.