|
|
@@ -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)
|