# Callback Risk Guard Service - Test Configuration
# Enable permissive mode to avoid fail-fast in test environment
mosquito.callback.whitelist.permissive=true
mosquito.callback.allow-localhost=true
mosquito.callback.whitelist.ips=127.0.0.1,localhost,0:0:0:0:0:0:0:1,::1

# Disable Redis rate limiting in tests (use in-memory fallback)
mosquito.callback.rate-limit.use-redis=false

# Device fingerprint optional in tests
mosquito.callback.require.device.fingerprint=false

spring.datasource.url=jdbc:h2:mem:mosquito_${random.uuid};DB_CLOSE_DELAY=-1;MODE=PostgreSQL
spring.datasource.driverClassName=org.h2.Driver
spring.jpa.hibernate.ddl-auto=create-drop

# Ensure Flyway runs only migrations
spring.flyway.enabled=false
# spring.flyway.locations=classpath:db/migration_h2

# Disable approval template check in test environment (Flyway disabled = no templates = false alarms)
app.approval.template-check-enabled=false

# Keep cache enabled by default for cache-related tests; individual tests may override
spring.sql.init.mode=never
# spring.sql.init.schema-locations=classpath:db/schema.sql
