summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/openecomp
diff options
context:
space:
mode:
authorPavel Aharoni <pa0916@att.com>2017-06-27 14:38:03 +0300
committerPavel Aharoni <pa0916@att.com>2017-06-27 14:38:03 +0300
commit7516592d93f96273328a31e660bd9b0ee213e9d0 (patch)
tree356f7273b7b2f9e697ddb2e1378970c19d9a5352 /src/test/java/org/openecomp
parentf016b5bad31c356a019c638e1e636f8f31ca0c4e (diff)
[SDC-40] complex inputs support
Change-Id: I29ac43c25f385c2b9e249111a48e76c2407ae69d Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'src/test/java/org/openecomp')
-rw-r--r--src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java b/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java
index ea5c2ef..75f904f 100644
--- a/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java
+++ b/src/test/java/org/openecomp/sdc/impl/ToscaParserServiceInputTest.java
@@ -59,5 +59,19 @@ public class ToscaParserServiceInputTest extends SdcToscaParserBasicTest {
Object serviceInputLeafValue = fdntCsarHelper.getServiceInputLeafValueOfDefault("service_naming#default");
assertEquals("test service naming", serviceInputLeafValue);
}
+
+ @Test
+ public void testGetServiceComplexInputLeafValueOfDefault() {
+ String serviceInputLeafValue = fdntCsarHelperWithInputs.getServiceInputLeafValueOfDefault("complex_input#default#ipv4_subnet_default_assignment#cidr_mask");
+ assertEquals(serviceInputLeafValue, "24");
+ }
+
+ @Test
+ public void testGetServiceDummyComplexInputLeafValueOfDefault() {
+ String serviceInputLeafValue = fdntCsarHelperWithInputs.getServiceInputLeafValueOfDefault("complex_input#default#ipv4_subnet_default_assignment#XXX");
+ assertNull(serviceInputLeafValue);
+ }
+
+
//endregion
}