Explorar o código

[jobbrowser] Fix tests when run in minicluster with no hue-plugin

Romain Rigaux %!s(int64=12) %!d(string=hai) anos
pai
achega
dbc83b1c7b
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      apps/jobbrowser/src/jobbrowser/tests.py

+ 3 - 1
apps/jobbrowser/src/jobbrowser/tests.py

@@ -422,7 +422,9 @@ class TestJobBrowserWithHadoop(unittest.TestCase, OozieServerProvider):
     # Test job single logs page
     response = self.client.get('/jobbrowser/jobs/%s/single_logs' % (hadoop_job_id))
     assert_true('syslog' in response.content)
-    assert_true('<div class="tab-pane active" id="logsSysLog">' in response.content, response.content)
+    assert_true('<div class="tab-pane active" id="logsSysLog">' in response.content or
+                '<div class="tab-pane active" id="logsStdOut">' in response.content, # For jenkins
+                response.content)
 
 
 class TestMapReduce2: