Commit Graph

64 Commits

Author SHA1 Message Date
John Blum
9821a1e277 Update Copyright for 2022. 2022-03-02 16:16:01 -08:00
John Blum
841381d902 Update test Keystore for SSL based tests to use RSA certs. 2021-09-28 16:30:29 -07:00
John Blum
cbb51289bf Move Spring Geode Security Sample test class to the example.app.security.tests package.
Declare both SBDG security auth and SSL environment post-proccessor enabled properties.
2021-03-30 12:08:35 -07:00
John Blum
55b8ca5373 Annotate Spring Geode Sample test classes with Spring Test Framework's @DirtiesContext annotation to avoid test conflicts. 2021-03-30 11:58:39 -07:00
John Blum
59b91376b0 Refactor the dataReadNotAllowed() test case method to use JUnit 4 Exception handling (try-catch with expected Exception) rather than JUnit 5's (Jupiter) assertThrows(..) method. 2021-03-30 00:08:39 -07:00
John Blum
591483c892 Set SBDG security SSL property to ensure auto-configuration of SSL is enabled and takes effect. 2021-03-25 03:21:10 -07:00
John Blum
c77f9b183b Annotate Spring Geode Security Sample test class with Spring's @DirtiesContext annotation.
This test uses GemFire/Geode SSL configuration and therefore needs to mark the ApplicationContext as dirty.
2021-03-24 15:51:06 -07:00
John Blum
a59b2097bc Adapt to (internal) API changes in Apache Geode 1.13.1.
These changes are unavoidable at the momment given Apache Geode hides critical functionality (e.g. SSL config) behind an (so-called) 'internal' API.
2021-01-12 18:39:36 -08:00
John Blum
03fb54d83a Upgrade to Freefair Lombok Gradle Plugin 5.3.0. 2020-12-09 12:56:04 -08:00
John Blum
e32fc75643 Replace the use of the deprecated 'bootJar' Gradle task, 'mainClassName' property with 'mainClass'. 2020-12-08 09:44:19 -08:00
John Blum
09d15e87c2 Upgrade to FreeFair Lombok Gradle Plugin 5.2.1. 2020-09-18 02:33:58 -07:00
John Blum
2aaaea76bf Remove exclude from Apache Geode dependencies on 'org.apache.logging.log4j:log4j-core'.
Resolves gh-48.
2020-09-18 02:33:58 -07:00
John Blum
74c4bdbcd9 Remove exclude from Apache Geode dependencies on 'javax.servlet:javax.servlet-api'.
Resolves gh-49.
2020-09-18 02:33:58 -07: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
b04246246b Remove 'spring.data.gemfire.management.use-http' property configuration and JVM argument for Boot client.
The 'spring.data.gemfire.management.use-http' property was set in application.properties.
2020-08-12 13:41:11 -07:00
John Blum
305ca74262 Fix HTTP URL to Apache Shiro's project sit in Javadoc. 2020-08-07 15:50:27 -07:00
John Blum
0e55c44570 Switch from System.err message output to using a SLF4J Logger.
Resolves gh-81.
2020-08-07 15:21:02 -07:00
John Blum
093083be95 Polish Security Sample Tests.
Resolves gh-81.
2020-08-07 15:04:43 -07:00
John Blum
bb8c9a5b81 Polish Security Sample Code.
Resolves gh-81.
2020-08-07 15:04:43 -07:00
Patrick Johnson
16abdea031 Add Security Sample Guide and Code.
Resolves gh-81.
2020-08-07 15:04:43 -07:00
John Blum
c2f1ae3e92 Set 'spring.data.gemfire.management.use-http' property to 'false'. 2020-08-07 15:04:15 -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
5994d6b6a3 Upgrade to FreeFair Lombok Gradle Plugin 5.1.0. 2020-06-10 23:48:29 -07:00
John Blum
84ade7ee10 Annotate the Sample Boot Actuator BootGeodeClientApplication class with the @EnableClusterAware annotation. 2020-05-17 23:52:51 -07:00
John Blum
be6928e781 Configure the 'bootRun' Gradle Task to run the client for the Boot Actuator Sample.
Add a 'runServer' Gradle Task definition to run the server.
2020-05-17 23:52:51 -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
8447eaad10 Update Copyright to 2020. 2020-02-19 23:04:23 -08:00
John Blum
924b1d7f89 Upgrade to Lombok Gradle Plugin 4.1.6. 2020-01-16 18:56:19 -08:00
John Blum
afbbfe9991 Upgrade to FreeFair Lombok Gradle Plugin 4.1.2. 2019-10-17 15:46:10 -07:00
John Blum
bc6e423ed0 Disable SSL auto-configuration for all Spring Geode Sample tests. 2019-09-10 01:12:35 -07:00
John Blum
e7f99fd1e5 Log Apache Geode SSL configuration and state at 'error'. 2019-09-09 23:30:02 -07:00
John Blum
22925f136f Optimize imports. 2019-09-03 21:28:08 -07:00
John Blum
6e64704fd8 Correct spelling in 'putAndGetCustomerIsSuccessful' test case method. 2019-09-03 15:47:16 -07:00
John Blum
4169611821 Correct spacing; Use tabs, not spaces. 2019-09-03 15:46:16 -07:00
John Blum
38e2f6186f Switch from direct compile-time dependency on 'org.springframework.data:spring-data-geode-test' to using the ':spring-geode-starter-test' module. 2019-08-23 01:56:36 -07:00
John Blum
4b64e46fe6 Remove unnecessary 'org.springframework.boot:spring-boot-starter-jetty' and 'org.springframework.shell:spring-shell' runtime dependencies. 2019-08-23 01:46:43 -07:00
John Blum
82881e2f73 Switch direct [test] compile dependency on 'org.springframework.data:spring-data-geode-test' to 'spring-geode-starter-test'. 2019-08-23 00:18:54 -07:00
John Blum
5c5032e4a2 Exclude the 'javax.servlet:javax.servlet-api' transitive dependency from 'geode-core'.
Exclude the 'javax.servlet:javax.servlet-api' transitive dependency except from in the 'spring-geode-starter-session' and 'spring-gemfire-starter-session' modules.

