diff --git a/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/pom.xml b/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/pom.xml index c7cc3c43d..d47c6904e 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/pom.xml +++ b/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/pom.xml @@ -3,9 +3,10 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - liteflow + liteflow-testcase-el com.yomahub - 2.9.4 + ${revision} + ../pom.xml 4.0.0 @@ -34,5 +35,17 @@ ${revision} test + + + cn.hutool + hutool-core + ${hutool-core.version} + + + + com.yomahub + liteflow-script-groovy + ${revision} + \ No newline at end of file diff --git a/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/java/com/yomahub/liteflow/test/apollo/ApolloWithXmlELSpringbootTest.java b/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/java/com/yomahub/liteflow/test/apollo/ApolloWithXmlELSpringbootTest.java index 80de48c80..fa9e229c8 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/java/com/yomahub/liteflow/test/apollo/ApolloWithXmlELSpringbootTest.java +++ b/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/java/com/yomahub/liteflow/test/apollo/ApolloWithXmlELSpringbootTest.java @@ -40,9 +40,17 @@ public class ApolloWithXmlELSpringbootTest { @Test public void testApolloWithXml1() throws InterruptedException { LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg"); - Thread.sleep(2000l); - Assert.assertEquals("a==>b==>c==>c==>b==>a", response.getExecuteStepStrWithoutTime()); + Assert.assertEquals("a==>b==>c==>s1[脚本s1]", response.getExecuteStepStrWithoutTime()); } + @Test + public void testApolloWithXml2() throws InterruptedException { + while (true) { + LiteflowResponse response = flowExecutor.execute2Resp("chain1", "arg"); + System.out.println("liteflow step : " + response.getExecuteStepStrWithoutTime()); + Thread.sleep(2000l); + } + } + } diff --git a/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/resources/apollo/application-xml.properties b/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/resources/apollo/application-xml.properties index fbc7690ee..366b1dc36 100644 --- a/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/resources/apollo/application-xml.properties +++ b/liteflow-testcase-el/liteflow-testcase-el-apollo-springboot/src/test/resources/apollo/application-xml.properties @@ -1,2 +1,2 @@ -liteflow.rule-source-ext-data={"namespace":"liteflowConfig"} +liteflow.rule-source-ext-data={"chainNamespace":"chainConfig","scriptNamespace":"scriptConfig"} liteflow.parse-on-start=false \ No newline at end of file