Update sdc-parser version and allign normatives 53/57353/2
authorTal Gitelman <tg851x@intl.att.com>
Tue, 24 Jul 2018 08:47:25 +0000 (11:47 +0300)
committerTal Gitelman <tg851x@intl.att.com>
Tue, 24 Jul 2018 19:17:42 +0000 (19:17 +0000)
Change-Id: Ib654abf209c3c46a93416516e7eb31409ed621f6
Issue-ID: SDC-1544
Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
44 files changed:
catalog-be/src/main/resources/import/tosca/artifact-types/artifactTypes.zip
catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.yml
catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.zip
catalog-be/src/main/resources/import/tosca/categories/categoryTypes.zip
catalog-be/src/main/resources/import/tosca/data-types/dataTypes.zip
catalog-be/src/main/resources/import/tosca/group-types/groupTypes.zip
catalog-be/src/main/resources/import/tosca/heat-types/Generic_CR/Generic_CR.yml
catalog-be/src/main/resources/import/tosca/heat-types/Generic_CR/Generic_CR.zip
catalog-be/src/main/resources/import/tosca/heat-types/Generic_Service/Generic_Service.zip
catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.yml [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.zip [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/heat-types/abstractSubstitute/abstractSubstitute.zip
catalog-be/src/main/resources/import/tosca/heat-types/cinderVolume/cinderVolume.zip
catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.yml [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.zip [new file with mode: 0644]
catalog-be/src/main/resources/import/tosca/heat-types/contrailAbstractSubstitute/contrailAbstractSubstitute.zip
catalog-be/src/main/resources/import/tosca/heat-types/contrailCompute/contrailCompute.zip
catalog-be/src/main/resources/import/tosca/heat-types/contrailNetworkRules/contrailNetworkRules.zip
catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualMachineInterface/contrailV2VirtualMachineInterface.zip
catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualNetwork/contrailV2VirtualNetwork.zip
catalog-be/src/main/resources/import/tosca/heat-types/extNeutronCP/extNeutronCP.zip
catalog-be/src/main/resources/import/tosca/heat-types/globalPort/globalPort.zip
catalog-be/src/main/resources/import/tosca/heat-types/neutronNet/neutronNet.zip
catalog-be/src/main/resources/import/tosca/heat-types/neutronPort/neutronPort.zip
catalog-be/src/main/resources/import/tosca/heat-types/novaServer/novaServer.zip
catalog-be/src/main/resources/import/tosca/heat-types/securityRules/securityRules.zip
catalog-be/src/main/resources/import/tosca/heat-types/subInterface/subInterface.zip
catalog-be/src/main/resources/import/tosca/interface-lifecycle-types/interfaceLifecycleTypes.zip
catalog-be/src/main/resources/import/tosca/nfv-types/VDU/VDU.yml
catalog-be/src/main/resources/import/tosca/nfv-types/VDU/VDU.zip
catalog-be/src/main/resources/import/tosca/nfv-types/allottedResource/allottedResource.yml
catalog-be/src/main/resources/import/tosca/nfv-types/allottedResource/allottedResource.zip
catalog-be/src/main/resources/import/tosca/nfv-types/vduCp/vduCp.yml
catalog-be/src/main/resources/import/tosca/nfv-types/vduCp/vduCp.zip
catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.zip
catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.zip
catalog-be/src/main/resources/import/tosca/relationship-types/relationshipTypes.zip
onboarding/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-services/pom.xml
test-apis-ci/pom.xml
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/CsarToscaTester.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/general/AtomicOperationUtils.java
ui-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/sanity/ToscaValidationTest.java
ui-ci/src/main/java/org/openecomp/sdc/ci/tests/verificator/ToscaValidation.java

index ac2d7c8..3f623fc 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/artifact-types/artifactTypes.zip and b/catalog-be/src/main/resources/import/tosca/artifact-types/artifactTypes.zip differ
index 56da214..38d4c06 100644 (file)
@@ -269,4 +269,4 @@ tosca.capabilities.nfv.ext.Compute.Container.Architecture:
         type: string
     mem_size: 
       type: string
-      required: false
\ No newline at end of file
+      required: false
index dce4bf7..de4aa48 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.zip and b/catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.zip differ
index 897cb36..2fc6179 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/categories/categoryTypes.zip and b/catalog-be/src/main/resources/import/tosca/categories/categoryTypes.zip differ
index 84bc0c9..1c6ad90 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.zip and b/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.zip differ
index 3a26c09..d7dd67c 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/group-types/groupTypes.zip and b/catalog-be/src/main/resources/import/tosca/group-types/groupTypes.zip differ
index 85cff11..39697c0 100644 (file)
@@ -8,4 +8,4 @@ node_types:
       cr_role:
         type: string
       cr_type:
-        type: string
+        type: string
\ No newline at end of file
index c5dc361..0923932 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/Generic_CR/Generic_CR.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/Generic_CR/Generic_CR.zip differ
index 060dec1..e5bcd32 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/Generic_Service/Generic_Service.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/Generic_Service/Generic_Service.zip differ
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.yml b/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.yml
new file mode 100644 (file)
index 0000000..ac169a3
--- /dev/null
@@ -0,0 +1,14 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+node_types:    
+    org.openecomp.nodes.VLANNetworkReceptor:
+        derived_from: tosca.nodes.Root
+        capabilities:
+            routing_configuration_internal:
+                type: org.openecomp.capabilities.RoutingConfiguration
+        requirements:
+            - vlan_assignment:
+                occurrences:
+                    - 1
+                    - UNBOUNDED
+                capability: org.openecomp.capabilities.VLANAssignment
+                relationship: org.openecomp.relationships.AssignsTo
\ No newline at end of file
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.zip b/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.zip
new file mode 100644 (file)
index 0000000..cb99fae
Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.zip differ
index 2c38ab4..48d1908 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/abstractSubstitute/abstractSubstitute.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/abstractSubstitute/abstractSubstitute.zip differ
index 8b9a455..be5bf9d 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/cinderVolume/cinderVolume.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/cinderVolume/cinderVolume.zip differ
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.yml b/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.yml
new file mode 100644 (file)
index 0000000..43fceaf
--- /dev/null
@@ -0,0 +1,18 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+node_types:
+    org.openecomp.nodes.Configuration:
+        derived_from: tosca.nodes.Root
+        properties:
+          type:
+            type: string
+            description: The type of the node, the configuration will be defined for it. Ex.\94SBC\94
+            required: false
+          role:
+            type: string
+            description: The role of the node, the configuration will be defined for it. Ex. \93Active\94\93Standby\94
+            required: false
+          function:
+            type: string
+            description: The function of the node, the configuration will be defined for it. Ex. \93NAT Traversal\94
+            required: false
+
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.zip b/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.zip
new file mode 100644 (file)
index 0000000..cb0d191
Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.zip differ
index 11d99be..4486fe4 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/contrailAbstractSubstitute/contrailAbstractSubstitute.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/contrailAbstractSubstitute/contrailAbstractSubstitute.zip differ
index c0cc411..06fb34d 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/contrailCompute/contrailCompute.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/contrailCompute/contrailCompute.zip differ
index 6391647..633f7c7 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/contrailNetworkRules/contrailNetworkRules.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/contrailNetworkRules/contrailNetworkRules.zip differ
index 60950b6..054af8b 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualMachineInterface/contrailV2VirtualMachineInterface.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualMachineInterface/contrailV2VirtualMachineInterface.zip differ
index 43f499b..ab6f90e 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualNetwork/contrailV2VirtualNetwork.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualNetwork/contrailV2VirtualNetwork.zip differ
index 02b62a6..8a790a5 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/extNeutronCP/extNeutronCP.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/extNeutronCP/extNeutronCP.zip differ
index efeafe8..f54d7d2 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/globalPort/globalPort.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/globalPort/globalPort.zip differ
index c8368a5..c85c133 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/neutronNet/neutronNet.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/neutronNet/neutronNet.zip differ
index e33365a..884dae1 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/neutronPort/neutronPort.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/neutronPort/neutronPort.zip differ
index 54274e7..1adb0de 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/novaServer/novaServer.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/novaServer/novaServer.zip differ
index 607fe0c..94bcddf 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/securityRules/securityRules.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/securityRules/securityRules.zip differ
index 54fb2ff..51bfe51 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/subInterface/subInterface.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/subInterface/subInterface.zip differ
index 574a484..e18013a 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/interface-lifecycle-types/interfaceLifecycleTypes.zip and b/catalog-be/src/main/resources/import/tosca/interface-lifecycle-types/interfaceLifecycleTypes.zip differ
index 541126f..68ecf90 100644 (file)
@@ -3,19 +3,9 @@ node_types:
   tosca.nodes.nfv.VDU:
     derived_from: tosca.nodes.SoftwareComponent
     capabilities:
-#Not found in any spec
-#      high_availability:
-#        type: nfv.capabilities.HA
       Virtualbinding:
         type: tosca.capabilities.nfv.VirtualBindable
-#      monitoring_parameter:
-#        type: nfv.capabilities.Metric
     requirements:
-#Not found in any spec
-#      - high_availability:
-#        capability: nfv.capabilities.HA
-#        relationship: nfv.relationships.HA
-#        occurrences: [ 0, 1 ]
       - host:
           capability: tosca.capabilities.Container
           node: tosca.nodes.Compute
index 9010bf0..32487dc 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/nfv-types/VDU/VDU.zip and b/catalog-be/src/main/resources/import/tosca/nfv-types/VDU/VDU.zip differ
index cf7b5cc..00d3bd2 100644 (file)
@@ -34,4 +34,5 @@ node_types:
     - service_dependency:
         capability: org.openecomp.capabilities.AllottedResource
         relationship: tosca.relationships.DependsOn
+        node: tosca.services.Root
 
index 1417651..fd3f7e9 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/nfv-types/allottedResource/allottedResource.zip and b/catalog-be/src/main/resources/import/tosca/nfv-types/allottedResource/allottedResource.zip differ
index 1c46168..6924a28 100644 (file)
@@ -1,4 +1,3 @@
-#NOT SPEC COMPLAINT!!!!!!!!!!!!!!!!!!!!!!
 tosca_definitions_version: tosca_simple_yaml_1_0_0
 node_types:
     tosca.nodes.nfv.VduCp:
@@ -23,11 +22,6 @@ node_types:
           entry_schema:
             type: tosca.datatypes.nfv.VirtualNetworkInterfaceRequirements
           required: false
-       # order:      #there is no this attribute in IM.
-       #   type: integer
-       #   required: false
-       #   constraints:
-       #     - greater_or_equal: 0
       requirements:
         - virtual_link:
             capability: tosca.capabilities.nfv.VirtualLinkable
index c5a43ab..4da5c12 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/nfv-types/vduCp/vduCp.zip and b/catalog-be/src/main/resources/import/tosca/nfv-types/vduCp/vduCp.zip differ
index 3a847c6..dc57864 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.zip and b/catalog-be/src/main/resources/import/tosca/normative-types/loadBalancer/loadBalancer.zip differ
index 29dd88e..f1a55ef 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.zip and b/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.zip differ
index bc70987..be7dcd0 100644 (file)
Binary files a/catalog-be/src/main/resources/import/tosca/relationship-types/relationshipTypes.zip and b/catalog-be/src/main/resources/import/tosca/relationship-types/relationshipTypes.zip differ
index 1cdefc2..d19c6e3 100644 (file)
@@ -89,7 +89,7 @@
         <jetty.servlets.version>9.0.6.v20130930</jetty.servlets.version>
         <jersey.core.version>1.19.1</jersey.core.version>
         <jersey.multipart.version>1.18.1</jersey.multipart.version>
-        <junit.version>RELEASE</junit.version>
+        <junit.version>4.12</junit.version>
         <logback.version>1.1.2</logback.version>
         <mockito.all.version>1.10.19</mockito.all.version>
         <org.codehaus.jackson.version>1.9.13</org.codehaus.jackson.version> <!-- orignal 1.9.2 -->
index 6114876..d9b3676 100644 (file)
                        <groupId>org.testng</groupId>
                        <artifactId>testng</artifactId>
                </dependency>
-
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <version>${junit.version}</version>
+                       <scope>test</scope>
+               </dependency>
                <!-- Java Stuff -->
                <dependency>
                        <groupId>javax.inject</groupId>
                        <version>${project.version}</version>
                </dependency>
     </dependencies>
-
-
-
-
-
-
 </project>
index 999f112..5376a03 100644 (file)
         </dependency>
 
         <dependency>
-            <groupId>org.openecomp.sdc.sdc-tosca</groupId>
+            <groupId>org.onap.sdc.sdc-tosca</groupId>
             <artifactId>sdc-tosca</artifactId>
-            <version>1.2.1-SNAPSHOT</version>
+            <version>1.4.1-SNAPSHOT</version>
             <scope>compile</scope>
         </dependency>
 
index a464eb1..8270515 100644 (file)
@@ -6,14 +6,14 @@ import java.io.IOException;
 import java.util.List;
 import java.util.Map;
 
-import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper;
-import org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException;
-import org.openecomp.sdc.tosca.parser.impl.SdcToscaParserFactory;
-import org.openecomp.sdc.tosca.parser.impl.SdcTypes;
-import org.openecomp.sdc.toscaparser.api.Group;
-import org.openecomp.sdc.toscaparser.api.NodeTemplate;
-import org.openecomp.sdc.toscaparser.api.elements.Metadata;
-import org.openecomp.sdc.toscaparser.api.parameters.Input;
+import org.onap.sdc.tosca.parser.api.ISdcCsarHelper;
+import org.onap.sdc.tosca.parser.exceptions.SdcToscaParserException;
+import org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory;
+import org.onap.sdc.tosca.parser.impl.SdcTypes;
+import org.onap.sdc.toscaparser.api.Group;
+import org.onap.sdc.toscaparser.api.NodeTemplate;
+import org.onap.sdc.toscaparser.api.elements.Metadata;
+import org.onap.sdc.toscaparser.api.parameters.Input;
 
 public class CsarToscaTester {
 
index e81c63f..36fdf06 100644 (file)
@@ -93,8 +93,8 @@ import org.openecomp.sdc.ci.tests.utils.rest.ResourceRestUtils;
 import org.openecomp.sdc.ci.tests.utils.rest.ResponseParser;
 import org.openecomp.sdc.ci.tests.utils.rest.ServiceRestUtils;
 import org.openecomp.sdc.common.api.ArtifactGroupTypeEnum;
-import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper;
-import org.openecomp.sdc.tosca.parser.impl.SdcToscaParserFactory;
+import org.onap.sdc.tosca.parser.api.ISdcCsarHelper;
+import org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory;
 import org.testng.SkipException;
 
 import com.aventstack.extentreports.Status;
index 1458360..324966c 100644 (file)
@@ -25,11 +25,11 @@ import org.openecomp.sdc.ci.tests.utils.general.ElementFactory;
 import org.openecomp.sdc.ci.tests.utils.general.OnboardingUtillViaApis;
 import org.openecomp.sdc.ci.tests.utils.rest.PropertyRestUtils;
 import org.openecomp.sdc.ci.tests.verificator.ToscaValidation;
-import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper;
-import org.openecomp.sdc.tosca.parser.impl.SdcToscaParserFactory;
-import org.openecomp.sdc.toscaparser.api.Group;
-import org.openecomp.sdc.toscaparser.api.NodeTemplate;
-import org.openecomp.sdc.toscaparser.api.elements.Metadata;
+import org.onap.sdc.tosca.parser.api.ISdcCsarHelper;
+import org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory;
+import org.onap.sdc.toscaparser.api.Group;
+import org.onap.sdc.toscaparser.api.NodeTemplate;
+import org.onap.sdc.toscaparser.api.elements.Metadata;
 import org.testng.Assert;
 import org.testng.annotations.Test;
 
index 203368d..1c44f1a 100644 (file)
@@ -5,11 +5,11 @@ import fj.data.Either;
 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
 import org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest;
 import org.openecomp.sdc.ci.tests.tosca.datatypes.*;
-import org.openecomp.sdc.tosca.parser.api.ISdcCsarHelper;
-import org.openecomp.sdc.toscaparser.api.Group;
-import org.openecomp.sdc.toscaparser.api.Property;
-import org.openecomp.sdc.toscaparser.api.elements.Metadata;
-import org.openecomp.sdc.toscaparser.api.parameters.Input;
+import org.onap.sdc.tosca.parser.api.ISdcCsarHelper;
+import org.onap.sdc.toscaparser.api.Group;
+import org.onap.sdc.toscaparser.api.Property;
+import org.onap.sdc.toscaparser.api.elements.Metadata;
+import org.onap.sdc.toscaparser.api.parameters.Input;
 
 import java.lang.reflect.Field;
 import java.util.HashMap;