Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Update 1.3 release (#692)
Browse files Browse the repository at this point in the history
* Revert "Usage of postgres in test environment for database consistency (#686)" (#688)

This reverts commit 932a61f.

* Mitigate CVE-2020-13935 (#690)

* Bump spring parent version

* Liveness health indicator according to. spring-projects/spring-boot#22107

Co-authored-by: Frederico <fred.rbittencourt@gmail.com>
  • Loading branch information
Sorin Stefan Iovita and fredrb committed Aug 5, 2020
1 parent 1c2c906 commit b5e792a
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 32 deletions.
8 changes: 4 additions & 4 deletions common/persistence/pom.xml
Expand Up @@ -82,10 +82,10 @@
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>1.14.3</version>
<scope>test</scope>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.200</version>
<scope>runtime</scope>
</dependency>
<dependency>
<!-- https://nvd.nist.gov/vuln/detail/CVE-2020-9488 -->
Expand Down
@@ -0,0 +1 @@
-- no permissions on H2 necessary
6 changes: 4 additions & 2 deletions common/persistence/src/test/resources/application.yaml
Expand Up @@ -2,9 +2,11 @@
spring:
flyway:
enabled: true
locations: classpath:/db/migration
locations: classpath:/db/migration, classpath:/db/specific/{vendor}
datasource:
url: jdbc:tc:postgresql:11.8:///databasename?TC_TMPFS=/testtmpfs:rw
url: jdbc:h2:mem:test;MODE=PostgreSQL
driverClassName: org.h2.Driver
platform: h2
test:
database:
# Use datasource as defined above.
Expand Down
6 changes: 0 additions & 6 deletions services/distribution/pom.xml
Expand Up @@ -99,12 +99,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>1.14.3</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
14 changes: 8 additions & 6 deletions services/distribution/src/test/resources/application.yaml
Expand Up @@ -55,9 +55,11 @@ services:
spring:
main:
banner-mode: off
flyway:
enabled: true
locations: classpath:db/migration/postgres
jpa:
hibernate:
ddl-auto: validate
datasource:
url: jdbc:h2:mem:test;MODE=PostgreSQL
driverClassName: org.h2.Driver
platform: h2
test:
database:
# Use datasource as defined above.
replace: none
8 changes: 1 addition & 7 deletions services/pom.xml
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
<version>2.3.2.RELEASE</version>
<relativePath></relativePath>
</parent>

Expand Down Expand Up @@ -101,12 +101,6 @@
<version>42.2.13</version>
<scope>runtime</scope>
</dependency>
<dependency>
<!-- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13935 -->
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.37</version>
</dependency>
</dependencies>

<reporting>
Expand Down
6 changes: 0 additions & 6 deletions services/submission/pom.xml
Expand Up @@ -68,12 +68,6 @@
<version>2.26.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>1.14.3</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
8 changes: 7 additions & 1 deletion services/submission/src/test/resources/application.yaml
Expand Up @@ -8,10 +8,14 @@ spring:
main:
banner-mode: off
datasource:
url: jdbc:tc:postgresql:11.8:///databasename?TC_TMPFS=/testtmpfs:rw
url: jdbc:h2:mem:test;MODE=PostgreSQL
driverClassName: org.h2.Driver
platform: h2
test:
database:
# Use datasource as defined above.
replace: none

services:
submission:
initial-fake-delay-milliseconds: 1
Expand Down Expand Up @@ -39,6 +43,8 @@ management:
exposure:
include: 'health'
health:
livenessstate:
enabled: true
probes:
enabled: true

Expand Down

0 comments on commit b5e792a

Please sign in to comment.