Skip to content

Commit

Permalink
tests: Add test for custom storage volume snapshots pattern
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Oct 23, 2024
1 parent fe313ed commit c3d82bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/suites/storage_snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ test_storage_volume_snapshots() {
incus storage volume delete "${storage_pool}" "vol1"
incus storage volume delete "${storage_pool}" "vol1-snap0"

# Check snapshot pattern
incus storage volume create "${storage_pool}" "vol1"
incus storage volume snapshot create "${storage_pool}" "vol1"
incus storage volume snapshot show "${storage_pool}" "vol1/snap0"
incus storage volume set "${storage_pool}" "vol1" snapshots.pattern="test%d"
incus storage volume snapshot create "${storage_pool}" "vol1"
incus storage volume snapshot show "${storage_pool}" "vol1/test0"
incus storage volume delete "${storage_pool}" "vol1"

# Check snapshot restore of type block volumes.
incus storage volume create "${storage_pool}" "vol1" --type block
incus storage volume snapshot create "${storage_pool}" "vol1" "snap0"
Expand Down

0 comments on commit c3d82bf

Please sign in to comment.