Skip to content

Commit

Permalink
changed suggestion test profile name
Browse files Browse the repository at this point in the history
  • Loading branch information
Numero7 committed Jan 15, 2025
1 parent 289e0c2 commit c414c09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/suggestions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit c414c09

Please sign in to comment.