Skip to content

Commit

Permalink
Fix main build using h2 when running integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario committed Nov 8, 2022
1 parent e4c1207 commit 00c3e66
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
3 changes: 3 additions & 0 deletions servicebox-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@
</profile>
<profile>
<id>push-images</id>
<properties>
<quarkus.profile>postgresql</quarkus.profile>
</properties>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
servicebox.claiming-service.max-attempts=3
servicebox.claiming-service.poll-every=5m

# Database Configuration
quarkus.datasource.db-kind=postgresql
## TODO: to be deleted in https://github.com/halkyonio/primaza-poc/issues/62
quarkus.hibernate-orm.database.generation=drop-and-create
12 changes: 2 additions & 10 deletions servicebox-app/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ servicebox.claiming-service.max-attempts=3
servicebox.claiming-service.poll-every=5m

# Database Configuration
quarkus.datasource.db-kind=postgresql
quarkus.datasource.db-kind=h2
## TODO: to be deleted in https://github.com/halkyonio/primaza-poc/issues/62
quarkus.hibernate-orm.database.generation=drop-and-create

# Dev Mode Configuration
%dev.quarkus.datasource.db-kind=h2
%dev.quarkus.hibernate-orm.database.generation=drop-and-create

# Test Configuration
%test.quarkus.datasource.db-kind=h2
%test.quarkus.hibernate-orm.database.generation=drop-and-create
quarkus.hibernate-orm.database.generation=drop-and-create

0 comments on commit 00c3e66

Please sign in to comment.