test: negative pgrst_db_pool_available in metrics
Proves the failure on https://github.com/PostgREST/postgrest/issues/4622. This doesn't require additional test infra, only nginx. Taking advantage of the `stream {}` context which is also compatible with unix socket besides TCP.
This commit is contained in:
committed by
Steve Chavez
parent
ae1e3d6c4d
commit
0be41a4941
@@ -10,6 +10,7 @@ CONFIGSDIR = BASEDIR / "configs"
|
||||
FIXTURES = yaml.load(
|
||||
(BASEDIR / "fixtures/fixtures.yaml").read_text(), Loader=yaml.Loader
|
||||
)
|
||||
NGINX_BIN = shutil.which("nginx")
|
||||
POSTGREST_BIN = shutil.which("postgrest")
|
||||
SECRET = "reallyreallyreallyreallyverysafe"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user