This is an automated email from the ASF dual-hosted git repository.
jensdeppe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 73965a8 GEODE-5212: Ensure that paths on Windows don't end up with
spaces (#2100)
73965a8 is described below
commit 73965a8a8201477d40062c24a79fa7b53d594845
Author: Jens Deppe <[email protected]>
AuthorDate: Thu Jul 5 08:21:24 2018 -0700
GEODE-5212: Ensure that paths on Windows don't end up with spaces (#2100)
Signed-off-by: Jens Deppe <[email protected]>
---
.../management/internal/cli/commands/StatusLocatorRealGfshTest.java | 4 ++--
.../main/java/org/apache/geode/test/junit/rules/gfsh/GfshScript.java | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git
a/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/StatusLocatorRealGfshTest.java
b/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/StatusLocatorRealGfshTest.java
index 7e7b2bd..dfad50e 100644
---
a/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/StatusLocatorRealGfshTest.java
+++
b/geode-assembly/src/test/java/org/apache/geode/management/internal/cli/commands/StatusLocatorRealGfshTest.java
@@ -36,9 +36,9 @@ public class StatusLocatorRealGfshTest {
@Test
public void statusLocatorFailsWhenNotConnected() throws Exception {
- GfshScript.of("start locator --name=locator1").withName("start
locator").execute(gfshRule);
+ GfshScript.of("start locator
--name=locator1").withName("start-locator").execute(gfshRule);
- GfshScript.of("status locator --name=locator1").withName("status
locator").expectFailure()
+ GfshScript.of("status locator
--name=locator1").withName("status-locator").expectFailure()
.execute(gfshRule);
}
}
diff --git
a/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/GfshScript.java
b/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/GfshScript.java
index 69f3a9e..c127d70 100644
---
a/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/GfshScript.java
+++
b/geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/GfshScript.java
@@ -44,6 +44,7 @@ public class GfshScript {
}
public GfshScript withName(String name) {
+ assertThat(name.contains(" ")).as("argument passed to withName cannot have
spaces").isFalse();
this.name = name;
return this;