From 0c564fd9174b080af23a659e5e15480e17f88fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cv=5Fkkhuang=E2=80=9D?= <“420895376@qq.com”> Date: Mon, 23 Sep 2024 18:56:00 +0800 Subject: [PATCH] fix linkis-pes-public unit testing errors --- .../src/test/resources/application.properties | 41 ++++++++----------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/linkis-public-enhancements/linkis-pes-publicservice/src/test/resources/application.properties b/linkis-public-enhancements/linkis-pes-publicservice/src/test/resources/application.properties index 1683f62400..98efb07357 100644 --- a/linkis-public-enhancements/linkis-pes-publicservice/src/test/resources/application.properties +++ b/linkis-public-enhancements/linkis-pes-publicservice/src/test/resources/application.properties @@ -30,26 +30,21 @@ wds.linkis.login_encrypt.enable=false #logging.file=./test.log #debug=true -#ng.datasource.driver-class-name=org.h2.Driver -#spring.datasource.url=jdbc:h2:mem:test;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true -#spring.datasource.schema=classpath:create.sql -#spring.datasource.data=classpath:data.sql -##spring.datasource.username=sa -#spring.datasource.password= -#spring.datasource.hikari.connection-test-query=select 1 -##spring.datasource.hikari.minimum-idle=5 -#spring.datasource.hikari.auto-commit=true -#spring.datasource.hikari.validation-timeout=3000 -#spring.datasource.hikari.pool-name=linkis-test -#spring.datasource.hikari.maximum-pool-size=50 -#spring.datasource.hikari.connection-timeout=30000 -#spring.datasource.hikari.idle-timeout=600000 -#spring.datasource.hikari.leak-detection-threshold=0 -#spring.datasource.hikari.initialization-fail-timeout=1 - -#spring.main.web-application-type=servlet -#server.port=1234 -#spring.h2.console.enabled=true +#h2 database config +spring.datasource.driver-class-name=org.h2.Driver +#init +spring.datasource.url=jdbc:h2:mem:test;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true +spring.datasource.username=sa +spring.datasource.password= +#spring.sql.init.schema-locations=classpath:create.sql +#spring.sql.init.data-locations =classpath:data.sql +springfox.documentation.enabled=false +springfox.documentation.auto-startup=false +springfox.documentation.swagger-ui.enabled=false + +spring.main.web-application-type=servlet +server.port=1234 +spring.h2.console.enabled=true #disable eureka discovery client spring.cloud.service-registry.auto-registration.enabled=false @@ -57,7 +52,7 @@ eureka.client.enabled=false eureka.client.serviceUrl.registerWithEureka=false linkis.workspace.filesystem.auto.create=true -#mybatis-plus.mapper-locations=classpath*:mapper/common/*.xml,classpath*:mapper/mysql/*.xml -#mybatis-plus.type-aliases-package=org.apache.linkis.udf.entity -#mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl +mybatis-plus.mapper-locations=classpath*:mapper/common/*.xml,classpath*:mapper/mysql/*.xml +mybatis-plus.type-aliases-package=org.apache.linkis.udf.entity +mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl