nicob3y commented on code in PR #35662:
URL: https://github.com/apache/superset/pull/35662#discussion_r4222425259
##########
tests/integration_tests/test_jinja_context.py:
##########
@@ -226,3 +230,47 @@ def test_custom_template_processors_ignored(app_context:
AppContext) -> None:
template = "SELECT '$DATE()'"
tp = get_template_processor(database=maindb)
assert tp.process_template(template) == template
+
+
+def test_dataset_macro_access_filters(app_context: AppContext) -> None:
+ """Test that the dataset macro properly enforces datasource access security
+ by successfully resolving for a granted user and throwing an access
+ exception for a denied user."""
+ database = superset.utils.database.get_example_database()
+ table =
db.session.query(SqlaTable).filter_by(table_name="birth_names").one()
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]