Skip to content

Commit 2a99658

Browse files
saahirNstgraber
authored andcommitted
tests: Add test for publishing split images
Signed-off-by: Saahir Narang <[email protected]>
1 parent 80102a2 commit 2a99658

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/main.sh

+1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ if [ "${1:-"all"}" != "cluster" ]; then
301301
run_test test_image_import_dir "import image from directory"
302302
run_test test_image_import_with_reuse "import image with reuse flag"
303303
run_test test_image_refresh "image refresh"
304+
run_test test_image_split "image split"
304305
run_test test_image_acl "image acl"
305306
run_test test_cloud_init "cloud-init"
306307
run_test test_exec "exec"

test/suites/image.sh

+13
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,16 @@ test_image_refresh() {
201201
incus remote rm l2
202202
kill_incus "${INCUS2_DIR}"
203203
}
204+
205+
test_image_split() {
206+
ensure_import_testimage
207+
incus init testimage c
208+
incus publish c --alias splitimage --split
209+
incus delete c
210+
incus image export splitimage splitimage.file
211+
incus image delete splitimage
212+
incus image import splitimage.file splitimage.file.root --alias splitimage
213+
incus init splitimage c
214+
incus delete c
215+
incus image delete splitimage
216+
}

0 commit comments

Comments
 (0)