add first integration test based on Testcontainers
This commit is contained in:
37
src/test/resources/application.yml
Normal file
37
src/test/resources/application.yml
Normal file
@ -0,0 +1,37 @@
|
||||
spring:
|
||||
sql:
|
||||
init:
|
||||
platform: postgres
|
||||
|
||||
datasource:
|
||||
url: jdbc:tc:postgresql:12.9-alpine:///spring_boot_testcontainers
|
||||
username: postgres
|
||||
password: password
|
||||
|
||||
jpa:
|
||||
properties:
|
||||
hibernate:
|
||||
default_schema: public
|
||||
dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
show-sql: true
|
||||
|
||||
test:
|
||||
database:
|
||||
replace: none
|
||||
|
||||
liquibase:
|
||||
change-log: classpath:/db/changelog/db.changelog-master.yaml
|
||||
contexts: test
|
||||
|
||||
logging:
|
||||
level:
|
||||
liquibase: INFO
|
||||
|
||||
# spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
# spring.datasource.url=${DB_URL}
|
||||
# spring.datasource.username=${DB_USERNAME}
|
||||
# spring.datasource.password=${DB_PASSWORD}
|
||||
|
||||
# spring.jpa.properties.hibernate.default-schema=public
|
Reference in New Issue
Block a user