geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject incubator-geode git commit: Use TemporaryFolder for deployment of jars
Date Tue, 03 May 2016 00:07:08 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-1255 50c512e8b -> 6034ee995


Use TemporaryFolder for deployment of jars


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/6034ee99
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6034ee99
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6034ee99

Branch: refs/heads/feature/GEODE-1255
Commit: 6034ee99578f6ade1a80cb790d3722645fec3492
Parents: 50c512e
Author: Kirk Lund <klund@apache.org>
Authored: Mon May 2 17:06:52 2016 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Mon May 2 17:06:52 2016 -0700

----------------------------------------------------------------------
 .../configuration/ClusterConfigurationDUnitTest.java  | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/6034ee99/geode-wan/src/test/java/com/gemstone/gemfire/management/internal/configuration/ClusterConfigurationDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-wan/src/test/java/com/gemstone/gemfire/management/internal/configuration/ClusterConfigurationDUnitTest.java
b/geode-wan/src/test/java/com/gemstone/gemfire/management/internal/configuration/ClusterConfigurationDUnitTest.java
index e1927c4..2be0112 100644
--- a/geode-wan/src/test/java/com/gemstone/gemfire/management/internal/configuration/ClusterConfigurationDUnitTest.java
+++ b/geode-wan/src/test/java/com/gemstone/gemfire/management/internal/configuration/ClusterConfigurationDUnitTest.java
@@ -120,6 +120,8 @@ public class ClusterConfigurationDUnitTest extends CliCommandTestBase
{
     addIgnoredException("could not get remote locator");
     addIgnoredException("EntryDestroyedException");
 
+    String workingDir = this.temporaryFolder.getRoot().getCanonicalPath() + File.separator;
+
     Object[] result = setup();
     final int locatorPort = (Integer) result[0];
     final String jmxHost = (String) result[1];
@@ -150,13 +152,17 @@ public class ClusterConfigurationDUnitTest extends CliCommandTestBase
{
     createRegion(DESTROY_REGION, RegionShortcut.REPLICATE, null);
     createIndex(INDEX1, "AAPL", REPLICATE_REGION, null);
     createIndex(INDEX2, "VMW", PARTITION_REGION, null);
-    createAndDeployJar(JAR1, null);
-    createAndDeployJar(JAR2, null);
-    createAndDeployJar(JAR3, null);
+
+    createAndDeployJar(workingDir + JAR1, null);
+    createAndDeployJar(workingDir + JAR2, null);
+    createAndDeployJar(workingDir + JAR3, null);
+
     createAsyncEventQueue(AsyncEventQueue1, "false", null, "1000", "1000",  null);
     destroyRegion(DESTROY_REGION);
     destroyIndex(INDEX2, PARTITION_REGION, null);
+
     undeployJar(JAR3, null);
+
     alterRuntime("true", "", "", "");
     createGatewayReceiver(receiverManualStart, "", gatewayReceiverStartPort, gatewayReceiverEndPort,
"20", "");
     createGatewaySender(gsId, batchSize, alertThreshold, batchTimeInterval, dispatcherThreads,
enableConflation, manualStart, maxQueueMemory, orderPolicy, parallel, rmDsId, socketBufferSize,
socketReadTimeout);
@@ -921,7 +927,7 @@ public class ClusterConfigurationDUnitTest extends CliCommandTestBase
{
   }
 
   private void createAndDeployJar(String jarName, String group) throws IOException {
-    File newDeployableJarFile = new File(jarName);
+    File newDeployableJarFile = new File(jarName); // TODO: this creates files in geode-wan
root
     this.classBuilder.writeJarFromName("ShareConfigClass", newDeployableJarFile);
     CommandStringBuilder csb = new CommandStringBuilder(CliStrings.DEPLOY);
     csb.addOption(CliStrings.DEPLOY__JAR, jarName);


Mime
View raw message