aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorPavel Aharoni <pa0916@att.com>2017-09-27 15:20:03 +0300
committerPavel Aharoni <pa0916@att.com>2017-09-27 15:20:03 +0300
commitfcd45d04bddb1f16dc57f1e41e1ec6ad18225eb9 (patch)
treeb054b4f15880f96984d3e939e6a3d0f2617e266a /src/test/java
parent1a7bee7cfccb7cb1c49e67410498da7e5e247a88 (diff)
[SDC-402] get_input jtosca fix
Change-Id: I6983789ca908ff946ae3a0565fbf33e3058e6d61 Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/openecomp/sdc/impl/ToscaParserNodeTemplateTest.java11
1 files changed, 10 insertions, 1 deletions
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);
+ }
}