-
Notifications
You must be signed in to change notification settings - Fork 5k
fix(rbac): access control[manual-only] #35213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7862707
91b110c
7a3cf72
ec66bb4
6a96166
85d41d3
17cbc31
bed17a6
30fe44f
073bc72
0fca3e0
33349e9
a4c7511
d6c8766
a50cd47
c1adda9
332d850
86a015c
f2b5b8e
0e6ef8f
4484f52
ef51541
ef08c1f
bffc3ca
c48181c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -236,6 +236,12 @@ def create_stable(self, db_name, stable_name, columns="ts TIMESTAMP, c1 INT", ta | |||||
| sql = f"CREATE STABLE {db_name}.{stable_name} ({columns}) TAGS ({tags})" | ||||||
| tdSql.execute(sql) | ||||||
| tdLog.info(f"Created stable: {db_name}.{stable_name}") | ||||||
|
|
||||||
| def create_rsma(self, db_name, stable_name): | ||||||
| # Create a RSMA | ||||||
| sql = f"CREATE RSMA {stable_name}_rsma on {db_name}.{stable_name} function(avg(c1)) interval(1m,5m)" | ||||||
|
kailixu marked this conversation as resolved.
|
||||||
| tdSql.execute(sql) | ||||||
| tdLog.info(f"Created RSMA: {db_name}.{stable_name}_rsma") | ||||||
|
|
||||||
| def create_table(self, db_name, table_name, columns="ts TIMESTAMP, c1 INT"): | ||||||
| # Create a normal table | ||||||
|
|
@@ -756,6 +762,8 @@ def do_rollup_database_privilege(self): | |||||
| db_name = "test_db" | ||||||
| user = "test_user" | ||||||
| self.create_database(db_name) | ||||||
| self.create_stable(db_name, "st1") | ||||||
| self.create_rsma(db_name, "st1") | ||||||
| self.create_user(user, pwd) | ||||||
| self.revoke_role("`SYSINFO_1`", user) #revoke default role | ||||||
|
|
||||||
|
|
@@ -772,9 +780,8 @@ def do_rollup_database_privilege(self): | |||||
|
|
||||||
| # Test: user can rollup database with privilege | ||||||
| self.login(user, pwd) | ||||||
| '''BUG20 | ||||||
| '''BUG20 ''' | ||||||
|
||||||
| '''BUG20 ''' | |
| # BUG20 |
Copilot
AI
Apr 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_priv_control() now comments out the majority of the privilege test suite (database/table/RBAC/system/etc.) and effectively only runs do_system_variable_privileges(). This significantly reduces automated coverage for RBAC/privilege behavior and makes regressions much harder to catch.
If the intent is "manual-only", consider gating the full suite behind an explicit flag (env var / CLI option) or marking individual tests as skipped, rather than commenting out the calls in the main test entrypoint.
Uh oh!
There was an error while loading. Please reload this page.