fix: clarify error for failed schema cache load

This commit is contained in:
steve-chavez
2022-01-07 09:31:30 +01:00
committed by Wolfgang Walther
parent aa82d2e277
commit 51ee072f84
4 changed files with 12 additions and 5 deletions
+5
View File
@@ -787,12 +787,17 @@ def test_admin_ready_includes_schema_cache_state(defaultenv):
"/rpc/no_schema_cache_for_limited_authenticator"
)
assert response.status_code == 200
# force a reconnection so the new role setting is picked up
postgrest.process.send_signal(signal.SIGUSR1)
time.sleep(0.1)
response = postgrest.admin.get("/ready")
assert response.status_code == 503
response = postgrest.session.get("/projects")
assert response.status_code == 503
def test_admin_not_found(defaultenv):
"Should get a not found from a undefined endpoint on the admin server"