From 788e651b9234fbfeb2bb4cc052fecb06a10ef70f Mon Sep 17 00:00:00 2001 From: Ganesh Chandrasekaran Date: Tue, 19 Jun 2018 16:01:12 +0900 Subject: CCSDK PropNode can read XML and put to ctx Issue-ID: CCSDK-303 Change-Id: I7104e7f8735d0c1496e93cdb8112e49333b016e9 Signed-off-by: Ganesh Chandrasekaran --- .../provider/src/test/resources/test.xml | 182 +++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 properties-node/provider/src/test/resources/test.xml (limited to 'properties-node/provider/src/test/resources/test.xml') diff --git a/properties-node/provider/src/test/resources/test.xml b/properties-node/provider/src/test/resources/test.xml new file mode 100644 index 000000000..1974f688e --- /dev/null +++ b/properties-node/provider/src/test/resources/test.xml @@ -0,0 +1,182 @@ + + + + + 4.0.0 + + org.onap.ccsdk.sli.plugins + restapi-call-node + 6.0.0-SNAPSHOT + + restapi-call-node-provider + bundle + RESTAPI Call Node - Provider + http://maven.apache.org + + UTF-8 + + + + junit + junit + test + + + org.springframework + spring-test + 3.1.4.RELEASE + test + + + org.onap.ccsdk.sli + sli-common + compile + + + org.onap.ccsdk.sli + sli-provider + compile + + + org.slf4j + slf4j-api + ${slf4j.version} + + + org.slf4j + jcl-over-slf4j + ${slf4j.version} + + + org.springframework + spring-beans + 3.1.4.RELEASE + + + org.springframework + spring-context + 3.1.4.RELEASE + + + xerces + xerces + 2.4.0 + provided + + + com.sun.jersey + jersey-client + 1.17 + + + com.sun.jersey.contribs.jersey-oauth + oauth-signature + 1.17 + + + com.sun.jersey.contribs.jersey-oauth + oauth-client + 1.17 + + + commons-codec + commons-codec + + + + + + + com.brocade.developer + providermodule-plugin + + org.onap.ccsdk.sli.plugins + restapi-call-node + + + + process-sources + + process + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + org.onap.ccsdk.sli.plugins.restapicall + org.onap.ccsdk.sli.plugins.restapicall + * + + + ${project.basedir}/src/main/resources/META-INF + + + + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + com.brocade.developer + + + providermodule-plugin + + + [1.2.0.100-SNAPSHOT,) + + + process + + + + + + + + + + + + + + -- cgit 1.2.3-korg From 271a15d2c98e4bd95963ca4733b469833bbc7905 Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Fri, 15 Mar 2019 16:19:33 -0400 Subject: Remove -SNAPSHOT from test Jenkins staging plugin strips the string '-SNAPSHOT' from all xml files. Updated test case not to use a snapshot version in test data. Change-Id: I225b9a731bea2f21233327e4063ad841f0893f82 Issue-ID: CCSDK-1156 Signed-off-by: Timoney, Dan (dt5972) --- .../jtest/org/onap/ccsdk/sli/plugins/prop/TestPropertiesNode.java | 8 ++++---- properties-node/provider/src/test/resources/test.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'properties-node/provider/src/test/resources/test.xml') diff --git a/properties-node/provider/src/test/java/jtest/org/onap/ccsdk/sli/plugins/prop/TestPropertiesNode.java b/properties-node/provider/src/test/java/jtest/org/onap/ccsdk/sli/plugins/prop/TestPropertiesNode.java index aa3f89d12..f1e0ab627 100644 --- a/properties-node/provider/src/test/java/jtest/org/onap/ccsdk/sli/plugins/prop/TestPropertiesNode.java +++ b/properties-node/provider/src/test/java/jtest/org/onap/ccsdk/sli/plugins/prop/TestPropertiesNode.java @@ -293,7 +293,7 @@ public class TestPropertiesNode { assertEquals(ctx.getAttribute("test-xml.project.dependencies.dependency.scope"),"provided"); assertEquals(ctx.getAttribute("test-xml.project.build.pluginManagement.plugins.plugin.configuration" + ".lifecycleMappingMetadata.pluginExecutions.pluginExecution." + - "pluginExecutionFilter.versionRange"),"[1.2.0.100-SNAPSHOT,)"); + "pluginExecutionFilter.versionRange"),"[1.2.0.100,)"); assertEquals(ctx.getAttribute("test-xml.project.build.plugins.plugin.configuration." + "instructions.Import-Package"),"*"); } @@ -314,7 +314,7 @@ public class TestPropertiesNode { assertEquals(ctx.getAttribute("project.dependencies.dependency.scope"),"provided"); assertEquals(ctx.getAttribute("project.build.pluginManagement.plugins.plugin.configuration" + ".lifecycleMappingMetadata.pluginExecutions.pluginExecution." + - "pluginExecutionFilter.versionRange"),"[1.2.0.100-SNAPSHOT,)"); + "pluginExecutionFilter.versionRange"),"[1.2.0.100,)"); assertEquals(ctx.getAttribute("project.build.plugins.plugin.configuration." + "instructions.Import-Package"),"*"); } @@ -334,7 +334,7 @@ public class TestPropertiesNode { assertEquals(ctx.getAttribute("project.dependencies.dependency.scope"),"provided"); assertEquals(ctx.getAttribute("project.build.pluginManagement.plugins.plugin.configuration" + ".lifecycleMappingMetadata.pluginExecutions.pluginExecution." + - "pluginExecutionFilter.versionRange"),"[1.2.0.100-SNAPSHOT,)"); + "pluginExecutionFilter.versionRange"),"[1.2.0.100,)"); assertEquals(ctx.getAttribute("project.build.plugins.plugin.configuration." + "instructions.Import-Package"),"*"); } @@ -355,7 +355,7 @@ public class TestPropertiesNode { assertEquals(ctx.getAttribute("project.dependencies.dependency.scope"),"provided"); assertEquals(ctx.getAttribute("project.build.pluginManagement.plugins.plugin.configuration" + ".lifecycleMappingMetadata.pluginExecutions.pluginExecution." + - "pluginExecutionFilter.versionRange"),"[1.2.0.100-SNAPSHOT,)"); + "pluginExecutionFilter.versionRange"),"[1.2.0.100,)"); assertEquals(ctx.getAttribute("project.build.plugins.plugin.configuration." + "instructions.Import-Package"),"*"); assertEquals(ctx.getAttribute("tmp.sdn-circuit-req-row_length"),"1"); diff --git a/properties-node/provider/src/test/resources/test.xml b/properties-node/provider/src/test/resources/test.xml index 1974f688e..19e3b7139 100644 --- a/properties-node/provider/src/test/resources/test.xml +++ b/properties-node/provider/src/test/resources/test.xml @@ -162,7 +162,7 @@ providermodule-plugin - [1.2.0.100-SNAPSHOT,) + [1.2.0.100,) process -- cgit 1.2.3-korg