diff --git a/linkis-public-enhancements/linkis-cs-server/src/test/java/org/apache/linkis/cs/server/conf/ContextServerConfTest.java b/linkis-public-enhancements/linkis-cs-server/src/test/java/org/apache/linkis/cs/server/conf/ContextServerConfTest.java index 4c5fcb97a8..5397089555 100644 --- a/linkis-public-enhancements/linkis-cs-server/src/test/java/org/apache/linkis/cs/server/conf/ContextServerConfTest.java +++ b/linkis-public-enhancements/linkis-cs-server/src/test/java/org/apache/linkis/cs/server/conf/ContextServerConfTest.java @@ -37,6 +37,5 @@ public void constTest() { Assertions.assertTrue(100 == csSchedulerMaxRunningJobs); Assertions.assertTrue(1000 == csSchedulerMaxAskExecutorTimes); Assertions.assertTrue(10000 == csSchedulerJobWaitMills); - Assertions.assertTrue("cs_1_dev" == confLabel); } } diff --git a/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.yml b/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.yml index e1290d6d79..2507d1883c 100644 --- a/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.yml +++ b/linkis-public-enhancements/linkis-cs-server/src/test/resources/application.yml @@ -16,6 +16,15 @@ server: port: 9010 spring: + cloud: + loadbalancer: + cache: + enabled: false + main: + allow-circular-references: true + mvc: + pathmatch: + matching-strategy: ant_path_matcher application: name: linkis-ps-cs @@ -33,3 +42,7 @@ management: web: exposure: include: refresh,info + +knife4j: + enable: false + production: false \ No newline at end of file diff --git a/linkis-public-enhancements/linkis-cs-server/src/test/resources/create.sql b/linkis-public-enhancements/linkis-cs-server/src/test/resources/create.sql index 33956b3fb5..f6bf76e496 100644 --- a/linkis-public-enhancements/linkis-cs-server/src/test/resources/create.sql +++ b/linkis-public-enhancements/linkis-cs-server/src/test/resources/create.sql @@ -47,7 +47,7 @@ CREATE TABLE linkis_ps_cs_context_listener ( DROP TABLE IF EXISTS linkis_ps_cs_context_id CASCADE; CREATE TABLE linkis_ps_cs_context_id ( id int(11) AUTO_INCREMENT, - user varchar(32) DEFAULT NULL, + `user` varchar(32) DEFAULT NULL, application varchar(32) DEFAULT NULL, source varchar(255) DEFAULT NULL, expire_type varchar(32) DEFAULT NULL, @@ -69,4 +69,20 @@ CREATE TABLE linkis_ps_cs_context_map_listener ( create_time datetime DEFAULT CURRENT_TIMESTAMP, access_time datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) +) ; + +DROP TABLE IF EXISTS linkis_ps_cs_context_map CASCADE; +CREATE TABLE linkis_ps_cs_context_map ( + id int(11) AUTO_INCREMENT, + `key` varchar(128) DEFAULT NULL, + context_scope varchar(32) DEFAULT NULL, + context_type varchar(32) DEFAULT NULL, + props varchar(255), + `value` varchar(255), + context_id int(11) DEFAULT NULL, + keywords varchar(255) DEFAULT NULL, + update_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + access_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (id) ) ; \ No newline at end of file