diff --git a/dropwizard-app/src/test/java/bitxon/dropwizard/test/AbstractDropwizardTest.java b/dropwizard-app/src/test/java/bitxon/dropwizard/test/AbstractDropwizardTest.java index 215f653..53a81e4 100644 --- a/dropwizard-app/src/test/java/bitxon/dropwizard/test/AbstractDropwizardTest.java +++ b/dropwizard-app/src/test/java/bitxon/dropwizard/test/AbstractDropwizardTest.java @@ -32,11 +32,12 @@ abstract class AbstractDropwizardTest { .withMethod("GET") .forStatusCode(200)); static DropwizardTestSupport APP = new DropwizardTestSupport<>(DropwizardApplication.class, - ResourceHelpers.resourceFilePath("config-test.yml"), + ResourceHelpers.resourceFilePath("config.yml"), ConfigOverrideRandomPorts.randomPorts(), config("database.url", DB::getJdbcUrl), config("database.user", DB::getUsername), config("database.password", DB::getPassword), + config("database.properties.hibernate.hbm2ddl.auto", "none"), config("exchangeClientConfig.basePath", () -> String.format("http://%s:%s/exchanges?currency=", WIREMOCK.getHost(), WIREMOCK.getMappedPort(8080))) ); diff --git a/dropwizard-app/src/test/resources/config-test.yml b/dropwizard-app/src/test/resources/config-test.yml deleted file mode 100644 index b588908..0000000 --- a/dropwizard-app/src/test/resources/config-test.yml +++ /dev/null @@ -1,30 +0,0 @@ -# Dropwizard doesn't support test profiles out of the box, -# that is why we need to define all properties from scratch - -server: - applicationConnectors: - - type: http - port: 0 - adminConnectors: - - type: http - port: 0 - -database: - driverClass: org.postgresql.Driver - user: 'will-be-replaced-in-test' - password: 'will-be-replaced-in-test' - url: 'will-be-replaced-in-test' - properties: - hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect - hibernate.hbm2ddl.auto: none - #hibernate.show_sql: true - #hibernate.hbm2ddl.import_files: - -exchangeClientConfig: - basePath: 'will-be-replaced-in-test' - -logging: - level: INFO - loggers: - bitxon.dropwizard: DEBUG - org.hibernate.engine.internal.StatisticalLoggingSessionEventListener: ERROR