John Blum
2ce7175663
Fix compiler warning.
...
Declare User.name constant (immutable) field as final.
2021-03-30 16:11:54 -07:00
John Blum
3306de1f03
Randomize Locator network ports.
2021-03-30 16:09:47 -07:00
John Blum
c87dca7d74
Add additional SLF4J Logback Loggers for Apache Geode & Spring Geode along with distinguishing the Loggers by name.
2021-03-30 16:09:25 -07:00
John Blum
a907395364
Rename application-vcap.properties to application-vcap-cloud.properties.
2021-03-30 13:38:33 -07:00
John Blum
bdd2c1bc29
Declare 'vcapApplicationProperties' class member field as final.
...
Declare 'loadVcapApplicationProperties()' and 'unsetTestAutoConfiguredPoolServersPortSystemProperty()' methods as private.
2021-03-30 13:23:36 -07:00
John Blum
942b504a38
Fix compiler warnings.
...
Declare the TestHttpBasicAuthenticationSecurityConfiguration instance field as final.
2021-03-30 13:04:02 -07:00
John Blum
61af587a0d
Refactor all Unit & Integration Tests starting a Spring container with SpringRunner to extend STDG's IntegrationTestsSupport.
2021-03-30 11:25:08 -07:00
John Blum
6df435ce44
Include an Apache Geode client/server Integration Test demonstrating Integration Testing with STDG, bootstrapped and configured with SBDG.
2021-03-25 01:28:24 -07:00
John Blum
dd0ced6041
Create Test Suite class to run (execute) a select grouping of tests.
2021-03-25 00:56:41 -07:00
John Blum
dfab4669d8
Fix generic typing on Session.getAttribute(attributeName) call.
2021-03-24 21:40:06 -07:00
John Blum
8f6a38ae81
Reset the ClusterAwareConfiguration.ClusterAwareCondition before & after test class (suite) execution.
...
Refactor the test case method names in the ClusterConfigurationWhenNonSecureClusterAvailableIntegrationTests class to be apparent that HTTPS is *not* required.
2021-03-24 21:28:24 -07:00
John Blum
430c2097a9
Reinstate (apply) Spring's @DirtiesContext annotation.
...
Additionally, declare before & after class setup/tear down proceduce to reset the ClusterAwareConfiguration.ClusterAwareCondition.
2021-03-24 16:03:00 -07:00
John Blum
376dee3d98
Edit Javadoc.
2021-03-24 15:54:41 -07:00
John Blum
d8fc2a4678
Use GemFire Mock Objects.
2021-03-24 15:54:35 -07:00
John Blum
dd5e9802a4
Use static import for the AssertJ Assertions class, assertThat(..) method.
2021-03-24 15:51:34 -07:00
John Blum
ec40028a0e
Cleanup raw types usage.
2021-03-24 15:51:19 -07:00
John Blum
f1c33b9b22
Add additional assertion on Region name, equal to 'Books'.
2021-03-24 15:50:40 -07:00
John Blum
427694d45f
Refactor and polish codebase.
...
Fix compiler warnings.
Declare Properties class fields containing VCAP_APPLICATION properties as final.
2021-03-24 15:50:15 -07:00
John Blum
21820e689d
Remove unnecessary use of Spring's @DirtiesContext annotation.
...
Fix compiler wwarnings; make immutable instance fields final.
Rearrange Spring test annotation declarations.
2021-03-24 15:48:19 -07:00
John Blum
a0827eebf8
Fix compiler warnings.
...
Make Function instance fields final.
2021-03-24 15:45:47 -07:00
John Blum
1a4e9c22ac
Change assertion on cache instance to assert as a peer cache.
2021-03-24 15:44:10 -07:00
John Blum
33e129b792
Fix try-catch block to appropriately handle the intentional AssertJ AsesrtionFailedError and unintentional Java AssertionError.
...
Fixes test failures caused by erroneous AssertionError and AssertionFailedError handling.
Apply Spring's @NonNull annotation to the test methods.
Add assertion for the threadLocalConnections property on customized Pool objects.
Format source code.
Rename the usingClientCacheDefaultPoolPropertiesModifiesDefaultPool() test case method to usingClientCacheDefaultPoolPropertiesConfigurationModifiesDefaultPool().
2021-03-24 15:41:35 -07:00
John Blum
002e60d26a
Fix VCAP_APPLICATION name to match the test class name.
2021-03-23 12:37:06 -07:00
John Blum
bba6e61011
Add additional assertions asserting that the 'Books' (client) Region DataPolicy is configured correctly.
...
Additionally, assert that the 'spring.data.gemfire.cache.client.region.shortcut' is not set (and specifically not set to 'LOCAL').
2021-01-20 14:10:28 -08:00
John Blum
06a19a0787
Add Logger configuration for 'org.springframework.geode.config.annotation.ClusterAwareConfiguration'.
2021-01-20 14:08:14 -08:00
John Blum
62848e9277
Polish the SecureClusterAwareConfigurationIntegrationTests.
...
Resolves gh-57.
2021-01-15 12:51:57 -08:00
John Blum
4a20f7be61
Support awareness and discovery of secure (Auth and SSL eanbled) Apache Geode clusters using @EnableClusterAware annotation functionality.
...
Improves log details about the runtime environment (e.g. cloud, standalone/self-managed).
Resolves gh-57.
Resolves gh-99.
2021-01-15 01:32:48 -08:00
John Blum
d08525708b
Move Cluster Configuration Integration Tests to the org.springframework.geode.boot.autoconfigure.cluster.config package.
2021-01-14 21:57:04 -08:00
John Blum
55d9b52e1a
Add Integration Test testing the configuration and expected behavior of (HTTP) Session state caching using Spring Session with Apache Geode and Mock Objects auto-configured with Spring Boot.
2020-11-04 16:50:48 -08:00
John Blum
9e1501327e
Annotate test class with @SuppressWarnings('unused').
2020-11-04 16:27:29 -08:00
John Blum
d1147415c2
Remvove all properties (configuration file) references to 'Pivotal GemFire' or 'GemFire' in general.
2020-09-17 21:28:48 -07:00
John Blum
cb34cd2201
Remove all source code (Javadoc) references to 'Pivotal GemFire' or 'GemFire' in general.
2020-09-17 21:24:16 -07:00
John Blum
68e37b7276
Cleanup use of the deprecated SpringBoot, SpringApplicationBuilder.contextClass(:Class) API.
...
Replace with SpringApplicationBuilder.contextFactory(ApplicationContextFactory.ofContextClass(:Class)).
2020-08-19 20:05:35 -07:00
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
6fc18bc449
Extend STDG's o.s.d.g.tests.integration.IntegrationTestsSupport base class.
2020-07-23 13:42:51 -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
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