Переглянути джерело

HUE-8758 [connector] Provide connector name and dialect in config check

Romain 5 роки тому
батько
коміт
7bea5497ab

+ 1 - 1
desktop/libs/notebook/src/notebook/conf.py

@@ -344,7 +344,7 @@ def config_validator(user):
         LOG.exception(msg)
         res.append(
           (
-            connector,
+            '%(nice_name)s - %(dialect)s (%(type)s)' % interpreter,
             _(msg) + (' %s' % trace[:100] + ('...' if len(trace) > 50 else ''))
           )
         )

+ 1 - 1
desktop/libs/notebook/src/notebook/conf_tests.py

@@ -138,5 +138,5 @@ class TestCheckConfig():
       warnings = config_validator(user=self.user)
 
       assert_true(warnings, warnings)
-      assert_equal('hive-1', warnings[0][0])
+      assert_equal('Hive - hive (hive-1)', warnings[0][0])
       assert_true('Testing the connector connection failed' in warnings[0][1], warnings)