accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1428086 - in /accumulo/trunk: core/src/test/java/org/apache/accumulo/core/client/mock/MockConnectorTest.java test/src/test/java/org/apache/accumulo/test/MiniAccumuloClusterTest.java
Date Wed, 02 Jan 2013 22:12:16 GMT
Author: vines
Date: Wed Jan  2 22:12:16 2013
New Revision: 1428086

URL: http://svn.apache.org/viewvc?rev=1428086&view=rev
Log:
ACCUMULO-677 - I broke the build


Modified:
    accumulo/trunk/core/src/test/java/org/apache/accumulo/core/client/mock/MockConnectorTest.java
    accumulo/trunk/test/src/test/java/org/apache/accumulo/test/MiniAccumuloClusterTest.java

Modified: accumulo/trunk/core/src/test/java/org/apache/accumulo/core/client/mock/MockConnectorTest.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/core/src/test/java/org/apache/accumulo/core/client/mock/MockConnectorTest.java?rev=1428086&r1=1428085&r2=1428086&view=diff
==============================================================================
--- accumulo/trunk/core/src/test/java/org/apache/accumulo/core/client/mock/MockConnectorTest.java
(original)
+++ accumulo/trunk/core/src/test/java/org/apache/accumulo/core/client/mock/MockConnectorTest.java
Wed Jan  2 22:12:16 2013
@@ -84,6 +84,8 @@ public class MockConnectorTest {
   public void testChangeAuths() throws Exception {
     Connector c = new MockConnector("root", new MockInstance());
     c.securityOperations().createUser("greg", new byte[] {});
+    assertTrue(c.securityOperations().getUserAuthorizations("greg").isEmpty());
+    c.securityOperations().changeUserAuthorizations("greg", new Authorizations("A".getBytes()));
     assertTrue(c.securityOperations().getUserAuthorizations("greg").contains("A".getBytes()));
     c.securityOperations().changeUserAuthorizations("greg", new Authorizations("X", "Y",
"Z"));
     assertTrue(c.securityOperations().getUserAuthorizations("greg").contains("X".getBytes()));

Modified: accumulo/trunk/test/src/test/java/org/apache/accumulo/test/MiniAccumuloClusterTest.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/test/src/test/java/org/apache/accumulo/test/MiniAccumuloClusterTest.java?rev=1428086&r1=1428085&r2=1428086&view=diff
==============================================================================
--- accumulo/trunk/test/src/test/java/org/apache/accumulo/test/MiniAccumuloClusterTest.java
(original)
+++ accumulo/trunk/test/src/test/java/org/apache/accumulo/test/MiniAccumuloClusterTest.java
Wed Jan  2 22:12:16 2013
@@ -66,6 +66,7 @@ public class MiniAccumuloClusterTest {
     conn.tableOperations().create("table1");
     
     conn.securityOperations().createUser("user1", "pass1".getBytes());
+    conn.securityOperations().changeUserAuthorizations("user1", new Authorizations("A", "B"));
     conn.securityOperations().grantTablePermission("user1", "table1", TablePermission.WRITE);
     conn.securityOperations().grantTablePermission("user1", "table1", TablePermission.READ);
     



Mime
View raw message