Skip to content

Commit

Permalink
test: Add storage volume move between projects
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
  • Loading branch information
roosterfish committed Nov 14, 2023
1 parent 284588d commit 1424136
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/suites/storage_local_volume_handling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ test_storage_local_volume_handling() {
lxc storage volume move "${pool}1/vol1" "${pool}1/vol4"
lxc storage volume move "${pool}1/vol4" "${pool}1/vol1"

# Move volume between projects
lxc project create "${project}"
lxc storage volume move "${pool}1/vol1" "${pool}1/vol1" --project default --target-project "${project}"
lxc storage volume show "${pool}1" vol1 --project "${project}"
lxc storage volume move "${pool}1/vol1" "${pool}1/vol1" --project "${project}" --target-project default
lxc storage volume show "${pool}1" vol1 --project default

lxc project delete "${project}"
lxc storage volume delete "${pool}1" vol1
lxc storage volume delete "${pool}1" vol2
lxc storage volume delete "${pool}1" vol3
Expand Down

0 comments on commit 1424136

Please sign in to comment.