Skip to content

Commit

Permalink
test: test multiple ephemeral instances delete
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mougard <gabriel.mougard@canonical.com>
  • Loading branch information
gabrielmougard committed Oct 17, 2023
1 parent fb9c3ba commit 18f2a43
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/suites/basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
}

0 comments on commit 18f2a43

Please sign in to comment.