Set SBDG security SSL property to ensure auto-configuration of SSL is enabled and takes effect.

This commit is contained in:
John Blum
2021-03-25 03:16:41 -07:00
parent e17bb3986f
commit 9cdb4ca7f3

View File

@@ -61,19 +61,22 @@ import example.app.security.server.BootGeodeSecurityServerApplication;
*/
@DirtiesContext
@RunWith(SpringRunner.class)
@SpringBootTest(classes = BootGeodeSecurityClientApplication.class)
@SpringBootTest(
classes = BootGeodeSecurityClientApplication.class,
properties = "spring.boot.data.gemfire.security.ssl.environment.post-processor.enabled=true"
)
public class BootGeodeSecurityClientApplicationIntegrationTests extends ForkingClientServerIntegrationTestsSupport {
@Autowired
@Qualifier("customersTemplate")
@SuppressWarnings("unused")
private GemfireTemplate customersTemplate;
@BeforeClass
public static void startGeodeServer() throws IOException {
startGemFireServer(BootGeodeSecurityServerApplication.class);
}
@Autowired
@Qualifier("customersTemplate")
@SuppressWarnings("unused")
private GemfireTemplate customersTemplate;
@Test
public void dataReadNotAllowed() {