mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
fix: RBAC for export for dashboard viewers (#17527)
* set out export * update test * use default dataset * update test * these test work * fix test * update * fix * fix test * make the test better
This commit is contained in:
@@ -378,9 +378,7 @@ class TestDashboardApi(SupersetTestCase, ApiOwnersTestCaseMixin, InsertChartMixi
|
||||
rv = self.get_assert_metric(uri, "info")
|
||||
data = json.loads(rv.data.decode("utf-8"))
|
||||
assert rv.status_code == 200
|
||||
assert "can_read" in data["permissions"]
|
||||
assert "can_write" in data["permissions"]
|
||||
assert len(data["permissions"]) == 2
|
||||
assert set(data["permissions"]) == {"can_read", "can_write", "can_export"}
|
||||
|
||||
@pytest.mark.usefixtures("load_world_bank_dashboard_with_slices")
|
||||
def test_get_dashboard_not_found(self):
|
||||
|
||||
Reference in New Issue
Block a user