Skip to content
Permalink
Browse files
Fix integration tests (#40)
  • Loading branch information
mikewalch committed Mar 27, 2019
1 parent 3f3586b commit 310c1da6cf086adf18eb318badb25de2e6e4f641
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
@@ -34,6 +34,7 @@
import java.util.Map.Entry;
import java.util.concurrent.TimeUnit;

import org.apache.accumulo.core.client.Accumulo;
import org.apache.accumulo.core.client.AccumuloClient;
import org.apache.accumulo.core.client.BatchScanner;
import org.apache.accumulo.core.client.BatchWriter;
@@ -101,7 +102,7 @@ public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoo

@Before
public void setupTest() throws Exception {
c = createAccumuloClient();
c = Accumulo.newClient().from(getClientProps()).build();
String user = c.whoami();
String instance = getClientInfo().getInstanceName();
String keepers = getClientInfo().getZooKeepers();
@@ -29,6 +29,7 @@
import java.util.List;
import java.util.Map.Entry;

import org.apache.accumulo.core.client.Accumulo;
import org.apache.accumulo.core.client.AccumuloClient;
import org.apache.accumulo.core.client.BatchWriter;
import org.apache.accumulo.core.client.BatchWriterConfig;
@@ -76,7 +77,7 @@ public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoo

@Before
public void setupInstance() throws Exception {
client = createAccumuloClient();
client = Accumulo.newClient().from(getClientProps()).build();
tableName = getUniqueNames(1)[0];
client.securityOperations().changeUserAuthorizations(client.whoami(), AUTHS);
}
@@ -25,6 +25,7 @@
import java.util.List;
import java.util.Map.Entry;

import org.apache.accumulo.core.client.Accumulo;
import org.apache.accumulo.core.client.AccumuloClient;
import org.apache.accumulo.core.client.AccumuloException;
import org.apache.accumulo.core.client.AccumuloSecurityException;
@@ -68,7 +69,7 @@ public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoo

@Before
public void setupInstance() throws Exception {
client = createAccumuloClient();
client = Accumulo.newClient().from(getClientProps()).build();
tableName = getUniqueNames(1)[0];
client.securityOperations().changeUserAuthorizations(client.whoami(), AUTHS);
}

0 comments on commit 310c1da

Please sign in to comment.