diff --git a/src/test/resources/application-testMariadb.properties b/src/test/resources/application-testMariadb.properties deleted file mode 100644 index fd86a08d..00000000 --- a/src/test/resources/application-testMariadb.properties +++ /dev/null @@ -1,22 +0,0 @@ -# For testing -## AimeDb server setting -aimedb.server.enable=true -aimedb.server.port=22345 -allnet.server.host=localhost -allnet.server.port=80 -aimedb.server.address=127.0.0.1 -billing.server.enable=true -billing.server.port=8443 -## Http Server Port -server.port=80 -spring.flyway.clean-disabled=false -spring.flyway.locations=classpath:db/migration/mariadb -spring.datasource.driver-class-name=org.mariadb.jdbc.Driver -spring.datasource.username=aqua_test -spring.datasource.password=aqua_test -spring.datasource.url=jdbc:mariadb://localhost:3306/aqua_test?useSSL=false - -# if you got any exception like while application booting: -# "org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [id] in table [chusan_avatar]; found [int (Types#INTEGER)], but expecting [bigint (Types#BIGINT)]" -# just comment this property and try again. -# spring.jpa.hibernate.ddl-auto=validate diff --git a/src/test/resources/application-testSqlite.properties b/src/test/resources/application-testSqlite.properties deleted file mode 100644 index cf32adcc..00000000 --- a/src/test/resources/application-testSqlite.properties +++ /dev/null @@ -1,15 +0,0 @@ -# For testing -## AimeDb server setting -aimedb.server.enable=true -aimedb.server.port=22345 -allnet.server.host=localhost -allnet.server.port=80 -aimedb.server.address=127.0.0.1 -billing.server.enable=true -billing.server.port=8443 -## Http Server Port -server.port=80 -spring.flyway.clean-disabled=false -spring.datasource.driver-class-name=org.sqlite.JDBC -spring.datasource.url=jdbc:sqlite:data/test.sqlite -spring.flyway.locations=classpath:db/migration/sqlite diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index 91234b60..2343007c 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -1 +1,23 @@ -spring.profiles.active=testSqlite \ No newline at end of file +aqua-net.frontier.enabled=true +aqua-net.frontier.ftk=test + +# For testing +## AimeDb server setting +aimedb.server.enable=true +aimedb.server.port=22345 +allnet.server.host=localhost +allnet.server.port=80 +aimedb.server.address=127.0.0.1 +billing.server.enable=true +billing.server.port=8443 + +## Http Server Port +server.port=80 +spring.flyway.clean-disabled=false +spring.flyway.locations=classpath:db/migration/mariadb +spring.datasource.driver-class-name=org.mariadb.jdbc.Driver +spring.datasource.username=aqua_test +spring.datasource.password=aqua_test +spring.datasource.url=jdbc:mariadb://localhost:3306/aqua_test?useSSL=false + +# spring.jpa.hibernate.ddl-auto=validate