Browse Source

HUE-6157 [core] Fix banner and Impala query limit in live-cluster tests

Jenny Kim 8 years ago
parent
commit
f61ee55

+ 1 - 1
apps/impala/src/impala/test_impala_flags.py

@@ -56,7 +56,7 @@ def test_impala_flags():
     assert_equal(impala_flags.get_authorized_proxy_user_config(), 'hue=*')
 
     # From Config
-    assert_equal(conf.QUERYCACHE_ROWS.get(), 100000)
+    assert_equal(conf.QUERYCACHE_ROWS.get(), 50000)
     assert_equal(conf.IMPERSONATION_ENABLED.get(), True)
   finally:
     impala_flags.reset()

+ 4 - 1
desktop/core/src/desktop/tests.py

@@ -647,7 +647,10 @@ def test_last_access_time():
 
 
 def test_ui_customizations():
-  custom_message = 'test ui customization'
+  if desktop.conf.is_lb_enabled():  # Assumed that live cluster connects to direct Hue
+    custom_message = 'You are accessing a non-optimized Hue, please switch to one of the available addresses'
+  else:
+    custom_message = 'test ui customization'
   reset = (
     desktop.conf.CUSTOM.BANNER_TOP_HTML.set_for_testing(custom_message),
     desktop.conf.CUSTOM.LOGIN_SPLASH_HTML.set_for_testing(custom_message),

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

@@ -17,6 +17,7 @@
 
 import logging
 
+from nose.plugins.skip import SkipTest
 from nose.tools import assert_equal
 
 from django.core.cache import cache