mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
Expand the bats suite to address a second review pass: - Assert that a containerd only warning produces a HINT that names containerd.service and NOT docker.service, and mirror the check in the docker only test. When both fire, assert the HINT lists both services in a single systemctl disable invocation. - New test: 'clean host without systemctl exits silently' — exercises the COZYSTACK_PREFLIGHT_FORCE_NO_SYSTEMCTL=1 path when no standalone sockets exist. Previously the tests only covered the systemd enabled clean host, leaving the non systemd clean path unverified. - New test: 'docker service plus socket still emits exactly one warning' — mirrors the existing containerd service+socket test and locks in the gated check in check_docker. - Replace silent 'return 0' on missing python3 with a visible '# SKIP: python3 unavailable' message on stderr so CI logs make it obvious which tests were skipped on a given runner. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>