Skip to content

Commit 068515f

Browse files
Remove unused role management methods from streamlit tests
- Remove create_test_role() and cleanup_test_role() methods - These methods required SECURITYADMIN privileges and were causing CI failures - No longer needed since tests now use existing PUBLIC role
1 parent 696e526 commit 068515f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests_integration/testing_utils/streamlit_utils.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,6 @@ def assert_proper_url_is_returned(
183183
assert message.startswith("Streamlit successfully deployed and available under")
184184
assert message.endswith(create_expected_url_suffix(entity_id, session))
185185

186-
def create_test_role(self, role_name: str):
187-
self.setup.sql_test_helper.execute_single_sql(
188-
f"set user = (select current_user()); "
189-
f"create role {role_name}; "
190-
f"grant role {role_name} to user IDENTIFIER($USER)"
191-
)
192-
193-
def cleanup_test_role(self, role_name: str):
194-
self.setup.sql_test_helper.execute_single_sql(
195-
f"DROP ROLE IF EXISTS {role_name}"
196-
)
197-
198186
def verify_grants_applied(self, entity_id: str, test_role: str):
199187
try:
200188
self.setup.sql_test_helper.execute_single_sql(f"USE ROLE {test_role}")

0 commit comments

Comments
 (0)