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 Jul 11, 2024
1 parent b384c18 commit 1b7fc10
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 @@ -114,6 +114,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 "${poolName}" vol2 security.shared true
lxc storage volume attach "${poolName}" vol2 v2
! lxc storage volume set "${poolName}" vol2 security.shared false || false
lxc storage volume detach "${poolName}" vol2 v2
lxc storage volume set "${poolName}" 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 1b7fc10

Please sign in to comment.