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
|
|
@ -317,7 +317,7 @@ def test_a_cross_tenant_write_changes_nothing():
|
|||
client = make_client(_TenantScopedAuthorizer("t-own"))
|
||||
assert put(client).status_code == 403
|
||||
# the store was never touched: the version is untouched
|
||||
assert client.get("/tenants/t-1").json()["version"] == 1
|
||||
assert client.app.state.store.get_tenant("t-1").version == 1
|
||||
|
||||
|
||||
def test_a_store_outage_fails_closed_on_write():
|
||||
|
|
@ -340,9 +340,9 @@ def test_errors_never_reflect_policy_internals():
|
|||
|
||||
|
||||
def test_existing_endpoints_are_unaffected(client):
|
||||
assert client.get("/tenants/t-1").status_code == 200
|
||||
assert client.get("/tenants/t-1/roles").status_code == 200
|
||||
assert client.get("/tenants/t-1/roles/live").status_code == 200
|
||||
assert client.get("/tenants/t-1", params={"actor": "tenant-engine"}).status_code == 200
|
||||
assert client.get("/tenants/t-1/roles", params={"actor": "tenant-engine"}).status_code == 200
|
||||
assert client.get("/tenants/t-1/roles/live", params={"actor": "flex-auth"}).status_code == 200
|
||||
assert client.get("/health").status_code == 200
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue