From 18f2a43313c30d81237bc13b31047b5be81f9752 Mon Sep 17 00:00:00 2001 From: Gabriel Mougard Date: Tue, 17 Oct 2023 18:48:06 +0200 Subject: [PATCH] test: test multiple ephemeral instances delete Signed-off-by: Gabriel Mougard --- test/suites/basic.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/suites/basic.sh b/test/suites/basic.sh index 97a50afbba65..5ee14bef9e75 100644 --- a/test/suites/basic.sh +++ b/test/suites/basic.sh @@ -655,4 +655,14 @@ test_basic_usage() { ! lxc profile assign c1 foo || false lxc profile delete foo lxc delete -f c1 + + # Test deleting multiple ephemeral containers + lxc launch --ephemeral testimage c1 + lxc launch --ephemeral testimage c2 + lxc launch --ephemeral testimage c3 + + lxc delete -f c1 c2 c3 + # check that the containers are really gone + remaining_instances=$(lxc list --format --csv | wc -l) + [ "${remaining_instances}" -eq 0 ] }