This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit a8abe712a59eda7ee2a96ba6af066008c5083d6c Author: Mathew Wicks <[email protected]> AuthorDate: Mon Jun 15 20:47:32 2020 +1000 Include some missing RBAC roles on User and Viewer roles (#9133) --- airflow/www_rbac/security.py | 2 ++ tests/www_rbac/test_views.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/airflow/www_rbac/security.py b/airflow/www_rbac/security.py index 09f4c19..86d3501 100644 --- a/airflow/www_rbac/security.py +++ b/airflow/www_rbac/security.py @@ -106,6 +106,7 @@ class AirflowSecurityManager(SecurityManager, LoggingMixin): 'can_xcom', 'can_gantt', 'can_landing_times', + 'can_last_dagruns', 'can_duration', 'can_blocked', 'can_rendered', @@ -120,6 +121,7 @@ class AirflowSecurityManager(SecurityManager, LoggingMixin): 'can_add', 'can_edit', 'can_delete', + 'can_failed', 'can_paused', 'can_refresh', 'can_success', diff --git a/tests/www_rbac/test_views.py b/tests/www_rbac/test_views.py index 2102c6b..0739230 100644 --- a/tests/www_rbac/test_views.py +++ b/tests/www_rbac/test_views.py @@ -1815,7 +1815,7 @@ class TestDagACLView(TestBase): past="false", ) resp = self.client.post('failed', data=form) - self.check_content_in_response('Redirecting', resp, 302) + self.check_content_in_response('example_bash_operator', resp) def test_duration_success(self): url = 'duration?days=30&dag_id=example_bash_operator'
