Commit Graph

94 Commits

Author SHA1 Message Date
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
John Blum
126f386dfc Change the Function executions to onMember(..) calls by placing the (cache) client in a group. 2018-05-23 19:02:16 -07:00
John Blum
efc645b3a7 Fix Javadoc. 2018-05-23 18:52:35 -07:00
John Blum
05267ee8bf Add integration tests for Function implementation and execution auto-configuration. 2018-05-23 18:42:40 -07:00
John Blum
ced7b60deb Rename o.s.b.d.g.autoconfigure.RepositoriesAutoConfigurationRegistrar to GemFireRepositoriesAutoConfigurationRegistrar. 2018-05-23 13:44:07 -07:00
John Blum
83a014682b Rename the nested EnableGeodeRepositoriesConfiguration class to EnableGemFireRepositoriesConfiguration. 2018-05-23 09:33:33 -07:00
John Blum
91438a69ff Change incorrect sun.util.resources.LocaleData type for publishedDate property to java.time.LocalDate.
Add Javadoc.
2018-05-22 18:14:54 -07:00
John Blum
3c2d0f558c Add integration tests for Spring's Cache Abstraction with Apache Geode auto-configured as the caching provider. 2018-05-22 18:08:22 -07:00
John Blum
357076b448 Add example Books application and domain types. 2018-05-22 18:08:22 -07:00
John Blum
9020b6248a Add protected nextId() method to acquire the next identifier in the sequence.
Change getCustomerRepository() as a non-final method.

Refactor save(:Customer) to use nextId().
2018-05-22 18:08:22 -07:00
John Blum
615509d337 Rename AutoConfiguredRepositoryIntegrationTests to AutoConfiguredRepositoriesIntegrationTests. 2018-05-22 17:12:44 -07:00
John Blum
1d9250a9ba Add test runtime dependency on the JCache API 1.0.0. 2018-05-22 17:11:34 -07:00
John Blum
1363ab80d0 Add integration tests for SDG Repository auto-configuration support. 2018-05-22 14:31:17 -07:00
John Blum
0b97742411 Add project test dependency on Lombok 1.16.20. 2018-05-22 14:23:53 -07:00
John Blum
73ec0ac8cc Add integration test asserting the user is able to configure and bootstrap a Spring Boot, Apache Geode/Pivotal GemFire peer Cache application, thereby overriding the default, ClientCache application auto-configuration. 2018-05-22 13:22:38 -07:00
John Blum
ff7872d827 Prevent the auto-configuration and enabling of Continuous Queries when the user explicility configures a peer Cache application. 2018-05-22 13:21:02 -07:00
John Blum
dab543e8c9 Rename o.s.b.d.g.cache.client.SpringBootApacheGeodeCacheClientApplicationTests to SpringBootApacheGeodeClientCacheApplicationIntegrationTests.
Add assertion to verify the Apache Geode/Pivotal GemFire cache instance is indeed a ClientCache.

Configure GemFie log-level to 'error'.
2018-05-22 12:47:45 -07:00
John Blum
c9496b99e7 Format source code. 2018-05-22 00:09:52 -07:00
John Blum
e163c4835d Complete SecurityAutoConfiguration logic handling secure access to PCC in PCF. 2018-05-22 00:09:36 -07:00
John Blum
826f61161f Add o.s.b.d.g.core.env.VcapPropertySource class to model and provide operations specifically for the 'vcap' PropertySource contained in the Environment. 2018-05-22 00:07:01 -07:00
John Blum
0eef15ba77 Change access modifier on CloudCacheService.Locator newLocator(..), parseLocators(:String) and parse(:String) factory methods to public. 2018-05-21 23:30:55 -07:00
John Blum
41999755aa Fix Javadoc. 2018-05-21 23:02:11 -07:00
John Blum
a9874e64a3 Add the o.s.b.d.g.core.env.support.CloudCacheService class and ADT modeling the 'cloudcache' service (an instance of PCC) in Pivotal CloudFoundry.
The cloudcache service is backed by Pivotal GemFire and therefore contains additional meta-data used to access the PCC service instacne, such as Pivotal GemFire Locator network endpoints and user credentials required to access the PCC instance bound to any pushed Spring Boot apps.
2018-05-21 22:58:15 -07:00
John Blum
58423f2c9f Add the o.s.b.d.g.core.env.support.Service class and ADT modeling the basic concept of a Pivotal CloudFoundry service.geode-spring-boot-starter/src/main/java/org/springframework/boot/data/geode/core/env/support/Service.java 2018-05-21 22:53:35 -07:00
John Blum
30d3eefcd4 Add the o.s.b.d.g.core.env.support.User class and ADT to model users with access to Pivotal CloudFoundry services. 2018-05-21 22:50:39 -07:00
John Blum
f4d843b14e Add the o.s.b.d.g.core.utils.ObjectUtils utility class containing various operations on Objects. 2018-05-21 22:49:04 -07:00
John Blum
1160d67dee Change groupId from 'org.springframework.boot' to 'org.springframework.data'.
Addresses GH Issue #6.
2018-05-15 13:54:15 -07:00
John Blum
3002d4ca6b Upgrade to Mockito 2.18.3.
Upgrade to core Spring Framework 2.0.6.RELEASE.

Upgrade to Spring Boot 2.0.2.RELEASE.

Upgrade to Spring Data GemFire 2.0.7.RELEASE.

Upgrade to Spring Data Geode 2.0.7.RELEASE.

Upgrade to Spring Data Release Train Kay-SR7.

Upgrade to Spring IO Platform Cairo-RELEASE.
2018-05-09 17:37:41 -07:00
John Blum
9f62f3cd1b Correct grammar. 2018-05-09 17:35:04 -07:00
John Blum
9c83a21fef Change branding from Geode to Apache Geode.
Change branding from GemFire to Pivotal GemFire.

Change branding from Spring Data Geode to Spring Data for Apache Geode.

Change branding from Spring Data GemFire to Spring Data for Pivotal GemFire.

Change branding from Spring Boot Data GemFire/Geode to Spring Boot for Pivotal GemFire and Apache Geode, respectively.

Change branding from Spring Session Data GemFire/Geode to Spring Session for Pivotal GemFire and Apache Geode, respectively.
2018-05-09 12:19:33 -07:00
John Blum
15dc6d83b2 Add backslash to properly escape the newline in the property definition. 2018-04-03 19:39:07 -07:00
John Blum
6ef9192517 Upgrade to Spring Gradle Build Conventions 0.0.15.RELEASE. 2018-04-03 19:34:05 -07:00
John Blum
d4c45c063e Remove @SuppressWarnings('all') annotation. 2018-04-03 19:34:05 -07:00
John Blum
db5a649115 Add Spring Boot auto-configuration for Apache Geode SSL. 2018-04-03 19:34:04 -07:00
John Blum
64eedc0b10 Add Spring Boot auto-configuration for Apache Geode Security, and primarily authentication between a client and a server.
Introduces a basic class template to auto-configure security based on context (e.g. PCF when using PCC) along with some other Conditions identifying certain Apache Geode properties necessitating the need to configure security.
2018-04-03 19:30:58 -07:00