修改配置测试程序支持新增的业务
This commit is contained in:
@@ -564,7 +564,7 @@ public class MaatTestController {
|
||||
jsonString.append("1");
|
||||
} else if (srcName.toLowerCase().equals("isvalid")) {
|
||||
jsonString.append("1");
|
||||
} else if (srcName.toLowerCase().equals("cfgid")) {
|
||||
} else if (srcName.toLowerCase().equals("cfgid")||srcName.toLowerCase().equals("keyringid")||srcName.toLowerCase().equals("fileid")) {
|
||||
Long incrId = configRedisService.getIncrId("seq_compileid");
|
||||
compileIdList.add(incrId);
|
||||
jsonString.append(incrId);
|
||||
|
||||
@@ -108,10 +108,10 @@
|
||||
<![CDATA[AND SERVICE in (${searchService})]]>
|
||||
</if>
|
||||
<if test="searchReportStartTime != null and searchReportStartTime !=''">
|
||||
<![CDATA[AND REPORT_TIME >= STR_TO_DATE(#{searchReportStartTime},'%Y-%m-%d %H:%i:%s')]]>
|
||||
<![CDATA[AND REPORT_TIME > STR_TO_DATE(#{searchReportStartTime},'%Y-%m-%d %H:%i:%s')]]>
|
||||
</if>
|
||||
<if test="searchReportEndTime != null and searchReportEndTime !=''">
|
||||
<![CDATA[AND REPORT_TIME < STR_TO_DATE(#{searchReportEndTime},'%Y-%m-%d %H:%i:%s')]]>
|
||||
<![CDATA[AND REPORT_TIME <= STR_TO_DATE(#{searchReportEndTime},'%Y-%m-%d %H:%i:%s')]]>
|
||||
</if>
|
||||
</where>
|
||||
<choose>
|
||||
|
||||
@@ -433,7 +433,7 @@ public class MaatTestServiceimpl {
|
||||
}
|
||||
}
|
||||
key = keyBF.toString().toUpperCase();
|
||||
String[] valSplit = maatXmlExpr.getValueExpression().replace("; 0;\\n", "").replace("\\t", "")
|
||||
String[] valSplit = maatXmlExpr.getValueExpression().replace("; 0;\\n", "").replace("; ", "\\t").replace("\\n", "").replace("\\t", "")
|
||||
.split(";");
|
||||
for (String valStr : valSplit) {
|
||||
if (valStr != null && !valStr.trim().equals("")) {
|
||||
@@ -446,6 +446,14 @@ public class MaatTestServiceimpl {
|
||||
}
|
||||
}
|
||||
String val = JedisUtils.get(key, redisDb).replace(" ", "\t");
|
||||
|
||||
FileUtils.addStrToFile("\t\t入库的key=" + key + "\n", Configurations.getStringProperty("maatTestLogPath", ""),
|
||||
true);
|
||||
FileUtils.addStrToFile("\t\t入库的val=" + val, Configurations.getStringProperty("maatTestLogPath", ""),
|
||||
true);
|
||||
FileUtils.addStrToFile("\t\t表达式" + maatXmlExpr.getValueExpression() + "\n",
|
||||
Configurations.getStringProperty("maatTestLogPath", ""), true);
|
||||
|
||||
valArr = val.split("\\t");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class SyncRedisToCluster {
|
||||
// private JedisSentinelPool jedisSentinelPool;
|
||||
|
||||
// @Scheduled(cron = "0/3 * * * * ?")
|
||||
@Scheduled(cron = "${syncRedisToClusterCron}")
|
||||
//@Scheduled(cron = "${syncRedisToClusterCron}")
|
||||
public void syncRedisToCluster() {
|
||||
try {
|
||||
// keys("EFFECTIVE_RULE*");
|
||||
|
||||
@@ -307,7 +307,7 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:1
|
||||
#0x19 IPSec丢弃 25:5;
|
||||
#0x340 IP复用地址池配置(回调)832:2,4,5
|
||||
##########
|
||||
serviceDBIndex=1:2,3,4,5;2:2,3,4,5;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,5;34:2;35:2;36:2;37:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,5;146:2;147:2;148:2;149:2;256:2;257:2;258:2;259:2;260:2;267:2;384:2;385:2;386:2;387:2;388:2;395:2;512:4,5;513:4,2,5;514:4;515:4;517:4;520:4;521:4;528:4;544:4;560:4;576:4;592:4;608:4;750:4;768:4;1024:2,5;1025:2;1026:2,5;1027:2,5;1028:2,5;1029:2,5;1030:2,5;1031:2,5;1040:2,5;1041:2;1042:2;1152:2;3:5;4:5;5:2;25:5;28:5;64:2;65:2;261:3;262:3;263:3;264:3;265:2;266:2;268:3;269:3;270:3;389:3;390:3;391:3;392:3;393:2;394:2;396:3;397:3;398:3;832:2,4,7;
|
||||
#serviceDBIndex=1:2,3,4,5;2:2,3,4,5;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,5;34:2;35:2;36:2;37:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,5;146:2;147:2;148:2;149:2;256:2;257:2;258:2;259:2;260:2;267:2;384:2;385:2;386:2;387:2;388:2;395:2;512:4,5;513:4,2,5;514:4;515:4;517:4;520:4;521:4;528:4;544:4;560:4;576:4;592:4;608:4;750:4;768:4;1024:2,5;1025:2;1026:2,5;1027:2,5;1028:2,5;1029:2,5;1030:2,5;1031:2,5;1040:2,5;1041:2;1042:2;1152:2;3:5;4:5;5:2;25:5;28:5;64:2;65:2;261:3;262:3;263:3;264:3;265:2;266:2;268:3;269:3;270:3;389:3;390:3;391:3;392:3;393:2;394:2;396:3;397:3;398:3;832:2,4,7;
|
||||
|
||||
##########合库之前
|
||||
#系统简称对应的redisDBIndex: NTC(1255):2 MM(256511):3 PXY(512767):4 IR(7681023):5 DK(10241279):6 阀门:7
|
||||
@@ -341,7 +341,7 @@ serviceDBIndex=1:2,3,4,5;2:2,3,4,5;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;
|
||||
#0x19 IPSec丢弃 25:7;
|
||||
#0x340 IP复用地址池配置(回调)832:2,4,5,7
|
||||
|
||||
#serviceDBIndex=1:2,3,4,6,7;2:2,3,4,6,7;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,6,7;34:2;35:2,6;36:2,6;37:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,6;146:2;147:2,6;148:2,6;149:2;256:3;257:3;258:3;259:3;260:3;267:3;384:3;385:3;386:3;387:3;388:3;395:3;512:4,7;513:4,2,7;514:4;515:4;517:4;520:4;521:4;528:4;544:4;560:4;576:4;592:4;608:4;750:4;768:5;1024:2,6,7;1025:2;1026:2,6,7;1027:2,6,7;1028:2,6,7;1029:2,6,7;1030:2,6,7;1031:2,6,7;1040:2,6,7;1041:2,6,7;1042:2,6,7;1152:2,6;3:7;4:7;5:2;25:7;28:7;64:2;65:2;261:8;262:9;263:10;264:11;265:3;266:3;389:8;390:9;391:10;392:11;393:3;394:3;832:2,4,5,7;
|
||||
serviceDBIndex=1:2,3,4,6,7;2:2,3,4,6,7;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,6,7;34:2;35:2,6;36:2,6;37:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,6;146:2;147:2,6;148:2,6;149:2;256:3;257:3;258:3;259:3;260:3;267:3;384:3;385:3;386:3;387:3;388:3;395:3;512:4,7;513:4,2,7;514:4;515:4;517:4;520:4;521:4;528:4;544:4;560:4;576:4;592:4;608:4;750:4;768:5;1024:2,6,7;1025:2;1026:2,6,7;1027:2,6,7;1028:2,6,7;1029:2,6,7;1030:2,6,7;1031:2,6,7;1040:2,6,7;1041:2,6,7;1042:2,6,7;1152:2,6;3:7;4:7;5:2;25:7;28:7;64:2;65:2;261:8;262:9;263:10;264:11;265:3;266:3;268:12;269:12;270:12;389:8;390:9;391:10;392:11;393:3;394:3;396:12;397:12;398:12;832:2,4,5,7;
|
||||
##############################################################
|
||||
|
||||
##maat配置入阀门需要将编译中的部分参数写到域配置中,目前最多包含ACTION,SERVICE,USER_REGION三个属性
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
<!-- #0x208 PXY 证书管理 520=0:PXY_OBJ_KEYRING -->
|
||||
<t:commonSource serviceIds="520">
|
||||
<t:field fieldType="String" srcName="service" dstName="service" isRequired="true"/>
|
||||
<t:field fieldType="Number" srcName="keyringId" dstName="keyring_id" isRequired="true" isCfgId="true"/>
|
||||
<t:field fieldType="Number" srcName="keyringId" dstName="cfg_id" isRequired="true" isCfgId="true"/>
|
||||
<t:field fieldType="String" srcName="keyringName" dstName="keyring_name" isRequired="true"/>
|
||||
<t:field fieldType="String" srcName="keyringType" dstName="keyring_type" isRequired="true"/>
|
||||
<t:field fieldType="String" srcName="privateKeyFile" dstName="private_key_file" isRequired="true"/>
|
||||
@@ -154,7 +154,7 @@
|
||||
<!-- # 0x260 PXY 管控文件策略 608=0:PXY_OBJ_FILE -->
|
||||
<t:commonSource serviceIds="608">
|
||||
<t:field fieldType="String" srcName="service" dstName="service" isRequired="true"/>
|
||||
<t:field fieldType="Number" srcName="fileId" dstName="file_id" isRequired="true" isCfgId="true"/>
|
||||
<t:field fieldType="Number" srcName="fileId" dstName="cfg_id" isRequired="true" isCfgId="true"/>
|
||||
<t:field fieldType="String" srcName="fileDesc" dstName="file_desc" isRequired="true"/>
|
||||
<t:field fieldType="String" srcName="contentType" dstName="content_type" isRequired="true"/>
|
||||
<t:field fieldType="Number" srcName="contentLength" dstName="content_length" isRequired="true"/>
|
||||
|
||||
@@ -138,8 +138,8 @@
|
||||
</p:maatType>
|
||||
<p:maatType service="520">
|
||||
<p:expressions>
|
||||
<p:keyExpression>EFFECTIVE_RULE;:;{un_maat_table_name};,;[keyring_id]</p:keyExpression>
|
||||
<p:valueExpression>[keyring_id];\t;[service];\t;[keyring_name];\t;[keyring_type];\t;[private_key_file];\t;[public_key_file];\t;[expire_after];\t;[public_key_algo];\t;[crl];\t;[is_valid];\t;[op_time];&nbsp;0;\n</p:valueExpression>
|
||||
<p:keyExpression>EFFECTIVE_RULE;:;{un_maat_table_name};,;[cfg_id]</p:keyExpression>
|
||||
<p:valueExpression>[cfg_id];\t;[service];\t;[keyring_name];\t;[keyring_type];\t;[private_key_file];\t;[public_key_file];\t;[expire_after];\t;[public_key_algo];\t;[crl];\t;[is_valid];\t;[op_time];&nbsp;0;\n</p:valueExpression>
|
||||
</p:expressions>
|
||||
<p:sequences>
|
||||
<p:operation>1</p:operation>
|
||||
@@ -158,8 +158,8 @@
|
||||
</p:maatType>
|
||||
<p:maatType service="608">
|
||||
<p:expressions>
|
||||
<p:keyExpression>EFFECTIVE_RULE;:;{un_maat_table_name};,;[file_id]</p:keyExpression>
|
||||
<p:valueExpression>[file_id];\t;[service];\t;[file_desc];\t;[content_type];\t;[content_length];\t;[file_path];\t;[is_valid];\t;[op_time];&nbsp;0;\n</p:valueExpression>
|
||||
<p:keyExpression>EFFECTIVE_RULE;:;{un_maat_table_name};,;[cfg_id]</p:keyExpression>
|
||||
<p:valueExpression>[cfg_id];\t;[service];\t;[file_desc];\t;[content_type];\t;[content_length];\t;[file_path];\t;[is_valid];\t;[op_time];&nbsp;0;\n</p:valueExpression>
|
||||
</p:expressions>
|
||||
<p:sequences>
|
||||
<p:operation>1</p:operation>
|
||||
|
||||
Reference in New Issue
Block a user