Skip to content

Commit

Permalink
test/suites: Test security.shared is only allowed in block vols
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Dec 11, 2024
1 parent 094952f commit d2b4bdf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/suites/storage_local_volume_handling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ test_storage_local_volume_handling() {
lxc storage volume set "${pool}" vol1 user.foo=snap0
lxc storage volume set "${pool}" vol1 snapshots.expiry=1H

lxc storage volume create "${pool}" blockVol --type=block
lxc storage volume create "${pool}" isoVol --type=iso

# security.shared is only allowed for block volumes
! lxc storage volume set default vol1 security.shared true || false
! lxc storage volume set default isoVol security.shared true || false
lxc storage volume set default blockVol security.shared true

lxc storage volume delete blockVol
lxc storage volume delete isoVol

# This will create the snapshot vol1/snap0
lxc storage volume snapshot "${pool}" vol1

Expand Down

0 comments on commit d2b4bdf

Please sign in to comment.