Skip to content

Commit

Permalink
tests/cluster: Test for container stop after snap channel upgrade
Browse files Browse the repository at this point in the history
This allows us to test for container stop support after upgrading between core snap versions.

Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Nov 27, 2024
1 parent eba9802 commit 8ac6ed0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/cluster
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8ac6ed0

Please sign in to comment.