-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for permissions on catalog tables
Test that if users are assigned privileges on tables in the catalog, these permissions are retained over updates.
- Loading branch information
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- This file and its contents are licensed under the Apache License 2.0. | ||
-- Please see the included NOTICE for copyright information and | ||
-- LICENSE-APACHE for a copy of the license. | ||
|
||
-- Catalog tables are occationally rewritten as part of updates, so | ||
-- this is to test that privileges are maintained over updates of the | ||
-- extension. We could verify that other properties (e.g., comments) | ||
-- are maintained here as well, but this is not something we use right | ||
-- now. | ||
|
||
GRANT SELECT ON ALL TABLES IN SCHEMA _timescaledb_catalog TO tsdbadmin; | ||
GRANT SELECT ON ALL TABLES IN SCHEMA _timescaledb_config TO tsdbadmin; | ||
GRANT SELECT ON ALL TABLES IN SCHEMA _timescaledb_internal TO tsdbadmin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
-- LICENSE-APACHE for a copy of the license. | ||
|
||
CREATE ROLE cagg_user; | ||
CREATE USER tsdbadmin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters