Implement PostgreSQL production store path
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 41s
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 41s
Add the PostgreSQL backend, migration and stopped-write transfer tools, lease-aware deployment manifests, tenancy declarations, and shared conformance coverage. Persist grouping mutations in durable stores and separate process liveness from database readiness.
This commit is contained in:
parent
2063470ac8
commit
749461b97b
30 changed files with 2364 additions and 71 deletions
|
|
@ -9,6 +9,7 @@ kind a single-backend suite would miss.
|
|||
from datetime import UTC, datetime
|
||||
|
||||
import pytest
|
||||
from postgres_backend import clean_postgres_store
|
||||
|
||||
from tenant_engine.domain import Tenant, TenantRetiredError
|
||||
from tenant_engine.guardrail import (
|
||||
|
|
@ -30,11 +31,13 @@ NOW = datetime(2026, 8, 16, 12, 0, tzinfo=UTC)
|
|||
KEY = "spend.monthly"
|
||||
|
||||
|
||||
@pytest.fixture(params=["memory", "sqlite"])
|
||||
@pytest.fixture(params=["memory", "sqlite", "postgres"])
|
||||
def store(request, tmp_path):
|
||||
if request.param == "memory":
|
||||
return InMemoryTenantStore()
|
||||
return SQLiteTenantStore(str(tmp_path / "tenant.db"))
|
||||
if request.param == "sqlite":
|
||||
return SQLiteTenantStore(str(tmp_path / "tenant.db"))
|
||||
return clean_postgres_store(tmp_path)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue