John Blum
20fed2b4c0
Adapt to API changes in the STDG 0.0.17.RELEASE.
...
Specifically, change '@EnableGemFireMockObjects' annotation, 'destroyOnEvent' attribute references to 'destoryOnEvents'.
2020-07-27 00:49:33 -07:00
John Blum
20b8c2d172
Cleanup all unsafe and unchecked compiler warnings.
2020-07-23 14:57:01 -07:00
John Blum
ba24c50ba2
Cleanup uses and/or overrides of Apache Geode, Spring and Test Framework (e.g. Mockito) deprecated APIs.
2020-07-23 14:57:09 -07:00
John Blum
5ca11cbc44
Declare 'com.google.code.findbugs:jsr305' as a compileOnly/testCompileOnly depedency to cleanup Gradle build warnings.
...
Without this dependency the Gradle build logs warnings about:
> Task :spring-geode-autoconfigure:compileTestJava
warning: unknown enum constant When.MAYBE
reason: class file for javax.annotation.meta.When not found
...
2020-07-23 14:57:01 -07:00
John Blum
6fc18bc449
Extend STDG's o.s.d.g.tests.integration.IntegrationTestsSupport base class.
2020-07-23 13:42:51 -07:00
John Blum
760b381941
Switch the 'org.springframework.boot:spring-boot-starter-web' dependency from 'testRuntime' to 'testCompile'.
2020-07-23 12:25:14 -07:00
John Blum
0cd2f4df1b
Add Integration Tests testing the (auto) configuration of custom import and export Resources via HTTP to a REST service.
...
Resolves gh-92.
2020-07-23 12:25:14 -07:00
John Blum
9eb6915c87
Remove ResourceNotFoundException catch block and handler logic from the overridden doImportInto(:Region) method in JsonCacheDataImporterExporter factory method.
...
Resolves gh-92.
2020-07-22 17:11:56 -07:00
John Blum
4a7de7f565
Rearrange the Management REST API property configuration to set properties alphabetically for readability.
2020-07-21 12:00:35 -07:00
John Blum
84f0af50e4
Adapt cache data import/export auto-configuration to the new ResolverResolver, ResourceReader and ResourceWriter API.
...
Resolves gh-92.
2020-07-20 20:58:00 -07:00
John Blum
5994d6b6a3
Upgrade to FreeFair Lombok Gradle Plugin 5.1.0.
2020-06-10 23:48:29 -07:00
John Blum
5318782bfb
Fix bug to handle cache data import into client LOCAL Regions when no PDX type registry exists.
...
Resolves gh-91.
2020-06-10 23:16:11 -07:00
John Blum
f83880ea97
Reset ClusterAwareCondition.
2020-06-09 15:20:08 -07:00
John Blum
1501d7fac6
Fix bug with cache data import when using @EnableClusterAware.
...
Resolves gh-90.
2020-06-09 14:10:10 -07:00
John Blum
288b6bb7ec
Fix bug in cache data export caused by Apache Geode's JVM Shutdown Hook.
...
Resolves gh-88.
2020-06-08 15:19:10 -07:00
John Blum
95c0009cdc
Rename 'peerRegion(..)' bean definition method and 'peerRegion' local variable to 'booksRegion'.
2020-06-08 15:11:15 -07:00
John Blum
0ab5e0ffee
Rename 'booksWasLoaded' test case method to 'booksWereLoaded'.
2020-06-04 17:19:16 -07:00
John Blum
21b6e8758f
Configure destruction of GemFire/Geode Mock Objects on Spring ApplicationContext ContextClosedEvents.
2020-05-22 01:41:30 -07:00
John Blum
58122de507
Annotate LoggingAutoConfiguration with @ConditionalOnMissingBean to disable auto-configuration when a user has explicitly declared GemFire/Geode logging configuration.
...
As user explicitly declares GemFire/Geode logging configuration when s/he annotates his/her main Spring Boot application class or an application specific @Configuration class picked up by Spring Boot with SDG's @EnableLogging annotation.
Resolves gh-85.
2020-05-19 17:44:57 -07:00
John Blum
22aaead3cb
Declare explicit GemFire/Geode logging configuration for all tests in test resources application.properties.
...
Remove @EnableLogging annotation and 'logLevel' attriubute (e.g. on @ClientCacheApplication/@CacheServerApplication annotations) logging configuration from all test classes.
2020-05-19 17:44:57 -07:00
John Blum
fc80371cfd
Add Integration Tests asserting the configuration of PDX in the context of Spring Boot.
...
Adds 3 test cases covering:
* Auto-configuration of SDG's MappingPdxSerializer.
* Configuration of a user-defined PdxSerializer applied via auto-configuration.
* Manually configured PdxSerializer overriding SBDG PDX auto-configuration.
2020-05-19 15:22:00 -07:00
John Blum
e67dc5e8d2
Switch to using SDG Annotation-based configuration for the "Books" Region on the client.
...
Technically, this means annotated the TestGeodeCientConfiguration with SDG's @EnableEntityDefinedRegions, which auto-magically defines and creates Region(s) from application entity classes.
Resolves gh-67.
2020-05-13 22:37:19 -07:00
John Blum
854a233b04
Rename PdxInstanceWrapperAspect to PdxInstanceWrapperRegionAspect.
...
Edit Javadoc.
Resolves gh-67.
2020-05-12 21:33:51 -07:00
John Blum
a6f07e88b0
Add Unit Tests for PdxInstanceWrapperAspect.
...
Resolve gh-67.
2020-05-12 21:29:32 -07:00
John Blum
f967675423
Add Spring Boot auto-configuration for cache data imports/exports.
...
Resolves gh-67.
2020-05-12 19:48:35 -07:00
John Blum
a513834fae
Add 'org.springframework.boot:spring-boot-starter-json' as test runtime dependency.
2020-05-12 19:45:49 -07:00
John Blum
39efd95a5c
Add protected, no-argument, default constructors.
2020-05-12 19:43:51 -07:00
John Blum
9952937857
Edit Javadoc.
2020-04-16 00:05:30 -07:00
John Blum
f47f9f55b7
Annotate test class with @DirtiesContext.
...
Geode Properties defined in the Spring ApplicationContext using the @SpringBootTest annotation is running interference with downstream Integration Tests.
2020-04-15 23:56:37 -07:00
John Blum
eb056bc9c4
Apply Spring Profile to test configuration.
...
Declare @DirtiesContext annotation to clean up the Spring ApplicationContext.
2020-04-15 23:55:06 -07:00
John Blum
39d81d339a
Remove conditional on missing GemFireCache bean annotation declaration.
...
This is necessary to apply Geode Properties declared in Spring Boot application.properties to Spring Boot, Apache Geode, Peer Cache applications.
Resolves gh-79.
2020-04-15 22:54:46 -07:00
John Blum
aaa8b42aa7
Rename GemFirePropertiesVsSpringDataGemFirePropertiesPrecedenceIntegrationTests to GeodePropertiesVsSpringDataGeodePropertiesPrecedenceIntegrationTests.
2020-04-15 22:54:46 -07:00
John Blum
51e2cf0c3f
Add test case asserting that SBDG's type-safe GemFireProperties class hierarchy does not capture Geode Properties.
...
Resolves gh-79.
2020-04-15 22:54:46 -07:00
John Blum
f08a88f0ec
Add test asserting SDG Propertieds take precedence over (i.e. override) both Spring and Apache Geode or Pivotal GemFire Properties.
...
Resolves gh-79.
2020-04-15 22:54:46 -07:00
John Blum
41a2282bb3
Add auto-configuration to process gemfire.properties in application.properties.
...
Resolves gh-79.
2020-04-14 20:19:43 -07:00
John Blum
619f695a3e
Fix SSL auto-configuration when TLS is enabled to properly configure the SSL default context.
...
Resolves gh-77.
2020-03-20 02:22:31 -07:00
John Blum
f3e02ef34e
Add human readable, formatted JSON, VCAP environment variables file.
2020-03-20 02:06:25 -07:00
John Blum
f773c19044
Remove unnecessary @SuppressWarnings('all') annotation from deleteKeyStoreFilesInCurrentWorkingDirectory() method.
2020-03-18 20:11:18 -07:00
John Blum
665355aa92
Upgrade to FreeFair Lombok Gradle Plugin 5.0.0-rc2.
2020-02-22 23:50:31 -08:00
John Blum
2440fa68a4
Remove unnecessary testCompile dependency on apache-geode-extensions.
...
apache-geode-extensions is already an optional compile-time dependency.
2020-02-21 20:17:32 -08:00
John Blum
51e7b0e9f9
Remove assertion on the cache instance asserting whether the cache was an instance of o.a.g.internal.cache.GemFireCacheImpl.
...
Remove assertion on the Region instance asserting whether the Region was an instance of o.a.g.internal.cache.AbstractRegion.
Resolves gh-70.
2020-02-21 20:17:32 -08:00
John Blum
d9a9b7d698
Remove use of the org.apache.geode.distributed.internal.DistributionConfig class to refer to the 'gemfire.' property prefix.
...
Resolves gh-70.
2020-02-21 19:24:52 -08:00
John Blum
295975e73b
Remove use of the org.apache.geode.internal.cache.GemFireCacheImpl class to assert the cache instance is a client.
...
Resolves gh-70.
2020-02-21 19:22:08 -08:00
John Blum
c434873f58
Remove uses of the org.apache.geode.distributed.internal.DistributionConfig interface to refer to configuration property names.
...
Resolves gh-70.
2020-02-21 19:19:12 -08:00
John Blum
a08f9bb0e8
Remove use of the org.apache.geode.internal.cache.GemFireCacheImpl class to assert the cache instance is not a client.
...
Resolves gh-70.
2020-02-21 19:19:12 -08:00
John Blum
d266c1c660
Remove uses of the org.apache.geode.management.internal.security.ResourceConstants class to refer to Security constants and properties.
...
Resolves gh-70.
2020-02-21 19:14:36 -08:00
John Blum
8447eaad10
Update Copyright to 2020.
2020-02-19 23:04:23 -08:00
John Blum
b45431fd53
Optimize imports.
2020-01-24 21:17:09 -08:00
John Blum
4e492ad089
Upgrade the WAR file containing the old Management (Admin) REST API from Apache Geode 1.9.2 to 1.11.0.
2020-01-22 15:13:44 -08:00
John Blum
6a9513c642
Add 'org.apache.geode:geode-http-service' as testRuntime dependency to enable the embedded Apache Geode HTTP service/HTTP server (using Jetty).
...
This will in turn configure and bootstrap the Management/Admin REST API required by the cluster configuration push functionality in SDG/SBDG.
2020-01-22 15:11:09 -08:00