Files

16 lines
413 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
# Mode whitelist + IP du client absente → page de maintenance (503).
set -euo pipefail
# shellcheck source-path=SCRIPTDIR
# shellcheck source=../lib.sh
source "$(dirname "$0")/../lib.sh"
restart_proxy whitelist "10.99.99.99"
status="$(curl_status)"
assert_eq "503" "$status" "code HTTP"
body="$(curl_body)"
assert_contains "Site en maintenance" "$body" "corps de la page de maintenance"