Commit Graph

1671 Commits

Author SHA1 Message Date
John Blum
fee8821d89 Disable the Gradle build-cache & configuration-cache when deploying artifacts.
Remove the unnecessary --refresh-dependencies option when deploying artifacts & docs.
2021-04-07 21:01:10 -07:00
John Blum
59b7f678b3 Set the 'java.io.tmpdir' Java System Property to '/tmp'. 2021-04-07 20:52:51 -07:00
John Blum
b2c1363d76 Move 'docker login' command to setup.sh.
Move 'chown' and and 'mkdir /tmp/jenkins-home' commmands to setup.sh.

Add 'exit 0' commands to the cleanup Bash shell scripts.

Add 'echo' commands to log build progress.
2021-04-07 20:49:27 -07:00
John Blum
65e111dd0f Use Docker to deploy artifacts & docs. 2021-04-07 20:47:59 -07:00
John Blum
64cff111bf Maintain 15 previous Jenkins CI build results. 2021-04-07 20:47:55 -07:00
John Blum
766d2d08eb Define 'DOCKER_HUB' (build) environment variable to access the credentials (username/password) required to login to Docker. 2021-04-07 20:47:50 -07:00
John Blum
404f8759e8 Fix Jenkinsfile syntax errors.
Remove outer, erroneous try-finally block wrapping the build stages and then attempting to 'notify' users of the build result.

Change finally block to a post block.

Add slacksend notification.
2021-04-07 20:37:22 -07:00
John Blum
7144a5e4af Refactor Jenkinsfile to use Bash shell scripts to execute individual, isolated Steps in the Staged Jenkins CI build Pipeline. 2021-04-07 20:36:24 -07:00
John Blum
01347ac4af Separate Jenkins CI build Pipeline Steps into individual Bash shell scripts. 2021-04-07 20:36:04 -07:00
John Blum
0ba6de396e Add doc on how to build locally.
"Think global, build local!"
2021-04-07 20:33:44 -07:00
John Blum
06870a6615 Configure the NoHTTP Checkstyle Gradle Plugin to ignore the .gradle/ and .m2/ directories if under the project (build) working directory. 2021-04-04 17:43:34 -07:00
John Blum
56497fb9ec Edit comments. 2021-04-02 13:41:38 -07:00
John Blum
92b27be07f Wrap deploy artifacts & deploy docs in a 'withEnv' directive to set the JAVA_HOME env var on the host machine (Jenkins node) before Gradle is run. 2021-04-02 13:41:38 -07:00
John Blum
d553406262 Mount the Docker socket to allow Testcontainers to spawn (new) containers inside the build Docker container. 2021-04-02 13:41:38 -07:00
John Blum
16dc3331a8 Define GRADLE_OPTS environment variable for Gradle command/builds.
Remove any working directory based .m2/ or .gradle/ directories created by the Gradle build.
2021-04-02 13:41:11 -07:00
John Blum
132003b430 Switch Jenkins CI build (Jenkinsfile) to use the Declarative Pipeline Syntax, build within Docker containers and target Jenkins nodes with the 'geode' label. 2021-04-02 13:40:18 -07:00
John Blum
9ec6d221f2 Cleanup any GemFire/Geode file system resources prior to the 'check' (build). 2021-03-30 17:20:26 -07:00
John Blum
49398ebe89 Change Jenkins CI build timeout to 15 minutes. 2021-03-30 17:02:37 -07:00
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
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
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
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
ce971d004c Upgrade to Spring Test for Apache Geode 0.0.25-PASCAL-M5. 2021-03-29 16:17:11 -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
be91548bcd Create application-no-ssl.properties to ensure Apache Geode is configured to not use SSL network communications betwen client & server.
Activate the 'no-ssl' profile in the SpringBootApachGeodeIntegrationTest class example.
2021-03-25 03:20:57 -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
ce73d4dbc0 Create the MappingPdxSerializerIncludedTypesRegistrar utility class and Spring BeanPostProcessor used to register additional class types to be 'included' in the accepted types de/serialized as PDX with the SDG MappingPdxSerializer. 2021-03-25 01:26:46 -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
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
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
34f199a360 Set Spring Geode Samples (parent) Maven POM to Spring Boot version 2.5.0-SNAPSHOT. 2021-03-22 22:11:26 -07:00