From c3d82bf37d696040959ad1772e3bdc34776dfc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Tue, 22 Oct 2024 23:39:19 -0400 Subject: [PATCH] tests: Add test for custom storage volume snapshots pattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- test/suites/storage_snapshots.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/suites/storage_snapshots.sh b/test/suites/storage_snapshots.sh index 10c3868c942..0205137db97 100644 --- a/test/suites/storage_snapshots.sh +++ b/test/suites/storage_snapshots.sh @@ -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"