Skip to content

Commit

Permalink
test: Add test to ensure aliased vm images won't launch as container
Browse files Browse the repository at this point in the history
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
  • Loading branch information
kadinsayani committed Sep 19, 2024
1 parent b781061 commit 6cf7714
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/suites/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ test_remote_url() {
if [ -z "${LXD_OFFLINE:-}" ]; then
lxc_remote remote add ubuntu1 https://cloud-images.ubuntu.com/releases --protocol=simplestreams
lxc_remote remote add ubuntu2 https://cloud-images.ubuntu.com:443/releases --protocol=simplestreams

# Ensure that we can't launch an aliased VM image as a container
lxc_remote image copy ubuntu:noble local: --copy-aliases --vm
! lxc_remote launch noble || false

lxc_remote remote remove ubuntu1
lxc_remote remote remove ubuntu2
fi
Expand Down

0 comments on commit 6cf7714

Please sign in to comment.