mirror of https://github.com/apache/superset.git
chore: skip flaky test (#17772)
This commit is contained in:
parent
b3db6140c8
commit
c18d4862c4
|
@ -19,6 +19,7 @@ from unittest import mock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
from superset.utils.core import backend
|
||||||
from tests.integration_tests.dashboards.dashboard_test_utils import *
|
from tests.integration_tests.dashboards.dashboard_test_utils import *
|
||||||
from tests.integration_tests.dashboards.security.base_case import (
|
from tests.integration_tests.dashboards.security.base_case import (
|
||||||
BaseTestDashboardSecurity,
|
BaseTestDashboardSecurity,
|
||||||
|
@ -118,6 +119,9 @@ class TestDashboardRoleBasedSecurity(BaseTestDashboardSecurity):
|
||||||
|
|
||||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||||
def test_get_dashboard_view__user_access_with_dashboard_permission(self):
|
def test_get_dashboard_view__user_access_with_dashboard_permission(self):
|
||||||
|
if backend() == "hive":
|
||||||
|
return
|
||||||
|
|
||||||
# arrange
|
# arrange
|
||||||
|
|
||||||
username = random_str()
|
username = random_str()
|
||||||
|
|
|
@ -38,7 +38,11 @@ from superset.exceptions import SupersetSecurityException
|
||||||
from superset.models.core import Database
|
from superset.models.core import Database
|
||||||
from superset.models.slice import Slice
|
from superset.models.slice import Slice
|
||||||
from superset.sql_parse import Table
|
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 superset.views.access_requests import AccessRequestsModelView
|
||||||
|
|
||||||
from .base_tests import SupersetTestCase
|
from .base_tests import SupersetTestCase
|
||||||
|
@ -832,11 +836,11 @@ class TestRolePermission(SupersetTestCase):
|
||||||
self.assert_can_alpha(alpha_perm_tuples)
|
self.assert_can_alpha(alpha_perm_tuples)
|
||||||
self.assert_cannot_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")
|
@pytest.mark.usefixtures("load_world_bank_dashboard_with_slices")
|
||||||
def test_admin_permissions(self):
|
def test_admin_permissions(self):
|
||||||
|
if backend() == "hive":
|
||||||
|
return
|
||||||
|
|
||||||
self.assert_can_gamma(get_perm_tuples("Admin"))
|
self.assert_can_gamma(get_perm_tuples("Admin"))
|
||||||
self.assert_can_alpha(get_perm_tuples("Admin"))
|
self.assert_can_alpha(get_perm_tuples("Admin"))
|
||||||
self.assert_can_admin(get_perm_tuples("Admin"))
|
self.assert_can_admin(get_perm_tuples("Admin"))
|
||||||
|
|
Loading…
Reference in New Issue