Skip to content

Commit

Permalink
Use H2 datasource for the tests
Browse files Browse the repository at this point in the history
This prevents issues with the hikari connection pool being closed.
  • Loading branch information
andreaceccanti committed Nov 6, 2021
1 parent 45c7b4e commit 8f27bd2
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions iam-login-service/src/main/resources/application-h2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
#

spring:

main:
allow-bean-definition-overriding: true

mail:
port: ${IAM_MAIL_PORT:8125}

Expand All @@ -24,24 +28,14 @@ spring:
- classpath:db/migration/test

datasource:
type: org.h2.jdbcx.JdbcDataSource
url: jdbc:h2:mem:iam;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1
username: sa
password:

tomcat:
initial-size: 2
max-active: 5
min-idle: 1
max-idle: 1
max-wait: 2000
test-while-idle: true
test-on-borrow: true
validation-query: SELECT 1

notification:
disable: ${IAM_NOTIFICATION_DISABLE:true}


iam:
versioned-static-resources:
enable-versioning: false

0 comments on commit 8f27bd2

Please sign in to comment.