fix: validate required schema and support bounded JPEG file objects
This commit is contained in:
@@ -133,6 +133,22 @@ print(json.dumps({"anonymous_status":anon,"unrelated_bucket_denied":denied,"back
|
||||
else:
|
||||
raise AssertionError("PostgreSQL recovery timed out")
|
||||
check("old_session_recovers_after_unpause", me["json"]["id"] == alice["id"])
|
||||
inside(
|
||||
"from messenger.postgres import PostgresStore; s=PostgresStore(); "
|
||||
"c=s.pool.getconn(); c.execute('ALTER TABLE message_requests RENAME TO message_requests_readiness_test'); "
|
||||
"s.pool.putconn(c); s.close(); print('{}')"
|
||||
)
|
||||
try:
|
||||
absent_table = request("/health/ready")
|
||||
check("missing_required_table_ready_503", absent_table["status"] == 503)
|
||||
report["faults"].append({"service": "missing_message_requests", "ready": absent_table})
|
||||
finally:
|
||||
inside(
|
||||
"from messenger.postgres import PostgresStore; s=PostgresStore(); "
|
||||
"c=s.pool.getconn(); c.execute('ALTER TABLE message_requests_readiness_test RENAME TO message_requests'); "
|
||||
"s.pool.putconn(c); s.close(); print('{}')"
|
||||
)
|
||||
check("schema_restore_ready_200", request("/health/ready")["status"] == 200)
|
||||
Path(ROOT / "evidence/storage-checks.json").write_text(
|
||||
json.dumps(report, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user