mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
enhancement #I4OQIX 组件执行轨迹日志级别调整
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
//测试脚本&规则平滑重载刷新
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
//测试脚本&规则平滑重载刷新
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user