HBASE-8965 TestRemoteAdmin.testClusterStatus fails

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1503999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-07-17 05:33:27 +00:00
parent a75c904149
commit 07337ac9c8
1 changed files with 8 additions and 7 deletions

View File

@ -73,11 +73,13 @@ public class TestRemoteAdmin {
@Test
public void testCreateAnDeleteTable() throws Exception {
assertFalse(remoteAdmin.isTableAvailable(TABLE_1));
remoteAdmin.createTable(DESC_1);
assertTrue(remoteAdmin.isTableAvailable(TABLE_1));
remoteAdmin.deleteTable(TABLE_1);
assertFalse(remoteAdmin.isTableAvailable(TABLE_1));
final String tableName = "testCreateAnDeleteTable";
HTableDescriptor htd = new HTableDescriptor(tableName);
assertFalse(remoteAdmin.isTableAvailable(tableName));
remoteAdmin.createTable(htd);
assertTrue(remoteAdmin.isTableAvailable(tableName));
remoteAdmin.deleteTable(tableName);
assertFalse(remoteAdmin.isTableAvailable(tableName));
}
@Test
@ -135,5 +137,4 @@ public class TestRemoteAdmin {
assertTrue("Table " + TABLE_2 + " was not found by get request to '/'",
found);
}
}