Shadow daemon notification target during demotion

This commit is contained in:
Lyncoln
2026-09-17 17:17:16 -04:00
parent 0deb3f0061
commit a63b63bb5b
4 changed files with 83 additions and 2 deletions
+1
View File
@@ -25,6 +25,7 @@ echo ">>> Generic proxy client actions"
python3 ./tests/test-proxy-client-actions.py
python3 ./tests/test-proxy-client-parameters.py
./tests/test-notify-daemon-shadow.sh
./tests/test-notify-target-shadow.sh
echo
echo ">>> Python syntax"
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
FILE="$ROOT/ocf/loxthelion/managed-container.d/applications/postgresql/notify.sh"
grep -q '^mc_pg_notify_target_daemon_shadow()' "$FILE"
grep -q '"notify.target"' "$FILE"
grep -q 'MC_EXPECTED_SUCCESSOR' "$FILE"
grep -q 'comparison=MATCH' "$FILE"
grep -q 'notify.target shadow MISMATCH' "$FILE"
echo "NOTIFY_TARGET_SHADOW_TEST_PASS=1"