From c18d4862c4a1c8cd9310b0f850c78181af956f75 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Wed, 15 Dec 2021 17:06:40 -0800 Subject: [PATCH] chore: skip flaky test (#17772) --- .../dashboards/security/security_rbac_tests.py | 4 ++++ tests/integration_tests/security_tests.py | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/integration_tests/dashboards/security/security_rbac_tests.py b/tests/integration_tests/dashboards/security/security_rbac_tests.py index bb97a35129fe8..2a8ab9921f496 100644 --- a/tests/integration_tests/dashboards/security/security_rbac_tests.py +++ b/tests/integration_tests/dashboards/security/security_rbac_tests.py @@ -19,6 +19,7 @@ import pytest +from superset.utils.core import backend from tests.integration_tests.dashboards.dashboard_test_utils import * from tests.integration_tests.dashboards.security.base_case import ( BaseTestDashboardSecurity, @@ -118,6 +119,9 @@ def test_get_dashboard_view__user_with_dashboard_permission_can_not_access_draft @pytest.mark.usefixtures("load_birth_names_dashboard_with_slices") def test_get_dashboard_view__user_access_with_dashboard_permission(self): + if backend() == "hive": + return + # arrange username = random_str() diff --git a/tests/integration_tests/security_tests.py b/tests/integration_tests/security_tests.py index 158b31662c937..e96ed67456b56 100644 --- a/tests/integration_tests/security_tests.py +++ b/tests/integration_tests/security_tests.py @@ -38,7 +38,11 @@ from superset.models.core import Database from superset.models.slice import Slice from superset.sql_parse import Table -from superset.utils.core import get_example_database, get_example_default_schema +from superset.utils.core import ( + backend, + get_example_database, + get_example_default_schema, +) from superset.views.access_requests import AccessRequestsModelView from .base_tests import SupersetTestCase @@ -832,11 +836,11 @@ def test_alpha_permissions(self): self.assert_can_alpha(alpha_perm_tuples) self.assert_cannot_alpha(alpha_perm_tuples) - @unittest.skipUnless( - SupersetTestCase.is_module_installed("pydruid"), "pydruid not installed" - ) @pytest.mark.usefixtures("load_world_bank_dashboard_with_slices") def test_admin_permissions(self): + if backend() == "hive": + return + self.assert_can_gamma(get_perm_tuples("Admin")) self.assert_can_alpha(get_perm_tuples("Admin")) self.assert_can_admin(get_perm_tuples("Admin"))