@@ -7,55 +7,55 @@ CREATE ROLE postgrest_test_author;
7
7
GRANT postgrest_test_anonymous, postgrest_test_default_role, postgrest_test_author TO :USER;
8
8
9
9
-- reloadable config options for io tests
10
- ALTER ROLE postgrest_test_authenticator SET pgrst." jwt_aud" = ' https://example.org' ;
11
- ALTER ROLE postgrest_test_authenticator SET pgrst." openapi_server_proxy_uri" = ' https://example.org/api' ;
12
- ALTER ROLE postgrest_test_authenticator SET pgrst." raw_media_types" = ' application/vnd.pgrst.db-config' ;
13
- ALTER ROLE postgrest_test_authenticator SET pgrst." jwt_secret" = ' REALLYREALLYREALLYREALLYVERYSAFE' ;
14
- ALTER ROLE postgrest_test_authenticator SET pgrst." jwt_secret_is_base64" = ' true' ;
15
- ALTER ROLE postgrest_test_authenticator SET pgrst." jwt_role_claim_key" = ' ."a"."role"' ;
16
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_tx_end" = ' commit-allow-override' ;
17
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_schemas" = ' test, tenant1, tenant2' ;
18
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_root_spec" = ' root' ;
19
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_prepared_statements" = ' false' ;
20
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_pre_request" = ' test.custom_headers' ;
21
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_max_rows" = ' 1000' ;
22
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_extra_search_path" = ' public, extensions' ;
10
+ ALTER ROLE postgrest_test_authenticator SET pgrst .jwt_aud = ' https://example.org' ;
11
+ ALTER ROLE postgrest_test_authenticator SET pgrst .openapi_server_proxy_uri = ' https://example.org/api' ;
12
+ ALTER ROLE postgrest_test_authenticator SET pgrst .raw_media_types = ' application/vnd.pgrst.db-config' ;
13
+ ALTER ROLE postgrest_test_authenticator SET pgrst .jwt_secret = ' REALLYREALLYREALLYREALLYVERYSAFE' ;
14
+ ALTER ROLE postgrest_test_authenticator SET pgrst .jwt_secret_is_base64 = ' true' ;
15
+ ALTER ROLE postgrest_test_authenticator SET pgrst .jwt_role_claim_key = ' ."a"."role"' ;
16
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_tx_end = ' commit-allow-override' ;
17
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_schemas = ' test, tenant1, tenant2' ;
18
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_root_spec = ' root' ;
19
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_prepared_statements = ' false' ;
20
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_pre_request = ' test.custom_headers' ;
21
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_max_rows = ' 1000' ;
22
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_extra_search_path = ' public, extensions' ;
23
23
24
24
-- override with database specific setting
25
- ALTER ROLE postgrest_test_authenticator IN DATABASE :DBNAME SET pgrst." jwt_secret" = ' OVERRIDEREALLYREALLYREALLYREALLYVERYSAFE' ;
26
- ALTER ROLE postgrest_test_authenticator IN DATABASE :DBNAME SET pgrst." db_extra_search_path" = ' public, extensions, private' ;
25
+ ALTER ROLE postgrest_test_authenticator IN DATABASE :DBNAME SET pgrst .jwt_secret = ' OVERRIDEREALLYREALLYREALLYREALLYVERYSAFE' ;
26
+ ALTER ROLE postgrest_test_authenticator IN DATABASE :DBNAME SET pgrst .db_extra_search_path = ' public, extensions, private' ;
27
27
28
28
-- other database settings that should be ignored
29
29
DROP DATABASE IF EXISTS other;
30
30
CREATE DATABASE other ;
31
- ALTER ROLE postgrest_test_authenticator IN DATABASE other SET pgrst." db_max_rows" = ' 1111' ;
31
+ ALTER ROLE postgrest_test_authenticator IN DATABASE other SET pgrst .db_max_rows = ' 1111' ;
32
32
33
33
-- non-reloadable configs for io tests
34
- ALTER ROLE postgrest_test_authenticator SET pgrst." server_host" = ' ignored' ;
35
- ALTER ROLE postgrest_test_authenticator SET pgrst." server_port" = ' ignored' ;
36
- ALTER ROLE postgrest_test_authenticator SET pgrst." server_unix_socket" = ' ignored' ;
37
- ALTER ROLE postgrest_test_authenticator SET pgrst." server_unix_socket_mode" = ' ignored' ;
38
- ALTER ROLE postgrest_test_authenticator SET pgrst." log_level" = ' ignored' ;
39
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_anon_role" = ' ignored' ;
40
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_uri" = ' postgresql://ignored' ;
41
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_channel_enabled" = ' ignored' ;
42
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_channel" = ' ignored' ;
43
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_pool" = ' ignored' ;
44
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_pool_timeout" = ' ignored' ;
45
- ALTER ROLE postgrest_test_authenticator SET pgrst." db_load_guc_config" = ' ignored' ;
34
+ ALTER ROLE postgrest_test_authenticator SET pgrst .server_host = ' ignored' ;
35
+ ALTER ROLE postgrest_test_authenticator SET pgrst .server_port = ' ignored' ;
36
+ ALTER ROLE postgrest_test_authenticator SET pgrst .server_unix_socket = ' ignored' ;
37
+ ALTER ROLE postgrest_test_authenticator SET pgrst .server_unix_socket_mode = ' ignored' ;
38
+ ALTER ROLE postgrest_test_authenticator SET pgrst .log_level = ' ignored' ;
39
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_anon_role = ' ignored' ;
40
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_uri = ' postgresql://ignored' ;
41
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_channel_enabled = ' ignored' ;
42
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_channel = ' ignored' ;
43
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_pool = ' ignored' ;
44
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_pool_timeout = ' ignored' ;
45
+ ALTER ROLE postgrest_test_authenticator SET pgrst .db_load_guc_config = ' ignored' ;
46
46
47
47
-- other authenticator reloadable config options for io tests
48
48
CREATE ROLE other_authenticator LOGIN NOINHERIT;
49
- ALTER ROLE other_authenticator SET pgrst." jwt_aud" = ' https://otherexample.org' ;
50
- ALTER ROLE other_authenticator SET pgrst." openapi_server_proxy_uri" = ' https://otherexample.org/api' ;
51
- ALTER ROLE other_authenticator SET pgrst." raw_media_types" = ' application/vnd.pgrst.other-db-config' ;
52
- ALTER ROLE other_authenticator SET pgrst." jwt_secret" = ' ODERREALLYREALLYREALLYREALLYVERYSAFE' ;
53
- ALTER ROLE other_authenticator SET pgrst." jwt_secret_is_base64" = ' true' ;
54
- ALTER ROLE other_authenticator SET pgrst." jwt_role_claim_key" = ' ."other"."role"' ;
55
- ALTER ROLE other_authenticator SET pgrst." db_tx_end" = ' rollback-allow-override' ;
56
- ALTER ROLE other_authenticator SET pgrst." db_schemas" = ' test, other_tenant1, other_tenant2' ;
57
- ALTER ROLE other_authenticator SET pgrst." db_root_spec" = ' other_root' ;
58
- ALTER ROLE other_authenticator SET pgrst." db_prepared_statements" = ' false' ;
59
- ALTER ROLE other_authenticator SET pgrst." db_pre_request" = ' test.other_custom_headers' ;
60
- ALTER ROLE other_authenticator SET pgrst." db_max_rows" = ' 100' ;
61
- ALTER ROLE other_authenticator SET pgrst." db_extra_search_path" = ' public, extensions, other' ;
49
+ ALTER ROLE other_authenticator SET pgrst .jwt_aud = ' https://otherexample.org' ;
50
+ ALTER ROLE other_authenticator SET pgrst .openapi_server_proxy_uri = ' https://otherexample.org/api' ;
51
+ ALTER ROLE other_authenticator SET pgrst .raw_media_types = ' application/vnd.pgrst.other-db-config' ;
52
+ ALTER ROLE other_authenticator SET pgrst .jwt_secret = ' ODERREALLYREALLYREALLYREALLYVERYSAFE' ;
53
+ ALTER ROLE other_authenticator SET pgrst .jwt_secret_is_base64 = ' true' ;
54
+ ALTER ROLE other_authenticator SET pgrst .jwt_role_claim_key = ' ."other"."role"' ;
55
+ ALTER ROLE other_authenticator SET pgrst .db_tx_end = ' rollback-allow-override' ;
56
+ ALTER ROLE other_authenticator SET pgrst .db_schemas = ' test, other_tenant1, other_tenant2' ;
57
+ ALTER ROLE other_authenticator SET pgrst .db_root_spec = ' other_root' ;
58
+ ALTER ROLE other_authenticator SET pgrst .db_prepared_statements = ' false' ;
59
+ ALTER ROLE other_authenticator SET pgrst .db_pre_request = ' test.other_custom_headers' ;
60
+ ALTER ROLE other_authenticator SET pgrst .db_max_rows = ' 100' ;
61
+ ALTER ROLE other_authenticator SET pgrst .db_extra_search_path = ' public, extensions, other' ;
0 commit comments