From 04a7b76b38fab3ef37f473266a92c877905a32ca Mon Sep 17 00:00:00 2001 From: qiaozhanwei Date: Thu, 26 Dec 2019 16:43:31 +0800 Subject: [PATCH] add AccessTokenMapperTest UT (#1588) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove LogViewServiceGrpc.java file and pom modify * remove kazoo * remove kazoo * remove kazoo * remove common monitor package * add license * remove kazoo modify * remove kazoo modify * remove kazoo modify * remove kazoo modify * remove kazoo modify * remove kazoo modify * install.sh remove python kazoo * add system param whether repeat running * remove kazoo modify * BusinessTimeUtils remove whther repeat running inner param * add AccessTokenMapperTest UT * CI UT yml modify,start postgresql and zookeeper by default --- .github/workflows/ci_ut.yml | 2 +- .../src/main/resources/application-dao.properties | 6 +++--- pom.xml | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_ut.yml b/.github/workflows/ci_ut.yml index ae4d749159..c415d35619 100644 --- a/.github/workflows/ci_ut.yml +++ b/.github/workflows/ci_ut.yml @@ -39,7 +39,7 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: Bootstrap database - run: cd ${DOCKER_DIR} && docker-compose up -d db + run: cd ${DOCKER_DIR} && docker-compose up -d - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: diff --git a/dolphinscheduler-dao/src/main/resources/application-dao.properties b/dolphinscheduler-dao/src/main/resources/application-dao.properties index 926d8dbb2f..07abe37835 100644 --- a/dolphinscheduler-dao/src/main/resources/application-dao.properties +++ b/dolphinscheduler-dao/src/main/resources/application-dao.properties @@ -19,12 +19,12 @@ spring.datasource.type=com.alibaba.druid.pool.DruidDataSource # postgre spring.datasource.driver-class-name=org.postgresql.Driver -spring.datasource.url=jdbc:postgresql://192.168.xx.xx:5432/dolphinscheduler +spring.datasource.url=jdbc:postgresql://localhost:5432/dolphinscheduler # mysql #spring.datasource.driver-class-name=com.mysql.jdbc.Driver #spring.datasource.url=jdbc:mysql://192.168.xx.xx:3306/dolphinscheduler?useUnicode=true&characterEncoding=UTF-8 -spring.datasource.username=xx -spring.datasource.password=xx +spring.datasource.username=test +spring.datasource.password=test # connection configuration spring.datasource.initialSize=5 diff --git a/pom.xml b/pom.xml index 5b80ee1e3b..83a6b45e10 100644 --- a/pom.xml +++ b/pom.xml @@ -656,6 +656,7 @@ **/alert/utils/PropertyUtilsTest.java **/server/utils/SparkArgsUtilsTest.java **/server/utils/FlinkArgsUtilsTest.java + **/dao/mapper/AccessTokenMapperTest.java