From 8ac6ed00784078dcbaa1d063299eebacf871da9d Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Wed, 27 Nov 2024 10:32:45 +0000 Subject: [PATCH] tests/cluster: Test for container stop after snap channel upgrade This allows us to test for container stop support after upgrading between core snap versions. Signed-off-by: Thomas Parrott --- tests/cluster | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/cluster b/tests/cluster index e0acfee0..a20867eb 100755 --- a/tests/cluster +++ b/tests/cluster @@ -188,6 +188,10 @@ if [ "${TEST_RESTRICTED}" = "1" ]; then lxc query "/1.0/certificates/${restricted_metrics_fingerprint}" | jq -er '.projects[0] == "default"' fi +echo "==> Check container can be stopped after upgrade (checks for stop hook notification functionality)" +lxc exec "${PREFIX}-1" -- lxc stop --force u1 +lxc exec "${PREFIX}-1" -- lxc stop --force u2 + echo "==> Deleting the cluster" for i in $(seq "${SIZE}"); do print_log "${PREFIX}-$i"