enhancement #I4OQIX 组件执行轨迹日志级别调整

This commit is contained in:
bryan31
2022-01-05 22:49:42 +08:00
parent 5e0aef9349
commit 1442dda987
29 changed files with 74 additions and 63 deletions

View File

@@ -47,7 +47,7 @@ public class LiteflowJsonScriptFileQLExpressTest extends BaseTest {
public void testScript2() {
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().getExecuteStepStr());
}
@Test
@@ -55,7 +55,7 @@ public class LiteflowJsonScriptFileQLExpressTest extends BaseTest {
//根据配置加载的应该是flow.xml执行原来的规则
LiteflowResponse<DefaultSlot> responseOld = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseOld.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().getExecuteStepStr());
//更改规则重新加载更改的规则内容从flow_update.xml里读取这里只是为了模拟下获取新的内容。不一定是从文件中读取
String newContent = ResourceUtil.readUtf8Str("classpath: /json-script-file/flow_update.json");
//进行刷新
@@ -64,7 +64,7 @@ public class LiteflowJsonScriptFileQLExpressTest extends BaseTest {
//重新执行chain2这个链路结果会变
LiteflowResponse<DefaultSlot> responseNew = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseNew.isSuccess());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().getExecuteStepStr());
}
//测试脚本&规则平滑重载刷新

View File

@@ -47,7 +47,7 @@ public class LiteflowJsonScriptQLExpressTest extends BaseTest {
public void testScript2() {
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().getExecuteStepStr());
}
@Test
@@ -55,7 +55,7 @@ public class LiteflowJsonScriptQLExpressTest extends BaseTest {
//根据配置加载的应该是flow.xml执行原来的规则
LiteflowResponse<DefaultSlot> responseOld = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseOld.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().getExecuteStepStr());
//更改规则重新加载更改的规则内容从flow_update.xml里读取这里只是为了模拟下获取新的内容。不一定是从文件中读取
String newContent = ResourceUtil.readUtf8Str("classpath: /json-script/flow_update.json");
//进行刷新
@@ -64,6 +64,6 @@ public class LiteflowJsonScriptQLExpressTest extends BaseTest {
//重新执行chain2这个链路结果会变
LiteflowResponse<DefaultSlot> responseNew = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseNew.isSuccess());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().getExecuteStepStr());
}
}

View File

@@ -47,7 +47,7 @@ public class LiteflowXmlScriptFileQLExpressTest extends BaseTest {
public void testScript2() {
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().getExecuteStepStr());
}
@Test
@@ -55,7 +55,7 @@ public class LiteflowXmlScriptFileQLExpressTest extends BaseTest {
//根据配置加载的应该是flow.xml执行原来的规则
LiteflowResponse<DefaultSlot> responseOld = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseOld.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().getExecuteStepStr());
//更改规则重新加载更改的规则内容从flow_update.xml里读取这里只是为了模拟下获取新的内容。不一定是从文件中读取
String newContent = ResourceUtil.readUtf8Str("classpath: /xml-script-file/flow_update.xml");
//进行刷新
@@ -64,7 +64,7 @@ public class LiteflowXmlScriptFileQLExpressTest extends BaseTest {
//重新执行chain2这个链路结果会变
LiteflowResponse<DefaultSlot> responseNew = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseNew.isSuccess());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().getExecuteStepStr());
}
//测试脚本&规则平滑重载刷新

View File

@@ -47,7 +47,7 @@ public class LiteflowXmlScriptQLExpressTest extends BaseTest {
public void testScript2() {
LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(response.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", response.getSlot().getExecuteStepStr());
}
@Test
@@ -55,7 +55,7 @@ public class LiteflowXmlScriptQLExpressTest extends BaseTest {
//根据配置加载的应该是flow.xml执行原来的规则
LiteflowResponse<DefaultSlot> responseOld = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseOld.isSuccess());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本]==>b", responseOld.getSlot().getExecuteStepStr());
//更改规则重新加载更改的规则内容从flow_update.xml里读取这里只是为了模拟下获取新的内容。不一定是从文件中读取
String newContent = ResourceUtil.readUtf8Str("classpath: /xml-script/flow_update.xml");
//进行刷新
@@ -64,6 +64,6 @@ public class LiteflowXmlScriptQLExpressTest extends BaseTest {
//重新执行chain2这个链路结果会变
LiteflowResponse<DefaultSlot> responseNew = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(responseNew.isSuccess());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().printStep());
Assert.assertEquals("d==>s2[条件脚本_改]==>a==>s3[普通脚本_新增]", responseNew.getSlot().getExecuteStepStr());
}
}