|
@@ -126,7 +126,7 @@ class TestMetastoreWithHadoop(BeeswaxSampleProvider):
|
|
|
response = self.client.get("/metastore/table/default/test/partitions", follow=True)
|
|
response = self.client.get("/metastore/table/default/test/partitions", follow=True)
|
|
|
assert_true("is not partitioned." in response.content)
|
|
assert_true("is not partitioned." in response.content)
|
|
|
|
|
|
|
|
- def test_browse_partitions_with_limit(self):
|
|
|
|
|
|
|
+ def test_browse_partitioned_table_with_limit(self):
|
|
|
# Limit to 90
|
|
# Limit to 90
|
|
|
finish = BROWSE_PARTITIONED_TABLE_LIMIT.set_for_testing("90")
|
|
finish = BROWSE_PARTITIONED_TABLE_LIMIT.set_for_testing("90")
|
|
|
try:
|
|
try:
|
|
@@ -136,6 +136,11 @@ class TestMetastoreWithHadoop(BeeswaxSampleProvider):
|
|
|
finally:
|
|
finally:
|
|
|
finish()
|
|
finish()
|
|
|
|
|
|
|
|
|
|
+ def test_browse_partitions(self):
|
|
|
|
|
+ response = self.client.get("/metastore/table/default/test_partitions/partitions/0", follow=True)
|
|
|
|
|
+ response = wait_for_query_to_finish(self.client, response, max=30.0)
|
|
|
|
|
+ assert_true(len(response.context['results']) > 10)
|
|
|
|
|
+
|
|
|
def test_drop_multi_tables(self):
|
|
def test_drop_multi_tables(self):
|
|
|
hql = """
|
|
hql = """
|
|
|
CREATE TABLE test_drop_1 (a int);
|
|
CREATE TABLE test_drop_1 (a int);
|