summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/test')
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogicTest.java4
-rw-r--r--catalog-be/src/test/resources/csars/service-Ser09080002-csar.csarbin63966 -> 63979 bytes
-rw-r--r--catalog-be/src/test/resources/node-types/resource-Extcp-template.yml17
3 files changed, 13 insertions, 8 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogicTest.java
index f6656693d9..83bcf81178 100644
--- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogicTest.java
+++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogicTest.java
@@ -318,6 +318,10 @@ class ServiceImportBusinessLogicTest extends ServiceImportBussinessLogicBaseTest
Map<String, Object> nodeTypesMap = nodeTypes.getValue();
Map<String, Object> newUpdatedNodeType = (Map<String, Object>) nodeTypesMap.get(updatedNodeType);
assertEquals(8, ((Map<String, Object>) newUpdatedNodeType.get("properties")).size());
+ Assertions.assertNull(newUpdatedNodeType.get("attributes"));
+ assertEquals(3, ((List<Map<String, Object>>) newUpdatedNodeType.get("requirements")).size());
+ assertEquals(1, ((Map<String, Object>) newUpdatedNodeType.get("capabilities")).size());
+ assertEquals(2, ((Map<String, Object>) newUpdatedNodeType.get("interfaces")).size());
ArgumentCaptor<String> interfaceTypes = ArgumentCaptor.forClass(String.class);
verify(interfaceLifecycleTypeImportManager).createLifecycleTypes(interfaceTypes.capture(), any(), anyBoolean());
diff --git a/catalog-be/src/test/resources/csars/service-Ser09080002-csar.csar b/catalog-be/src/test/resources/csars/service-Ser09080002-csar.csar
index de7d71fc37..5c990c98bd 100644
--- a/catalog-be/src/test/resources/csars/service-Ser09080002-csar.csar
+++ b/catalog-be/src/test/resources/csars/service-Ser09080002-csar.csar
Binary files differ
diff --git a/catalog-be/src/test/resources/node-types/resource-Extcp-template.yml b/catalog-be/src/test/resources/node-types/resource-Extcp-template.yml
index 4302a129d7..1dac9a0e83 100644
--- a/catalog-be/src/test/resources/node-types/resource-Extcp-template.yml
+++ b/catalog-be/src/test/resources/node-types/resource-Extcp-template.yml
@@ -85,11 +85,12 @@ node_types:
- 0
- UNBOUNDED
capability: tosca.capabilities.network.Linkable
- relationship: tosca.relationships.network.LinksTo
- - external_virtualLink:
- occurrences:
- - 0
- - UNBOUNDED
- capability: tosca.capabilities.network.Linkable
- node: org.openecomp.resource.vl.VL
- relationship: tosca.relationships.network.LinksTo
+ interfaces:
+ Vnflcm:
+ type: tosca.interfaces.nfv.Vnflcm
+ heal:
+ description: ASDASDAS
+ implementation: Artifacts/Deployment/WORKFLOW/BPMN/ASDWASDW
+ inputs:
+ sd: original
+ ADWA: original \ No newline at end of file