diff options
author | Pavel Aharoni <pa0916@att.com> | 2017-09-27 15:20:03 +0300 |
---|---|---|
committer | Pavel Aharoni <pa0916@att.com> | 2017-09-27 15:20:03 +0300 |
commit | fcd45d04bddb1f16dc57f1e41e1ec6ad18225eb9 (patch) | |
tree | b054b4f15880f96984d3e939e6a3d0f2617e266a | |
parent | 1a7bee7cfccb7cb1c49e67410498da7e5e247a88 (diff) |
[SDC-402] get_input jtosca fix
Change-Id: I6983789ca908ff946ae3a0565fbf33e3058e6d61
Signed-off-by: Pavel Aharoni <pa0916@att.com>
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/test/java/org/openecomp/sdc/impl/ToscaParserNodeTemplateTest.java | 11 | ||||
-rw-r--r-- | src/test/resources/csars/service-resolve-get-input-csar_QA.csar | bin | 50447 -> 50447 bytes |
3 files changed, 11 insertions, 2 deletions
@@ -103,7 +103,7 @@ <dependency>
<groupId>org.openecomp.sdc.jtosca</groupId>
<artifactId>jtosca</artifactId>
- <version>1.1.11-SNAPSHOT</version>
+ <version>1.1.12-SNAPSHOT</version>
</dependency>
diff --git a/src/test/java/org/openecomp/sdc/impl/ToscaParserNodeTemplateTest.java b/src/test/java/org/openecomp/sdc/impl/ToscaParserNodeTemplateTest.java index ad240b1..7cb99e3 100644 --- a/src/test/java/org/openecomp/sdc/impl/ToscaParserNodeTemplateTest.java +++ b/src/test/java/org/openecomp/sdc/impl/ToscaParserNodeTemplateTest.java @@ -924,7 +924,16 @@ public class ToscaParserNodeTemplateTest extends SdcToscaParserBasicTest { assertEquals("VF_1_V_port_1", vfList.get(0).getMetaData().getValue("name")); } // endregion Added by QA - Continue with testings of resolve get_input - + + + @Test + public void testResolveGetInputArrayStructure() { + List<NodeTemplate> vfcs = resolveGetInputCsarQA.getVfcListByVf("b5190df2-7880-4d6f-836f-56ab17e1b85b"); + Object propertyAsObject = resolveGetInputCsarQA.getNodeTemplatePropertyAsObject(vfcs.get(0), "compute_pd_server_name"); + assertEquals( ((ArrayList)propertyAsObject).get(0).toString(), "\"ZRDM1MOGX01MPD001\""); + propertyAsObject = resolveGetInputCsarQA.getNodeTemplatePropertyAsObject(vfcs.get(0), "port_pd01_port_ip_requirements"); + assertEquals( ((ArrayList)propertyAsObject).get(1), null); + } } diff --git a/src/test/resources/csars/service-resolve-get-input-csar_QA.csar b/src/test/resources/csars/service-resolve-get-input-csar_QA.csar Binary files differindex c35c890..37cb0f0 100644 --- a/src/test/resources/csars/service-resolve-get-input-csar_QA.csar +++ b/src/test/resources/csars/service-resolve-get-input-csar_QA.csar |