32 lines
1.4 KiB
Properties
32 lines
1.4 KiB
Properties
# Configuration de test : vraie base PostgreSQL loremind_test.
|
|
#
|
|
# La base `loremind_test` doit exister sur l'instance locale (port 5432).
|
|
# Les credentials sont ceux de `.env` a la racine du projet ; on les duplique
|
|
# ici car les tests Maven ne chargent pas le .env.
|
|
#
|
|
# Surchargables via variables d'environnement (CI) :
|
|
# SPRING_DATASOURCE_URL, SPRING_DATASOURCE_USERNAME, SPRING_DATASOURCE_PASSWORD
|
|
spring.datasource.url=${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/loremind_test}
|
|
spring.datasource.username=${SPRING_DATASOURCE_USERNAME:ietm64}
|
|
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD:M&Ipourlavie64}
|
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
|
|
|
# Configuration JPA pour les tests : schema recree a chaque run, pas de logs SQL.
|
|
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
|
|
spring.jpa.hibernate.ddl-auto=create-drop
|
|
spring.jpa.show-sql=false
|
|
|
|
# Credentials admin factices pour satisfaire le fail-closed de SecurityConfig.
|
|
admin.username=test-admin
|
|
admin.password=test-admin-password
|
|
|
|
# Brain et MinIO : URLs factices — aucun appel reseau attendu dans les tests
|
|
# de persistence. MinioConfig est tolerant (PostConstruct capture).
|
|
brain.base-url=http://localhost:0
|
|
brain.timeout-seconds=5
|
|
brain.internal-secret=test-secret
|
|
minio.endpoint=http://localhost:9000
|
|
minio.access-key=test
|
|
minio.secret-key=test
|
|
minio.bucket=test-bucket
|