Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions delivery/test-resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Test-specific configuration for delivery module

# Allow bean definition overriding to fix p6spy-spring-boot-starter 2.0.0 compatibility
# Version 2.0.0 includes conflicting autoconfiguration for DataSourcePoolMetadataProviders
spring.main.allow-bean-definition-overriding=true

# Enable Hibernate DDL auto-update for tests to create tables
spring.jpa.hibernate.ddl-auto=update

# Ensure data.sql runs AFTER Hibernate creates the schema
# This overrides the main application.properties setting
spring.jpa.defer-datasource-initialization=true

# Configure Hibernate Search for tests with in-memory backend
spring.jpa.properties.hibernate.search.enabled=true
spring.jpa.properties.hibernate.search.backend.type=lucene
spring.jpa.properties.hibernate.search.backend.directory.type=local-heap
spring.jpa.properties.hibernate.search.backend.directory.root=${java.io.tmpdir}/lucene-test
spring.jpa.properties.hibernate.search.backend.analysis.configurer=pandas.search.SearchAnalysisConfig
Loading