summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPriyanshuAgarwal <pagarwal@amdocs.com>2018-06-15 11:06:32 +0530
committerpriyanshu <pagarwal@amdocs.com>2018-06-15 11:06:32 +0530
commit05ce3093351549eb54029f907f15e9ae9273d476 (patch)
treec79cd8973801164630ad6b0a804c683fa0ba5a26 /src
parentc3faa49849665b4e84c058e9ac1bf12c280299ba (diff)
Extended notation support for interface operation.
Support extended notation for "Implementation" in interface operation. Change-Id: Ie1e0979e19d0989fce8d63ebfb7e3abf93aca4a1 Issue-ID: SDC-1433 Signed-off-by: priyanshu <pagarwal@amdocs.com>
Diffstat (limited to 'src')
-rw-r--r--src/test/java/org/onap/sdc/impl/ToscaParserInterfaceTest.java9
-rw-r--r--src/test/resources/csars/service-CxSvc-csar.csarbin77909 -> 77970 bytes
2 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/onap/sdc/impl/ToscaParserInterfaceTest.java b/src/test/java/org/onap/sdc/impl/ToscaParserInterfaceTest.java
index e6755e1..907df58 100644
--- a/src/test/java/org/onap/sdc/impl/ToscaParserInterfaceTest.java
+++ b/src/test/java/org/onap/sdc/impl/ToscaParserInterfaceTest.java
@@ -56,4 +56,13 @@ public class ToscaParserInterfaceTest extends SdcToscaParserBasicTest {
assertEquals(interfaceDef.getOperationName(), "instantiate");
}
+ @Test
+ public void testGetInterfaceOperationImplementationDetails() {
+ InterfacesDef interfaceDef = csarHelperVfInterfaces.getInterfaceOperationDetails(vfs.get(0), "org.openecomp.interfaces.node.lifecycle.CxVnf1", "upgrade");
+ assertNotNull(interfaceDef);
+ assertNotNull(interfaceDef.getImplementation());
+ assertEquals(((Map)interfaceDef.getImplementation()).get("primary"), "Artifacts/Deployment/WORKFLOW/CreateWorkFlow.json");
+ assertEquals(((Map)interfaceDef.getImplementation()).get("dependencies"), "TestDependency1");
+ }
+
}
diff --git a/src/test/resources/csars/service-CxSvc-csar.csar b/src/test/resources/csars/service-CxSvc-csar.csar
index 6bdbedc..ad77cc4 100644
--- a/src/test/resources/csars/service-CxSvc-csar.csar
+++ b/src/test/resources/csars/service-CxSvc-csar.csar
Binary files differ