From 3a85cc36a4d45aa11f96e7332cb0cfab37dd2249 Mon Sep 17 00:00:00 2001 From: zhanghua <964552300@qq.com> Date: Mon, 5 Dec 2022 01:18:24 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=B5=8B=E8=AF=95Apollo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pom.xml | 17 +++++++++++++++-- .../apollo/ApolloWithXmlELSpringbootTest.java | 12 ++++++++++-- .../resources/apollo/application-xml.properties | 2 +- 3 files changed, 26 insertions(+), 5 deletions(-) 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