Files
vibing/backend/src/test/resources/application-test.yml
Jarno Kiesiläinen c8a1158a6d
All checks were successful
Backend CI / Run Maven Tests (pull_request) Successful in 27s
Fix flyway migration and use h2 in unit tests.
2025-08-07 19:15:45 +03:00

22 lines
494 B
YAML

spring:
datasource:
url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=PostgreSQL
username: sa
password:
driver-class-name: org.h2.Driver
h2:
console:
enabled: true
jpa:
hibernate:
ddl-auto: none # Let Flyway handle schema creation
show-sql: true
database-platform: org.hibernate.dialect.H2Dialect
flyway:
enabled: true
clean-disabled: false # Allow clean in tests
locations: classpath:db/migration