Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Add check for refreshing additional snapshots #138

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ for poolDriver in $poolDriverList; do
lxc stop -f v2

echo "==> Checking VM can be refreshed"
lxc snapshot v1
lxc copy v1 v2 --refresh
[ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ]
lxc rm v1/snap1
lxc delete -f v2

echo "==> Checking running copied VM snapshot"
Expand Down Expand Up @@ -134,7 +137,10 @@ for poolDriver in $poolDriverList; do
lxc stop -f v2

echo "==> Checking VM can be refreshed remotely (same storage pool)"
lxc snapshot v1
lxc copy v1 localhost:v2 --refresh
[ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ]
lxc rm v1/snap1
lxc delete -f v2

echo "==> Checking running migrated VM snapshot (same storage pool)"
Expand Down Expand Up @@ -169,7 +175,10 @@ for poolDriver in $poolDriverList; do
lxc stop -f v2

echo "==> Checking VM can be refreshed remotely (different storage pool)"
lxc snapshot v1
lxc copy v1 localhost:v2 --refresh
[ "$(lxc query /1.0/instances/v2?recursion=1 | jq '.snapshots | length')" -eq "2" ]
lxc rm v1/snap1
lxc delete -f v2

echo "==> Checking running migrated VM snapshot (different storage pool)"
Expand Down
Loading