Shadow database demotion checks from native path
This commit is contained in:
Executable
+13
@@ -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/native_peers.sh"
|
||||
|
||||
grep -q '^mc_pg_demote_database_shadow()' "$FILE"
|
||||
grep -q '"demote.database"' "$FILE"
|
||||
grep -q 'final_handoff_required' "$FILE"
|
||||
grep -q 'comparison=MATCH' "$FILE"
|
||||
grep -q 'demote.database shadow MISMATCH' "$FILE"
|
||||
|
||||
echo "DEMOTE_DATABASE_SHADOW_TEST_PASS=1"
|
||||
Reference in New Issue
Block a user