Skip to content

Commit

Permalink
Use a different DB in test
Browse files Browse the repository at this point in the history
- Fixes #28618

(cherry picked from commit afcb4e6)
  • Loading branch information
gastaldi authored and gsmet committed Oct 18, 2022
1 parent 2525e84 commit 01568c2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
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
@@ -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
@@ -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 01568c2

Please sign in to comment.