Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/io/fixtures/roles.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ ALTER ROLE postgrest_test_repeatable_read SET default_transaction_isolation = 'R
ALTER ROLE postgrest_test_w_superuser_settings SET log_min_duration_statement = 1;
ALTER ROLE postgrest_test_w_superuser_settings SET log_min_messages = 'fatal';

ALTER ROLE postgrest_test_anonymous SET statement_timeout TO '2s';
ALTER ROLE postgrest_test_anonymous SET statement_timeout TO '5s';
ALTER ROLE postgrest_test_author SET statement_timeout TO '10s';
6 changes: 3 additions & 3 deletions test/io/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,11 +920,11 @@ def test_role_settings(defaultenv):
with run(env=env) as postgrest:
# statement_timeout for postgrest_test_anonymous
response = postgrest.session.get("/rpc/get_guc_value?name=statement_timeout")
assert response.text == '"2s"'
assert response.text == '"5s"'

# reload statement_timeout with NOTIFY
response = postgrest.session.post(
"/rpc/change_role_statement_timeout", data={"timeout": "5s"}
"/rpc/change_role_statement_timeout", data={"timeout": "8s"}
)
assert response.text == ""
assert response.status_code == 204
Expand All @@ -935,7 +935,7 @@ def test_role_settings(defaultenv):
sleep_until_postgrest_config_reload()

response = postgrest.session.get("/rpc/get_guc_value?name=statement_timeout")
assert response.text == '"5s"'
assert response.text == '"8s"'

# statement_timeout for postgrest_test_author
headers = jwtauthheader({"role": "postgrest_test_author"}, SECRET)
Expand Down