add: --ready flag for postgrest healthcheck

The `--ready` flag is a wrapper around the admin server
`/ready` request. This is done through using an http client
library in postgrest.

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
Taimoor Zaeem
2025-09-28 18:01:10 -05:00
committed by Steve Chavez
parent ab2cd766c2
commit a9a1763328
10 changed files with 273 additions and 6 deletions
+2
View File
@@ -57,6 +57,7 @@ class PostgrestProcess:
admin: object
process: object
session: object
config: object
def read_stdout(self, nlines=1):
"Wait for line(s) on standard output."
@@ -143,6 +144,7 @@ def run(
process=process,
session=PostgrestSession(baseurl),
admin=PostgrestSession(adminurl),
config=env,
)
finally:
remaining_output = process.stdout.read()