Restrict db settings to current db and global
Global settings are overriden by database specific settings if they share common ones.
This commit is contained in:
committed by
Steve Chavez
parent
e4516ab606
commit
6750a5c44d
@@ -309,10 +309,10 @@ def test_read_db_setting(defaultenv):
|
||||
"PGRST_DB_LOAD_GUC_CONFIG": "true",
|
||||
}
|
||||
with run(env=env) as postgrest:
|
||||
uri = "/rpc/get_guc_value?name=pgrst.db_max_rows"
|
||||
uri = "/rpc/get_guc_value?name=pgrst.jwt_secret"
|
||||
response = postgrest.session.get(uri)
|
||||
|
||||
assert response.text == '"1000"'
|
||||
assert response.text == '"OVERRIDEREALLYREALLYREALLYREALLYVERYSAFE"'
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user