Skip to content

Commit

Permalink
Use a different DB in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Oct 17, 2022
1 parent faa924c commit afcb4e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class FlywayExtensionRepairAtStartTest {
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class)
.addClass(FlywayResource.class)
.addAsResource("db/migration/V1.0.0__Quarkus.sql")
.addAsResource("migrate-at-start-config.properties", "application.properties"))
.addAsResource("repair-at-start-config.properties", "application.properties"))
.setLogRecordPredicate(r -> true)
.setAllowFailedStart(true);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
quarkus.datasource.db-kind=h2
quarkus.datasource.username=sa
quarkus.datasource.password=sa
quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost/mem:test-quarkus-migrate-at-start;DB_CLOSE_DELAY=-1
quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost/mem:init-sql-config;DB_CLOSE_DELAY=-1

# Flyway config properties
quarkus.flyway.migrate-at-start=true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
quarkus.datasource.db-kind=h2
quarkus.datasource.username=sa
quarkus.datasource.password=sa
quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost/mem:test-quarkus-repair-at-start;DB_CLOSE_DELAY=-1

# Flyway config properties
quarkus.flyway.migrate-at-start=true

0 comments on commit afcb4e6

Please sign in to comment.