From 00c3e668ca1eef85313400c88085982558e830d2 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 8 Nov 2022 16:06:09 +0100 Subject: [PATCH] Fix main build using h2 when running integration tests --- servicebox-app/pom.xml | 3 +++ .../main/resources/application-postgresql.properties | 7 +++++++ .../src/main/resources/application.properties | 12 ++---------- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 servicebox-app/src/main/resources/application-postgresql.properties diff --git a/servicebox-app/pom.xml b/servicebox-app/pom.xml index 55525385..8abad6f4 100644 --- a/servicebox-app/pom.xml +++ b/servicebox-app/pom.xml @@ -160,6 +160,9 @@ push-images + + postgresql + io.quarkus diff --git a/servicebox-app/src/main/resources/application-postgresql.properties b/servicebox-app/src/main/resources/application-postgresql.properties new file mode 100644 index 00000000..f68e594e --- /dev/null +++ b/servicebox-app/src/main/resources/application-postgresql.properties @@ -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 \ No newline at end of file diff --git a/servicebox-app/src/main/resources/application.properties b/servicebox-app/src/main/resources/application.properties index 9c2590be..2b17cb3d 100644 --- a/servicebox-app/src/main/resources/application.properties +++ b/servicebox-app/src/main/resources/application.properties @@ -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 \ No newline at end of file