diff --git a/spring-data-geode/src/test/java/org/springframework/data/gemfire/client/ClientCacheSecurityTest.java b/spring-data-geode/src/test/java/org/springframework/data/gemfire/client/ClientCacheSecurityTest.java index 1f1e1581..f28bc29b 100644 --- a/spring-data-geode/src/test/java/org/springframework/data/gemfire/client/ClientCacheSecurityTest.java +++ b/spring-data-geode/src/test/java/org/springframework/data/gemfire/client/ClientCacheSecurityTest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.springframework.data.gemfire.client; import static org.hamcrest.CoreMatchers.equalTo; @@ -28,16 +27,18 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Resource; -import org.apache.geode.cache.CacheLoader; -import org.apache.geode.cache.CacheLoaderException; -import org.apache.geode.cache.LoaderHelper; -import org.apache.geode.cache.Region; - import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; +import org.apache.geode.cache.CacheLoader; +import org.apache.geode.cache.CacheLoaderException; +import org.apache.geode.cache.LoaderHelper; +import org.apache.geode.cache.Region; + +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.data.gemfire.fork.ServerProcess; import org.springframework.data.gemfire.process.ProcessExecutor; import org.springframework.data.gemfire.process.ProcessWrapper; @@ -48,7 +49,7 @@ import org.springframework.test.context.junit4.SpringRunner; import org.springframework.util.Assert; /** - * Integration tests to test SSL configuration between a Pivotal GemFire or Apache Geode client and server + * Integration Tests to test SSL configuration between a Pivotal GemFire or Apache Geode client and server * using GemFire/Geode System properties. * * @author John Blum @@ -127,4 +128,15 @@ public class ClientCacheSecurityTest { public void close() { } } + public static class SslGemFireServer { + + public static void main(String[] args) { + + String configLocation = "org/springframework/data/gemfire/client/ClientCacheSecurityTest-server-context.xml"; + + ConfigurableApplicationContext applicationContext = new ClassPathXmlApplicationContext(configLocation); + + applicationContext.registerShutdownHook(); + } + } } diff --git a/spring-data-geode/src/test/java/org/springframework/data/gemfire/repository/sample/FromPartitionToReplicateRegionRepositoryIntegrationTests.java b/spring-data-geode/src/test/java/org/springframework/data/gemfire/repository/sample/FromPartitionToReplicateRegionRepositoryIntegrationTests.java new file mode 100644 index 00000000..2bc74c8b --- /dev/null +++ b/spring-data-geode/src/test/java/org/springframework/data/gemfire/repository/sample/FromPartitionToReplicateRegionRepositoryIntegrationTests.java @@ -0,0 +1,26 @@ +/* + * Copyright 2019 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.springframework.data.gemfire.repository.sample; + +/** + * The FromPartitionToReplicateRegionRepositoryIntegrationTests class... + * + * @author John Blum + * @since 1.0.0 + */ +public class FromPartitionToReplicateRegionRepositoryIntegrationTests { + +} diff --git a/spring-data-geode/src/test/resources/org/springframework/data/gemfire/client/ClientCacheSecurityTest-context.xml b/spring-data-geode/src/test/resources/org/springframework/data/gemfire/client/ClientCacheSecurityTest-context.xml index 9214b083..3ae70d3c 100644 --- a/spring-data-geode/src/test/resources/org/springframework/data/gemfire/client/ClientCacheSecurityTest-context.xml +++ b/spring-data-geode/src/test/resources/org/springframework/data/gemfire/client/ClientCacheSecurityTest-context.xml @@ -15,6 +15,7 @@ localhost 31517 all + true true any any @@ -29,6 +30,7 @@ error ${gemfire.security.ssl.ciphers} ${gemfire.security.ssl.components} + ${gemfire.security.ssl.endpoint-identification-enabled} ${gemfire.security.ssl.keystore.location} ${gemfire.security.ssl.keystore.password} ${gemfire.security.ssl.keystore.type}