Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/unit/migrations/test_node_migration_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
/ "node_projection_registration"
/ "0003_reconcile_heartbeat_observability.sql"
)
REGISTRATION_NO_FORCE_RLS = (
NODES_DIR
/ "node_projection_registration"
/ "0004_node_service_registry_no_force_rls.sql"
)
DEPLOYMENT_EVIDENCE_CREATE = (
NODES_DIR
/ "node_deployment_evidence_reducer"
Expand Down Expand Up @@ -126,6 +131,14 @@ def test_registration_observability_reconciliation_vendored(self) -> None:
assert "ADD COLUMN IF NOT EXISTS uptime_seconds" in sql
assert "idx_node_service_registry_last_heartbeat_at" in sql

def test_registration_force_rls_reversal_targets_public_table(self) -> None:
sql = REGISTRATION_NO_FORCE_RLS.read_text(encoding="utf-8")

assert "to_regclass('public.node_service_registry') IS NOT NULL" in sql
assert (
"ALTER TABLE public.node_service_registry NO FORCE ROW LEVEL SECURITY;"
) in sql

def test_savings_projection_view_vendored(self) -> None:
assert SAVINGS_VIEW.is_file(), (
"savings projection view must be vendored under "
Expand Down
Loading