SLIDER-639 workarounds for windows
diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy
index d25396d..164f609 100644
--- a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy
+++ b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy
@@ -44,6 +44,8 @@
@Test
public void testStandaloneAMDestroy() throws Throwable {
+ skipOnWindows()
+
String clustername = createMiniCluster("", configuration, 1, true)
describe "create a Standalone AM, stop it, try to create" +
diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAgentAM.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAgentAM.groovy
index 93547f1..c31e9d3 100644
--- a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAgentAM.groovy
+++ b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAgentAM.groovy
@@ -129,7 +129,8 @@
sleep(5000)
//create another AM
- launcher = createStandaloneAM(clustername, true, true)
+ def newcluster = clustername + "2"
+ launcher = createStandaloneAM(newcluster, true, true)
client = launcher.service
ApplicationId i2AppID = client.applicationId
@@ -140,13 +141,13 @@
//but when we look up an instance, we get the new App ID
ApplicationReport instance2 = serviceRegistryClient.findInstance(
- clustername)
+ newcluster)
assert i2AppID == instance2.applicationId
describe("attempting to create instance #3")
//now try to create instance #3, and expect an in-use failure
try {
- createStandaloneAM(clustername, false, true)
+ createStandaloneAM(newcluster, false, true)
fail("expected a failure, got a standalone AM")
} catch (SliderException e) {
assertFailureClusterInUse(e);
@@ -160,7 +161,7 @@
describe("Stopping instance #2")
//now stop that cluster
- assert 0 == clusterActionFreeze(client, clustername)
+ assert 0 == clusterActionFreeze(client, newcluster)
logApplications(client.listSliderInstances(username))
@@ -173,11 +174,11 @@
ApplicationReport instance3 = serviceRegistryClient.findInstance(
- clustername)
+ newcluster)
assert instance3.yarnApplicationState >= YarnApplicationState.FINISHED
// destroy it
- client.actionDestroy(clustername)
+ client.actionDestroy(newcluster)
}