Disable SSL auto-configuration for all Spring Geode Sample tests.
This commit is contained in:
@@ -51,7 +51,9 @@ import example.app.crm.repo.CustomerRepository;
|
||||
// tag::class[]
|
||||
@ActiveProfiles("debug")
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
@SpringBootTest(properties = {
|
||||
"spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=false"
|
||||
})
|
||||
@SuppressWarnings("unused")
|
||||
public class CustomerServiceApplicationIntegrationTests extends IntegrationTestsSupport {
|
||||
|
||||
|
||||
@@ -53,7 +53,10 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
* @since 1.1.0
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK)
|
||||
@SpringBootTest(
|
||||
properties = { "spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=false" },
|
||||
webEnvironment = SpringBootTest.WebEnvironment.MOCK
|
||||
)
|
||||
@SuppressWarnings("unused")
|
||||
public class BootGeodeHttpSessionCachingApplicationIntegrationTests extends IntegrationTestsSupport {
|
||||
|
||||
|
||||
@@ -55,7 +55,9 @@ import example.app.caching.inline.service.CalculatorService;
|
||||
*/
|
||||
// tag::class[]
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
@SpringBootTest(properties = {
|
||||
"spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=false"
|
||||
})
|
||||
@SuppressWarnings("unused")
|
||||
public class CalculatorApplicationIntegrationTests extends IntegrationTestsSupport {
|
||||
|
||||
|
||||
@@ -46,7 +46,10 @@ import example.app.caching.lookaside.service.CounterService;
|
||||
*/
|
||||
// tag::class[]
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK)
|
||||
@SpringBootTest(
|
||||
properties = { "spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=false" },
|
||||
webEnvironment = SpringBootTest.WebEnvironment.MOCK
|
||||
)
|
||||
@SuppressWarnings("unused")
|
||||
public class BootGeodeLookAsideCachingApplicationIntegrationTests extends IntegrationTestsSupport {
|
||||
|
||||
|
||||
@@ -51,7 +51,10 @@ import example.app.caching.near.server.BootGeodeNearCachingCacheServerApplicatio
|
||||
*/
|
||||
@ActiveProfiles("client")
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK)
|
||||
@SpringBootTest(
|
||||
properties = { "spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=false" },
|
||||
webEnvironment = SpringBootTest.WebEnvironment.MOCK
|
||||
)
|
||||
@SuppressWarnings("unused")
|
||||
public class BootGeodeNearCachingClientCacheApplicationIntegrationTests
|
||||
extends ForkingClientServerIntegrationTestsSupport {
|
||||
@@ -60,7 +63,8 @@ public class BootGeodeNearCachingClientCacheApplicationIntegrationTests
|
||||
public static void startGemFireServer() throws IOException {
|
||||
|
||||
startGemFireServer(BootGeodeNearCachingCacheServerApplication.class,
|
||||
"-Dspring.profiles.active=server");
|
||||
"-Dspring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=false",
|
||||
"-Dspring.profiles.active=server");
|
||||
}
|
||||
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user