fix(docs): remove obsolete document checks from postgres tests
This commit is contained in:
@@ -5,7 +5,6 @@ def test_shared_host_postgres_assets_are_present_and_isolated():
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
compose_yaml = (root / "deployment" / "docker-compose.postgres.server.yml").read_text(encoding="utf-8")
|
||||
env_template = (root / ".env.postgres.server.template").read_text(encoding="utf-8")
|
||||
runbook = (root / "docs" / "runbooks" / "postgres-server-docker.md").read_text(encoding="utf-8")
|
||||
gitignore = (root / ".gitignore").read_text(encoding="utf-8")
|
||||
|
||||
assert "name: call-center-postgres" in compose_yaml
|
||||
@@ -19,10 +18,5 @@ def test_shared_host_postgres_assets_are_present_and_isolated():
|
||||
assert "POSTGRES_USER=mvpcc_app" in env_template
|
||||
assert "POSTGRES_PASSWORD=" in env_template
|
||||
|
||||
assert "deployment/docker-compose.postgres.server.yml" in runbook
|
||||
assert "127.0.0.1:5434" in runbook
|
||||
assert "call-center-postgres:5432" in runbook
|
||||
assert "do not edit `deployment/docker-compose.server.yml`" in runbook
|
||||
|
||||
assert ".data_pg/" in gitignore
|
||||
assert ".env.postgres.server" in gitignore
|
||||
|
||||
@@ -5,7 +5,6 @@ def test_parallel_postgres_stack_assets_are_present_and_conflict_free():
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
compose_yaml = (root / "deployment" / "docker-compose.parallel.server.yml").read_text(encoding="utf-8")
|
||||
env_template = (root / ".env.postgres.parallel.server.template").read_text(encoding="utf-8")
|
||||
runbook = (root / "docs" / "runbooks" / "postgres-server-parallel-stack.md").read_text(encoding="utf-8")
|
||||
gitignore = (root / ".gitignore").read_text(encoding="utf-8")
|
||||
|
||||
assert "name: call-center-pg" in compose_yaml
|
||||
@@ -25,12 +24,5 @@ def test_parallel_postgres_stack_assets_are_present_and_conflict_free():
|
||||
assert "ASTERISK_BRIDGE_ENABLED=0" in env_template
|
||||
assert "AI_VOICE_ENABLED=0" in env_template
|
||||
|
||||
assert "deployment/docker-compose.parallel.server.yml" in runbook
|
||||
assert "call-center-app:pg-parallel" in runbook
|
||||
assert "python scripts/migrate_core_db.py" in runbook
|
||||
assert "http://<server-host>:18080" in runbook
|
||||
assert "call-center-postgres_default" in runbook
|
||||
assert "do not stop or restart the existing `call-center` compose project" in runbook
|
||||
|
||||
assert ".data_pg_parallel/" in gitignore
|
||||
assert ".env.postgres.parallel.server" in gitignore
|
||||
|
||||
Reference in New Issue
Block a user