Browse Source

HUE-8846 [ci] Tag series of metadata inegration tests

Romain 6 years ago
parent
commit
58458a1c80

+ 1 - 0
.circleci/config.yml

@@ -35,6 +35,7 @@ jobs:
             # . venv/bin/activate
             # pip install -r requirements.txt
             # TODO: here should copy from repo to the local Hue
+            # Then do 'make npm-install'
             echo 'ok'
 
       - save_cache:

+ 1 - 0
apps/impala/src/impala/tests.py

@@ -106,6 +106,7 @@ class TestMockedImpala:
 
 
 class TestImpalaIntegration:
+  integration = True
 
   @classmethod
   def setup_class(cls):

+ 2 - 0
desktop/core/src/desktop/management/commands/test.py

@@ -145,6 +145,8 @@ class Command(BaseCommand):
       nose_args = args + all_apps
     elif args[0] == "fast":
       nose_args = args + all_apps + ["-a", "!requires_hadoop"]
+    elif args[0] == "unit":
+      nose_args = args + all_apps + ["-a", "!integration"]
     elif args[0] == "windmill":
       args = args[1:]
       ret = test_windmill.Command().handle(*args)

+ 1 - 1
desktop/libs/aws/src/aws/s3/s3test_utils.py

@@ -39,6 +39,7 @@ def generate_id(size=6, chars=string.ascii_uppercase + string.digits):
 
 
 class S3TestBase(unittest.TestCase):
+  integration = True
 
   @classmethod
   def setUpClass(cls):
@@ -97,4 +98,3 @@ class S3TestBase(unittest.TestCase):
       yield paths
     finally:
       cls.clean_up(*paths)
-

+ 2 - 1
desktop/libs/indexer/src/indexer/indexers/morphline_tests.py

@@ -232,8 +232,9 @@ class TestIndexer():
 
     self._test_generate_field_operation_morphline(find_replace_dict)
 
+  @attr('integration')
   def test_end_to_end(self):
-    if not is_live_cluster() or True: # Skipping as requires morplines libs to be setup
+    if not is_live_cluster(): # Skipping as requires morplines libs to be setup
       raise SkipTest()
 
     cluster = shared_cluster()

+ 1 - 0
desktop/libs/metadata/src/metadata/catalog/navigator_client_tests.py

@@ -46,6 +46,7 @@ class MockedRoot():
 
 
 class NavigatorClientTest:
+  integration = True
 
   @classmethod
   def setup_class(cls):

+ 1 - 0
desktop/libs/metadata/src/metadata/catalog_tests.py

@@ -40,6 +40,7 @@ LOG = logging.getLogger(__name__)
 
 
 class TestNavigator(object):
+  integration = True
 
   @classmethod
   def setup_class(cls):

+ 1 - 0
desktop/libs/metadata/src/metadata/optimizer_client_tests.py

@@ -36,6 +36,7 @@ LOG = logging.getLogger(__name__)
 
 
 class BaseTestOptimizerApi(object):
+  integration = True
   UPLOADED = False
   DATABASE = 'db1'