Skip to content

Commit

Permalink
avniproject/avni-infra#41 | Fix minor issues with integration test db…
Browse files Browse the repository at this point in the history
… setup
  • Loading branch information
himeshr committed Nov 11, 2024
1 parent f967551 commit a9b7a3e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ build-db-schema:
psql -h localhost -p $(dbPort) -U avni_int -d avni_int < integration-data/src/main/resources/db/util/superadmin.sql;

build-test-db-schema:
./gradlew --stacktrace :integration-data:migrateDb
./gradlew --stacktrace :integration-data:migrateTestDb
psql -h localhost -p $(dbPort) -U avni_int -d avni_int_test < integration-data/src/main/resources/db/util/superadmin.sql;

drop-db:
Expand Down
15 changes: 15 additions & 0 deletions integration-data/src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ avni.impl.user.id=-1
app.config.tx.rollback=true

spring.datasource.url=jdbc:postgresql://localhost:5432/avni_int_test

# Database
avni.int.database=${AVNI_INT_DATABASE:avni_int_test}
avni.int.database.port=${AVNI_INT_DATABASE_PORT:5432}
spring.datasource.username=${AVNI_INT_DB_USER:avni_int}
spring.datasource.password=${AVNI_INT_DB_PASSWORD:password}
spring.datasource.driverClassName=org.postgresql.Driver

#Flyway
spring.flyway.enabled=${FLYWAY_ENABLED:true}
spring.flyway.locations=classpath:/db/migration
spring.flyway.outOfOrder=true
spring.flyway.ignoreMissingMigrations=true

app.config.location=${INT_CONFIG_LOCATION:dummy}

0 comments on commit a9b7a3e

Please sign in to comment.