Parcourir la source

HUE-8330 [metastore] Update describe table tests to use POST and not GET now

Romain Rigaux il y a 7 ans
Parent
commit
291ec57b53

+ 3 - 3
apps/metastore/src/metastore/tests.py

@@ -154,18 +154,18 @@ class TestMetastoreWithHadoop(BeeswaxSampleProvider):
     assert_false('test_index' in data['tables'])
 
   def test_describe_view(self):
-    resp = self.client.get('/metastore/table/%s/myview?format=json' % self.db_name)
+    resp = self.client.post('/metastore/table/%s/myview' % self.db_name, data={'format': 'json'})
     assert_equal(200, resp.status_code, resp.content)
     data = json.loads(resp.content)
     assert_true(data['is_view'])
     assert_equal("myview", data['name'])
 
   def test_describe_partitions(self):
-    response = self.client.get("/metastore/table/%s/test_partitions?format=json" % self.db_name)
+    response = self.client.post("/metastore/table/%s/test_partitions" % self.db_name, data={'format': 'json'})
     data = json.loads(response.content)
     assert_equal(2, len(data['partition_keys']), data)
 
-    response = self.client.get("/metastore/table/%s/test_partitions/partitions?format=json" % self.db_name, follow=True)
+    response = self.client.post("/metastore/table/%s/test_partitions/partitions" % self.db_name, data={'format': 'json'}, follow=True)
     data = json.loads(response.content)
     partition_columns = [col for cols in data['partition_values_json'] for col in cols['columns']]
     assert_true("baz_one" in partition_columns)

+ 4 - 2
desktop/libs/indexer/src/indexer/templates/topics.mako

@@ -316,10 +316,12 @@ ${ assist.assistPanel() }
     </div>
 
     <div class="tab-pane margin-top-10" id="index-consumer">
-      <h4>${ _('Source') }</h4>
       <div class="row-fluid">
         <div>
-          <label class="control-label"><div>${ _('Type') }</div>
+          <label class="control-label"><div>${ _('Consumer 1') }</div>
+            Type
+          </label>
+          <label class="control-label"><div>${ _('Consumer 2') }</div>
             Type
           </label>
         </div>