Remove unnecessary 'javax.servlet:javax.servlet-api' provided dependency in 'spring-geode-autoconfigure'.

Remove unnecessary 'org.springframework.boot:spring-boot-starter-tomcat' runtime dependency from 'spring-geode-samples-caching-httpsession'.

Remove unnecessary 'javax.cache:cache-api' and 'org.springframework.shell:spring-shell' runtime dependencies from 'spring-geode-samples-caching-inline'.

Remove unnecessary 'javax.cache:cache-api' and 'org.springframework.shell:spring-shell' runtime dependencies from 'spring-geode-samples-caching-lookaside'.

Remove unnecessary 'javax.cache:cache-api' runtime dependency from 'spring-geode-samples-caching-near'.

Resolves gh-47.
2019-08-22 22:46:26 -07:00
John Blum
de8791564f Fixup Gradle build file to properly exclude the 'org.apache.logging.log4j:log4j-core' dependency transitively pulled in by the 'org.springframework.data:spring-data-geode-test' dependency.
Remove the exlusion on 'org.apache.logging.log4j:log4j-to-slf4j' in the 'org.springframework.boot:spring-boot-starter-test' dependency.

Resolves gh-42.
2019-08-21 11:56:32 -07:00
John Blum
c218795e8d Refactor logging dependencies in SBDG Module Gradle build files.
Remove the exclude for 'org.apache.logging.log4j:log4j-to-slf4j'.

Add an exclude for 'org.apache.logging.log4j:log4j-core'.

Resolves gh-42.
2019-08-21 11:56:32 -07:00
John Blum
6558e0ee97 Remove all improper uses of the Apache Shiro API and replace with the appropriate core Spring Framework API.
For example, usages of org.apache.shiro.util.Assert and org.apache.shiro.util.StringUtils should be replaced with org.springframework.util.Assert and org.springframework.util.StringUtils, respectively.
2019-08-20 15:00:36 -07:00
John Blum
ffa2b68b57 Remove unnecessary runtime dependency on 'org.springframework.shell:spring-shell'.
The 'org.springframework.shell:spring-shell' lib is already transitively pulled as a runtime dependency in by the 'org.springframework.geode:spring-geode' dependency.
2019-08-19 13:24:45 -07:00
John Blum
3dcc662fde Optimize imports. 2019-08-02 17:00:55 -07:00
John Blum
b8736210ff Add Integration Tests covering the Customer Service application in the Spring Geode Sample for Spring Boot Auto-Configuration of Apache Geode. 2019-08-02 17:00:55 -07:00
John Blum
099a030028 Polish source code. 2019-06-10 18:30:11 -07:00
John Blum
a0400fa69d Polish imports to match SDG Lovelace. 2019-05-06 16:48:23 -07:00
John Blum
d93830bede Fix path variables (e.g. samples-dir) used in documentation and source files.
Remove trailing path separator (/).
2019-05-01 18:48:45 -07:00
John Blum
934f03ebce Format source code for documentation reference purposes. 2019-04-30 23:04:44 -07:00
John Blum
05900e499e Add Asciidoc tag references. 2019-04-30 18:23:59 -07:00
John Blum
f0e8b7964c Remove exclusions on 'org.springframework.boot:spring-boot-starter-logging'.
Add exclusion on 'org.apache.logging.log4j:log4j-to-slf4j'.
2019-04-29 19:49:36 -07:00