Skip to content

Commit

Permalink
Fix ps-cs service unit test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
“v_kkhuang” committed Sep 20, 2024
1 parent c19441c commit 7ad7aa7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -33,3 +42,7 @@ management:
web:
exposure:
include: refresh,info

knife4j:
enable: false
production: false
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
) ;

0 comments on commit 7ad7aa7

Please sign in to comment.