# Profil test d'intégration — utilise Quarkus DevServices (PostgreSQL via Testcontainers)
# Activé via @QuarkusTestProfile ou -Dquarkus.test.profile=integration-test
# Quarkus démarre automatiquement un conteneur PostgreSQL (Docker requis)

quarkus.datasource.db-kind=postgresql
# Pas de JDBC URL → Quarkus DevServices démarre un conteneur PostgreSQL automatiquement
quarkus.datasource.username=unionflow_test
quarkus.datasource.password=unionflow_test

quarkus.hibernate-orm.schema-management.strategy=drop-and-create
quarkus.flyway.enabled=true
quarkus.flyway.migrate-at-start=true

# Keycloak — désactivé pour les tests d'intégration DB
quarkus.oidc.tenant-enabled=false
quarkus.keycloak.policy-enforcer.enable=false

# Kafka — in-memory connector (pas de broker requis)
mp.messaging.outgoing.finance-approvals-out.connector=smallrye-in-memory
mp.messaging.outgoing.dashboard-stats-out.connector=smallrye-in-memory
mp.messaging.outgoing.notifications-out.connector=smallrye-in-memory
mp.messaging.outgoing.members-events-out.connector=smallrye-in-memory
mp.messaging.outgoing.contributions-events-out.connector=smallrye-in-memory
mp.messaging.incoming.finance-approvals-in.connector=smallrye-in-memory
mp.messaging.incoming.dashboard-stats-in.connector=smallrye-in-memory
mp.messaging.incoming.notifications-in.connector=smallrye-in-memory
mp.messaging.incoming.members-events-in.connector=smallrye-in-memory
mp.messaging.incoming.contributions-events-in.connector=smallrye-in-memory

# HTTP port dynamique
quarkus.http.port=0
quarkus.http.test-port=0

# Mailer — mock
quarkus.mailer.mock=true

# Wave — mock
wave.mock.enabled=true
wave.api.key=test-wave-api-key
wave.api.secret=test-wave-api-secret
wave.redirect.base.url=http://localhost:8080
