Prechádzať zdrojové kódy

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

Romain Rigaux 12 rokov pred
rodič
commit
dbc83b1c7b
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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: