From e17bb3986fd34a0d551165700317b17391c4d680 Mon Sep 17 00:00:00 2001 From: John Blum Date: Thu, 25 Mar 2021 01:39:05 -0700 Subject: [PATCH] Create application-no-ssl.properties to ensure Apache Geode is configured to not use SSL network communications betwen client & server. Activate the 'no-ssl' profile in the SpringBootApachGeodeIntegrationTest class example. --- .../SpringBootApacheGeodeIntegrationTest.java | 2 +- .../src/test/resources/application-no-ssl.properties | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 spring-geode-docs/src/test/resources/application-no-ssl.properties diff --git a/spring-geode-docs/src/test/java/example/test/integration/SpringBootApacheGeodeIntegrationTest.java b/spring-geode-docs/src/test/java/example/test/integration/SpringBootApacheGeodeIntegrationTest.java index d1c508ea..71888d45 100644 --- a/spring-geode-docs/src/test/java/example/test/integration/SpringBootApacheGeodeIntegrationTest.java +++ b/spring-geode-docs/src/test/java/example/test/integration/SpringBootApacheGeodeIntegrationTest.java @@ -66,7 +66,7 @@ import lombok.ToString; * @see org.springframework.test.context.junit4.SpringRunner * @since 1.5.0 */ -@ActiveProfiles("spring-geode-docs-integration-test-client") +@ActiveProfiles({ "spring-geode-docs-integration-test-client", "no-ssl" }) @DirtiesContext @RunWith(SpringRunner.class) @SpringBootTest( diff --git a/spring-geode-docs/src/test/resources/application-no-ssl.properties b/spring-geode-docs/src/test/resources/application-no-ssl.properties new file mode 100644 index 00000000..277bdbad --- /dev/null +++ b/spring-geode-docs/src/test/resources/application-no-ssl.properties @@ -0,0 +1,9 @@ +# Spring Boot application.properties used to ensure Apache Geode is not configured to use SSL network communications. + +javax.net.ssl.keyStore= +javax.net.ssl.keyStoreType= +javax.net.ssl.keyStorePassword= +javax.net.ssl.trustStore= +javax.net.ssl.trustStoreType= +javax.net.ssl.trustStorePassword= +spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=false