Files
managed-container/tests/test-notify-daemon-shadow.sh
T

13 lines
402 B
Bash
Executable File

#!/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_daemon_shadow()' "$FILE"
grep -q '"notify"' "$FILE"
grep -q 'OCF_RESKEY_CRM_meta_notify_demote_uname' "$FILE"
grep -q 'managed-containerd notify shadow' "$FILE"
echo "NOTIFY_DAEMON_SHADOW_TEST_PASS=1"