John Blum
8a082ea642
Clean up all GemfireBeanFactoryLocator references to BeanFactories used in tests.
2018-05-28 22:47:24 -07:00
John Blum
400bcec902
Add temporary GemfireBeanFactoryLocatorProxy class extending SDG's GemfireBeanFactoryLocator to clean up references to BeanFactories stored by integration tests.
2018-05-28 22:46:22 -07:00
John Blum
b3c72314a4
Remove exclusion on SslAutonConfiguration class.
2018-05-28 22:01:59 -07:00
John Blum
fe75f1da94
Replace o.s.b.f.c.BeanPostProcessor with @EnableBeanFactoryLocator annotation.
2018-05-28 21:44:17 -07:00
John Blum
eb32d516d4
Remove explicit useBeanFactoryLocator configuration attribute on @CacheServerApplications.
2018-05-28 21:44:14 -07:00
John Blum
b81c2cf351
Revert to o.s.beans.factory.config.BeanPostProcessor for enabling the useBeanFactoryLocator property on CacheFactoryBean.
2018-05-28 21:23:56 -07:00
John Blum
bec5cc93be
Pass arguments from the main method to SpringApplication(:Class<?>[], :String[]).
2018-05-28 20:49:27 -07:00
John Blum
a1df055d7a
Auto-configure security for peer Cache instance based server nodes.
2018-05-28 20:48:28 -07:00
John Blum
6367527ff6
Rename o.s.b.d.g.autoconfigure.SecurityAutoConfiguration to ClientSecurityAutoConfiguration.
...
Add support to auto-configure Apache Geode/Pivotal GemFire Security on a peer Cache member by setting SecurityManager using the o.s.b.d.g.security.support.SecurityManagerProxy when an org.apache.geode.security.SecurityManager implementation is declared and registered as a bean in the Spring context.
2018-05-28 20:46:20 -07:00
John Blum
bdb92980ab
Add support for enabling SSL on Spring Boot configured and bootstrapped Apache Geode/Pivotal GemFire Servers.
2018-05-28 19:48:05 -07:00
John Blum
f96e7ab59b
Rename trusted.keystore to test-trusted-keystore.
2018-05-28 19:25:39 -07:00
John Blum
5d1dcb4b44
Use 'spring.boot.data.gemfire.*' prefix for all Spring Boot Data GemFire/Geode configuration properties.
2018-05-28 19:16:23 -07:00
John Blum
1f4faf2a97
Edit Javadoc.
2018-05-28 19:06:22 -07:00
John Blum
289ef39470
Add unit tests for o.s.b.d.g.function.support.SingleResultReturningCollector.
2018-05-28 18:41:08 -07:00
John Blum
9d0bf84ae4
Add unit tests for o.s.b.d.g.function.support.AbstractResultCollector.
2018-05-28 18:40:29 -07:00
John Blum
23353b630e
Add capability to disable Environment post processing for Security based on System property.
2018-05-28 17:41:29 -07:00
John Blum
d80b06dbbe
Edit properties file comments to reflect intent/purpose.
2018-05-28 17:31:24 -07:00
John Blum
c4e3b832ed
Rename application.properties for SSL integration testing to application-ssl.properties.
2018-05-28 17:28:38 -07:00
John Blum
b4b298ffc4
Add capability to disable Environment post processing for SSL based on System property.
2018-05-28 17:28:10 -07:00
John Blum
53c4ff5ec6
Add integration test testing auto-configuration of Apache Geode/Pivotal GemFire Security in a cloud, managed environemnt.
2018-05-28 16:49:02 -07:00
John Blum
97552575f4
Name the PropertySource configured from application-security-local.properties on the GemFireServerConfiguration class.
...
Remove the 'spring.profiles.active' System property from the run configuration of the Apache Geode/Pivotal GemFire Server.
2018-05-28 15:51:49 -07:00
John Blum
3676504157
Encapsulate the CloudCache Service and Security configuraton in a named PropertySource placed in the Environment.
2018-05-28 15:47:27 -07:00
John Blum
d0013ffce5
Fix String formatted Exception message logging the Environment state in from(:Environment).
2018-05-28 15:44:18 -07:00
John Blum
12a11de856
Inherit from AbstractAutoConfiguredSecurityContextIntegrationTests.
...
Edit Javadoc.
2018-05-28 14:48:38 -07:00
John Blum
b3d1f6cfd8
Resolve Spring Boot application.properties for security from the Environment based on the active Spring profile.
...
Declare the TestSecurityManager as a managed bean in the Apache Geode/Pivotal GemFire Server Spring context; this requires configuring Apache Geode/Pivotal GemFire security using the o.s.b.d.g.security.support.SecurityManagerProxy class.
2018-05-28 14:24:50 -07:00
John Blum
cca7533b86
Add security support for configuring an Apache Geode/Pivotal GemFire o.a.g.security.SecurityManager as a managed bean in the Spring context.
2018-05-28 14:19:27 -07:00
John Blum
baed99d98e
Add an abstract, base security context integration test class encapsulating functionality and configuration common to both local and cloud-based security integration tests.
2018-05-28 11:59:55 -07:00
John Blum
c09d79e74a
Refactor security credentials source for the TestSecurityManager to acquire username/password from the application-security-local.properties file.
2018-05-28 00:01:27 -07:00
John Blum
9fa05182bf
Add reference to o.a.g.cache.Region in Javadoc.
2018-05-27 23:46:49 -07:00
John Blum
5e64818110
Add integration test testing the auto-configuration of Apache Geode/Pivotal GemFire Security authentication/authorization in a local, non-managed environment.
2018-05-27 23:44:38 -07:00
John Blum
7cc723a1fd
Re-implement cloud security context configuration for Apache Geode/Pivotal GemFire using a Spring Boot o.s.boot.env.EnvironmentPostProcessor.
2018-05-27 23:43:09 -07:00
John Blum
0112ba659f
Add new property enabling the user to configure the name of the trusted KeyStore to search.
2018-05-27 22:31:25 -07:00
John Blum
298d0b7a4d
Format source code.
2018-05-27 02:12:35 -07:00
John Blum
63a9a57b2c
Add test suite method on tear down to clear all SSL System properties.
...
Add overloaded locateKeyStoreInFileSystem(keystoreFilename:String) method.
2018-05-27 01:56:51 -07:00
John Blum
bc86c98285
Refactor SslAutoConfiguration to add SDG security SSL properties to a new PropertySource added to the Enviornment.
2018-05-27 01:55:26 -07:00
John Blum
737297614d
Extend o.s.d.g.tests.integration.ForkingClientServerIntegrationTestsSupport.
...
Set Apache Geode/Pivotal GemFire client log-level to 'error'.
Simplify launching the Apache Geode/Pivotal GemFire Server by calling ForkingClientServerIntegrationTestsSupport.startGemFireServer(..).
Simplify ClientCache test configuration by extending o.s.d.g.tests.integration.config.ClientServerIntegrationTestsConfiguration.
2018-05-27 00:35:47 -07:00
John Blum
5ef721a4bb
Fix Javadoc.
2018-05-27 00:12:38 -07:00
John Blum
b2647638d5
Remove explicit test suite setup method invoking the closeGemFireCacheWaitOnCloseEvent() method.
...
The GemFireCache instance is now implicitly and properly cleaned up by extending the o.s.d.g.tests.integration.IntegrationTestsSupport class, which provides the test suite setup method invoking closeGemFireCacheWaitOnCloseEvent() method before tests execution begins.
2018-05-25 15:44:35 -07:00
John Blum
33e913edee
Edit Javadoc.
2018-05-25 15:26:56 -07:00
John Blum
4da241bf20
Add integration tests for auto-configuration of Apache Geode/Pivotal GemFire SSL transport between client and server.
2018-05-25 15:13:27 -07:00
John Blum
d31b4df772
Extend SSL auto-configuration support to automatically locate, resolve and configure a trusted KeyStore for Apache Geode/Pivotal GemFire SSL transport between client and server based on well-defined conventions.
2018-05-25 15:10:23 -07:00
John Blum
ae8566751d
Set ClientCache log-level to 'error'.
...
Disable SslAutoConfiguration on the client.
2018-05-25 15:02:22 -07:00
John Blum
7897f8edb4
Add support for using the Apache Geode/Pivotal GemFire o.a.g.cache.CacheLoader interface as a @FunctionalInterface.
...
Add example implementation of the Apache Geode/Pivotal GemFire o.a.g.cache.CacheLoader interface, which echos the key as the value, dubbed EchoCacheLoader.
2018-05-25 15:01:51 -07:00
John Blum
2721df2003
Move custom ResultCollectors from o.s.data.geode.function.execute to o.s.boot.data.geode.function.support.
2018-05-24 20:05:36 -07:00
John Blum
02ca816264
Add integration tests for auto-configuration of Apache Geode/Pivotal GemFire Continuous Query support.
2018-05-24 12:56:22 -07:00
John Blum
93767f5ffb
Register a ClientCacheConfigurer to enable subscriptions on the ClientCache instance.
...
Fix @ConditionalOnBean to be conditional on a bean of type o.s.d.g.client.ClientCacheFactoryBean.
Remove @AutoConfigureAfter the ClientCacheAutoConfiguration.
2018-05-24 12:55:38 -07:00
John Blum
0b3c81fe0b
Add example model of Apache Geode/Pivotal GemFire CQ query event handlers and types.
2018-05-24 12:53:34 -07:00
John Blum
d3aa26a3ee
Refactor all integration test classes to extend o.s.d.g.tests.integration.IntegrationTestsSupport.
...
Add test suite setup method to close any existing GemFireCache instance before test execution.
2018-05-23 20:32:40 -07:00
John Blum
dc63e34bc4
Add test compile dependency and dependency management for org.springframework.data:spring-test-data-geode 0.0.1.BUILD-SNAPSHOT.
2018-05-23 20:09:29 -07:00
John Blum
1f8b98550d
Add synchronizaton block surrounding the TimeUnit.timedWait(..) invocation inside getResult(duration:long, :TimeUnit).
2018-05-23 20:00:52 -07:00