ソースを参照

HUE-5162 [oozie] Add tests on creation of new workflow, coordinator and bundle

Romain Rigaux 9 年 前
コミット
36f9b25217

+ 15 - 0
apps/oozie/src/oozie/models2_tests.py

@@ -54,6 +54,21 @@ class TestEditor(OozieMockBase):
     self.user_not_me = User.objects.get(username="not_perm_user")
     self.user_not_me = User.objects.get(username="not_perm_user")
 
 
 
 
+  def test_create_new_workflow(self):
+    response = self.c.get(reverse('oozie:new_workflow'))
+    assert_equal(200, response.status_code)
+
+
+  def test_create_new_coordinator(self):
+    response = self.c.get(reverse('oozie:new_coordinator'))
+    assert_equal(200, response.status_code)
+
+
+  def test_create_new_bundle(self):
+    response = self.c.get(reverse('oozie:new_bundle'))
+    assert_equal(200, response.status_code)
+
+
   def test_parsing(self):
   def test_parsing(self):
     assert_equal(['input', 'LIMIT', 'out'], find_dollar_variables("""
     assert_equal(['input', 'LIMIT', 'out'], find_dollar_variables("""
 data = '$input';
 data = '$input';

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -961,7 +961,7 @@ from metadata.conf import has_navigator
 
 
   <script type="text/html" id="nav-search-autocomp-no-match">
   <script type="text/html" id="nav-search-autocomp-no-match">
     <div class="nav-autocomplete-item-link" style="height: 30px;">
     <div class="nav-autocomplete-item-link" style="height: 30px;">
-      <div style="font-size: 12px; margin: 6px 8px; color: #737373; font-style: italic;">${ _('No match found') }</div>
+      <div style="font-size: 12px; margin: 6px 8px; color: #737373; font-style: italic;">${ _('No recent match found') }</div>
     </div>
     </div>
   </script>
   </script>