From 22906e0b3d0926c09bb260bcd312863282b7a3bd Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Wed, 30 Mar 2016 15:50:08 -0700 Subject: [PATCH] GEODE-1025: Switching the latest SDG version and reanabling SDG test Spring Data Gemfire (SDG) now implements a service provider required to start the cache server with spring. Switching to point at the latest SDG snapshot and renabling the test for starting with SDG. --- build.gradle | 2 - .../LauncherLifecycleCommandsDUnitTest.java | 3 +- .../spring/spring-gemfire-context.xml | 43 +++++++++++++++++++ .../commands/LauncherLifecycleCommands.java | 3 +- gradle/dependency-versions.properties | 2 +- 5 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 geode-assembly/src/test/resources/spring/spring-gemfire-context.xml diff --git a/build.gradle b/build.gradle index 150038eeadbc..890bce3a1a27 100755 --- a/build.gradle +++ b/build.gradle @@ -47,8 +47,6 @@ allprojects { maven { url "http://repo.spring.io/release" } maven { url "http://repo.spring.io/milestone" } maven { url "http://repo.spring.io/snapshot" } - maven { url "http://repo.spring.io/libs-release" } - maven { url "http://repo.spring.io/ext-release-local" } } group = "org.apache.geode" diff --git a/geode-assembly/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommandsDUnitTest.java b/geode-assembly/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommandsDUnitTest.java index 2344155c8a3b..11712071c2b3 100644 --- a/geode-assembly/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommandsDUnitTest.java +++ b/geode-assembly/src/test/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommandsDUnitTest.java @@ -799,8 +799,7 @@ public String description() { assertEquals(Status.NOT_RESPONDING, locatorState.getStatus()); } - @Ignore("Disabled until GEODE-1025, SGF-476 are resolved") - public void IGNORE_test013StartServerWithSpring() { + public void test013StartServerWithSpring() { String pathname = (getClass().getSimpleName() + "_" + getTestMethodName()); File workingDirectory = new File(pathname); diff --git a/geode-assembly/src/test/resources/spring/spring-gemfire-context.xml b/geode-assembly/src/test/resources/spring/spring-gemfire-context.xml new file mode 100644 index 000000000000..d6f6df3ab9fc --- /dev/null +++ b/geode-assembly/src/test/resources/spring/spring-gemfire-context.xml @@ -0,0 +1,43 @@ + + + + + + + SpringGemFireServerBootstrap + 0 + config + spring_server.log + 0 + + + + + + + diff --git a/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommands.java b/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommands.java index 40aa32077476..d9928c5b5172 100755 --- a/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommands.java +++ b/geode-core/src/main/java/com/gemstone/gemfire/management/internal/cli/commands/LauncherLifecycleCommands.java @@ -1172,9 +1172,8 @@ protected List getSpringJars() { } })) { String jarFileName = jarFile.getName(); - String jarFileNamePrefix = jarFileName.substring(0, jarFileName.lastIndexOf("-")); - if (SPRING_JAR_NAME_PREFIXES.contains(jarFileNamePrefix.toLowerCase().trim())) { + if (SPRING_JAR_NAME_PREFIXES.stream().anyMatch(prefix -> jarFileName.startsWith(prefix))) { springJarFilePathnames.add(jarFile.getAbsolutePath()); } } diff --git a/gradle/dependency-versions.properties b/gradle/dependency-versions.properties index 7a5054bdf35a..beb2d26ca5bf 100644 --- a/gradle/dependency-versions.properties +++ b/gradle/dependency-versions.properties @@ -86,7 +86,7 @@ scala.version = 2.10.0 slf4j-api.version = 1.7.7 snappy-java.version = 1.1.1.6 spring-data-commons.version = 1.9.1.RELEASE -spring-data-gemfire.version = 1.7.2.RELEASE +spring-data-gemfire.version = 1.7.0.APACHE-GEODE-EA-SNAPSHOT spring-hateos.version = 0.16.0.RELEASE spring-shell.version = 1.1.0.RELEASE spring-ldap-core.version = 1.3.2.RELEASE