feat: dump config through Admin API

This commit is contained in:
Ivan Kasatenko
2024-02-05 19:16:05 -05:00
committed by GitHub
parent a45058ba02
commit 71887e4b78
3 changed files with 17 additions and 0 deletions
+10
View File
@@ -632,6 +632,16 @@ def test_change_statement_timeout_held_connection(defaultenv, metapostgrest):
t.join()
def test_admin_config(defaultenv):
"Should get a success response from the admin server containing current configuration"
with run(env=defaultenv) as postgrest:
response = postgrest.admin.get("/config")
print(response.text)
assert response.status_code == 200
assert "admin-server-port" in response.text
def test_admin_ready_w_channel(defaultenv):
"Should get a success response from the admin server ready endpoint when the LISTEN channel is enabled"