Skip to content

Commit

Permalink
Run e2e-tests against PostgreSQL
Browse files Browse the repository at this point in the history
Signed-off-by: appiepollo14 <[email protected]>
  • Loading branch information
appiepollo14 committed Oct 3, 2024
1 parent ae5b7fc commit 51972e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ jobs:
run: mvn -B package --file pom.xml
- name: Setup K6
uses: grafana/setup-k6-action@v1
# Run e2e-tests against PostgreSQL
- name: Start app
env:
QUARKUS_DATASOURCE_DB_KIND: postgresql
QUARKUS_DATASOURCE_JDBC_DRIVER: org.postgresql.Driver
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://localhost:5432/postgres
QUARKUS_DATASOURCE_USERNAME: postgres
QUARKUS_DATASOURCE_PASSWORD: 123456
shell: bash
run: |
nohup java -jar target/quarkus-app/quarkus-run.jar & sleep 10s
Expand Down
17 changes: 4 additions & 13 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
quarkus.resteasy.path=/api
# Database configuration

# Default database configuration
quarkus.datasource.db-kind=h2
quarkus.datasource.jdbc.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
quarkus.datasource.jdbc.driver=org.h2.Driver
quarkus.datasource.username=sa
quarkus.datasource.password=
# For native-image
#quarkus.datasource.db-kind=postgresql
#quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/postgres
#quarkus.datasource.jdbc.driver=org.postgresql.Driver
#quarkus.datasource.username=postgres
#quarkus.datasource.password=123456
#quarkus.hibernate-orm.jdbc.statement-batch-size=100
quarkus.hibernate-orm.database.generation=drop-and-create
#quarkus.package.output-name=realworld-api-quarkus
#quarkus.native.additional-build-args=-H:ResourceConfigurationFiles=resources-config.json
#quarkus.log.level=DEBUG
#quarkus.hibernate-orm.log.sql=true

# JWT settings
jwt.issuer=users-service
jwt.secret=secret123
jwt.expiration.time.minutes=10
12 changes: 0 additions & 12 deletions src/test/resources/application.properties

This file was deleted.

0 comments on commit 51972e9

Please sign in to comment.