diff --git a/.github/workflows/suggestions.yml b/.github/workflows/suggestions.yml index d301f3df7..df5dc7976 100644 --- a/.github/workflows/suggestions.yml +++ b/.github/workflows/suggestions.yml @@ -68,7 +68,7 @@ jobs: run: mvn -f ../etl/pom.xml clean compile install -DskipTests=true - name: Initialize test db with reference data - run: mvn clean compile -f../etl/etl-updatedb/pom.xml exec:java -Dspring.profiles.active=test -Dexec.mainClass=fr.gouv.monprojetsup.data.etl.UpdateMpsDbKt + run: mvn clean compile -f../etl/etl-updatedb/pom.xml exec:java -Dspring.profiles.active=test_suggestions -Dexec.mainClass=fr.gouv.monprojetsup.data.etl.UpdateMpsDbKt env: DB_URL: jdbc:postgresql://localhost:${{ env.APP_DB_PORT }}/${{ env.APP_DB }} DB_USER: ${{ env.APP_DB_USERNAME }} diff --git a/app/etl/etl-updatedb/src/main/kotlin/fr/gouv/monprojetsup/data/etl/formation/UpdateFormationDbs.kt b/app/etl/etl-updatedb/src/main/kotlin/fr/gouv/monprojetsup/data/etl/formation/UpdateFormationDbs.kt index f9d741da6..04518dae8 100644 --- a/app/etl/etl-updatedb/src/main/kotlin/fr/gouv/monprojetsup/data/etl/formation/UpdateFormationDbs.kt +++ b/app/etl/etl-updatedb/src/main/kotlin/fr/gouv/monprojetsup/data/etl/formation/UpdateFormationDbs.kt @@ -240,12 +240,12 @@ class UpdateFormationDbs( } - fun isTestProfileActive(): Boolean { - return environment.activeProfiles.contains("test") + fun isTestSuggestionsProfileActive(): Boolean { + return environment.activeProfiles.contains("test_suggestions") } fun updateVillesVoeuxDb() { - val onlyParis20 = isTestProfileActive() + val onlyParis20 = isTestSuggestionsProfileActive() val cities = mpsDataPort.getCities() .sortedBy { it.nom }