accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [07/54] git commit: ACCUMULO-802 Updated ShellServer test with code that didnt fit in the patch correctly
Date Fri, 01 Nov 2013 02:00:08 GMT
ACCUMULO-802 Updated ShellServer test with code that didnt fit in the patch correctly


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/f287f3f1
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/f287f3f1
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/f287f3f1

Branch: refs/heads/ACCUMULO-802
Commit: f287f3f197e33133ce408eec2be9803d70ff6882
Parents: 8e1b509
Author: Sean Hickey <tallirishllama@gmail.com>
Authored: Wed Jul 10 09:20:35 2013 -0400
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Thu Oct 31 21:11:25 2013 -0400

----------------------------------------------------------------------
 .../org/apache/accumulo/test/ShellServerIT.java | 23 ++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/f287f3f1/test/src/test/java/org/apache/accumulo/test/ShellServerIT.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/ShellServerIT.java b/test/src/test/java/org/apache/accumulo/test/ShellServerIT.java
index 7f094c1..cc46d72 100644
--- a/test/src/test/java/org/apache/accumulo/test/ShellServerIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/ShellServerIT.java
@@ -825,8 +825,8 @@ public class ShellServerIT extends SimpleMacIT {
     String err = exec("user NoSuchUser", false);
     assertTrue(err.contains("BAD_CREDENTIALS for user NoSuchUser"));
   }
-
-  @Test(timeout = 30 * 1000)
+  
+  @Test(timeout = 30000)
   public void tablenamespaces() throws Exception {
     exec("namespaces", true, Constants.DEFAULT_TABLE_NAMESPACE, true);
     exec("createnamespace thing1", true);
@@ -843,9 +843,24 @@ public class ShellServerIT extends SimpleMacIT {
     exec("y");
     exec("namespaces", true, "thing2", true);
     
+    exec("du -tn thing2", true, "thing2.thingy", true);
+    
+    exec("offline -tn thing2", true);
+    exec("online -tn thing2", true);
+    
+    exec("config -tn thing2 -s table.file.max=44444", true);
+    exec("config -tn thing2", true, "44444", true);
+    exec("config -t thing2.thingy", true, "44444", true);
+    exec("config -t thing2.thingy -s table.file.max=55555", true);
+    exec("config -t thing2.thingy", true, "55555", true);
+    
+    exec("createnamespace thing3 -cc thing2", true);
+    exec("config -tn thing3", true, "44444", true);
+    exec("createnamespace thing4 -ctc thing2.thingy", true);
+    exec("config -tn thing4", true, "55555", true);
+    
     exec("deletenamespace -f thing2", true);
-    namespaces = exec("namespaces");
-    assertTrue(!namespaces.contains("thing2"));
+    exec("namespaces", true, "thing2", false);
     exec("tables", true, "thing2.thingy", false);
   }
   


Mime
View raw message