type: string
mem_size:
type: string
- required: false
\ No newline at end of file
+ required: false
cr_role:
type: string
cr_type:
- type: string
+ type: string
\ No newline at end of file
occurrences:
- 1
- UNBOUNDED
- capability: org.openecomp.capabilities.VLANAssignment
+ capability: org.openecomp.capabilities.VLANAssignment
relationship: org.openecomp.relationships.AssignsTo
\ No newline at end of file
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: AbstractSubstituteGlobalTypes
- template_version: 1.0.0
-description: Abstract Substitute Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.abstract.nodes.AbstractSubstitute:
derived_from: tosca.nodes.Root
tosca_definitions_version: tosca_simple_yaml_1_0_0
-
-description: Contrail Virtual Network Global Types
-
node_types:
org.openecomp.resource.vfc.nodes.heat.cinder.Volume:
derived_from: org.openecomp.resource.vfc.nodes.volume
properties:
type:
type: string
- description: The type of the node, the configuration will be defined for it. Ex.”SBC”
+ 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. “Active”, “Standby”
+ 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. “NAT Traversal”
+ description: The function of the node, the configuration will be defined for it. Ex. \93NAT Traversal\94
required: false
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ContrailAbstractSubstituteGlobalTypes
- template_version: 1.0.0
-description: Contrail Abstract Substitute Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.abstract.nodes.contrail.AbstractSubstitute:
derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ContrailComputeGlobalTypes
- template_version: 1.0.0
-description: Contrail Compute TOSCA Global Types
-imports:
- ComputeGlobalTypes:
- file: ComputeGlobalTypesServiceTemplate.yaml
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.vfc.nodes.heat.contrail.Compute:
derived_from: org.openecomp.resource.vfc.nodes.Compute
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ContrailNetworkRuleGlobalType
- template_version: 1.0.0
-description: Contrail Network Rule Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules:
derived_from: tosca.nodes.Root
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ContrailPortGlobalTypes
- template_version: 1.0.0
-description: Contrail Port TOSCA Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
- PortGlobalTypes:
- file: PortGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.cp.nodes.heat.network.contrail.Port:
derived_from: org.openecomp.resource.cp.nodes.network.Port
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ContrailV2NetworkRuleGlobalType
- template_version: 1.0.0
-description: Contrail V2 Network Rule Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules:
derived_from: tosca.nodes.Root
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ContrailV2VirtualNetworkGlobalType
- template_version: 1.0.0
-description: Contrail V2 Virtual Network Global Types
-imports:
- NetworkGlobalTypes:
- file: NetworkGlobalTypesServiceTemplate.yaml
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
-data_types:
- org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData:
- derived_from: tosca.datatypes.Root
- description: network policy refs data
- properties:
- network_policy_refs_data_sequence:
- type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence
- description: Network Policy ref data sequence
- required: false
- status: SUPPORTED
- org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence:
- derived_from: tosca.datatypes.Root
- description: network policy refs data sequence
- properties:
- network_policy_refs_data_sequence_major:
- type: integer
- description: Network Policy ref data sequence Major
- required: false
- status: SUPPORTED
- network_policy_refs_data_sequence_minor:
- type: integer
- description: Network Policy ref data sequence Minor
- required: false
- status: SUPPORTED
- org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet:
- derived_from: tosca.datatypes.Root
- description: Network Ipam Ref Data Subnet
- properties:
- network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
- type: string
- description: Network ipam refs data ipam subnets ip prefix len
- required: false
- status: SUPPORTED
- network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
- type: string
- description: Network ipam refs data ipam subnets ip prefix
- required: false
- status: SUPPORTED
- org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData:
- derived_from: tosca.datatypes.Root
- description: Network Ipam Ref Data
- properties:
- network_ipam_refs_data_ipam_subnets:
- type: list
- description: Network ipam refs data ipam subnets
- required: false
- status: SUPPORTED
- entry_schema:
- type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList
- org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList:
- derived_from: tosca.datatypes.Root
- description: Network Ipam Ref Data Subnet List
- properties:
- network_ipam_refs_data_ipam_subnets_subnet:
- type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet
- description: Network ipam refs data ipam subnets
- required: false
- status: SUPPORTED
- network_ipam_refs_data_ipam_subnets_addr_from_start:
- type: string
- description: Network ipam refs data ipam subnets addr from start
- required: false
- status: SUPPORTED
node_types:
org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork:
derived_from: org.openecomp.resource.vl.nodes.network.Network
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ContrailVirtualNetworkGlobalType
- template_version: 1.0.0
-description: Contrail Virtual Network Global Types
-imports:
- NetworkGlobalTypes:
- file: NetworkGlobalTypesServiceTemplate.yaml
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork:
derived_from: org.openecomp.resource.vl.nodes.network.Network
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: ComputeGlobalTypes
- template_version: 1.0.0
-description: Compute TOSCA Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.vfc.nodes.Compute:
derived_from: tosca.nodes.Compute
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: NeutronNetGlobalTypes
- template_version: 1.0.0
-description: Neutron Network TOSCA Global Types
-imports:
- NetworkGlobalTypes:
- file: NetworkGlobalTypesServiceTemplate.yaml
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.vl.nodes.heat.network.neutron.Net:
derived_from: org.openecomp.resource.vl.nodes.network.Network
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: NeutronPortGlobalTypes
- template_version: 1.0.0
-description: Neutron Port TOSCA Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
- PortGlobalTypes:
- file: PortGlobalTypesServiceTemplate.yaml
-data_types:
- org.openecomp.datatypes.heat.neutron.port.FixedIps:
- derived_from: tosca.datatypes.Root
- description: subnet/ip_address
- properties:
- subnet:
- type: string
- description: Subnet in which to allocate the IP address for this port
- required: false
- status: SUPPORTED
- ip_address:
- type: string
- description: IP address desired in the subnet for this port
- required: false
- status: SUPPORTED
node_types:
org.openecomp.resource.cp.nodes.heat.network.neutron.Port:
derived_from: org.openecomp.resource.cp.nodes.network.Port
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: NovaServerGlobalTypes
- template_version: 1.0.0
-description: Nova Server TOSCA Global Types
-imports:
- ComputeGlobalTypes:
- file: ComputeGlobalTypesServiceTemplate.yaml
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
-data_types:
- org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties:
- derived_from: tosca.datatypes.Root
- description: Nova server network expand properties for port
- properties:
- port_security_enabled:
- type: boolean
- description: Flag to enable/disable port security on the port
- required: false
- status: SUPPORTED
- mac_address:
- type: string
- description: MAC address to give to this port
- required: false
- status: SUPPORTED
- admin_state_up:
- type: boolean
- description: The administrative state of this port
- required: false
- default: true
- status: SUPPORTED
- qos_policy:
- type: string
- description: The name or ID of QoS policy to attach to this port
- required: false
- status: SUPPORTED
- allowed_address_pairs:
- type: list
- description: Additional MAC/IP address pairs allowed to pass through the port
- required: false
- status: SUPPORTED
- entry_schema:
- type: org.openecomp.datatypes.heat.network.AddressPair
- binding:vnic_type:
- type: string
- description: The vnic type to be bound on the neutron port
- required: false
- status: SUPPORTED
- constraints:
- - valid_values:
- - macvtap
- - direct
- - normal
- value_specs:
- type: map
- description: Extra parameters to include in the request
- required: false
- default: {
- }
- status: SUPPORTED
- entry_schema:
- type: string
- org.openecomp.datatypes.heat.novaServer.network.AddressInfo:
- derived_from: tosca.datatypes.network.NetworkInfo
- description: Network addresses with corresponding port id
- properties:
- port_id:
- type: string
- description: Port id
- required: false
- status: SUPPORTED
node_types:
org.openecomp.resource.vfc.nodes.heat.nova.Server:
derived_from: org.openecomp.resource.vfc.nodes.Compute
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: NeutronSecurityRulesGlobalTypes
- template_version: 1.0.0
-description: Neutron Security Rules TOSCA Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules:
derived_from: tosca.nodes.Root
tosca_definitions_version: tosca_simple_yaml_1_0_0
-metadata:
- template_name: SubInterfaceGlobalTypes
- template_version: 1.0.0
-description: Sub Interafce TOSCA Global Types
-imports:
- common_definitions:
- file: CommonGlobalTypesServiceTemplate.yaml
node_types:
org.openecomp.resource.cp.nodes.network.SubInterface:
derived_from: tosca.nodes.network.Port
\ No newline at end of file
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
- service_dependency:
capability: org.openecomp.capabilities.AllottedResource
relationship: tosca.relationships.DependsOn
+ node: tosca.services.Root
-#NOT SPEC COMPLAINT!!!!!!!!!!!!!!!!!!!!!!
tosca_definitions_version: tosca_simple_yaml_1_0_0
node_types:
tosca.nodes.nfv.VduCp:
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
<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 -->
<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>
<dependency>
<groupId>org.onap.sdc.sdc-tosca</groupId>
<artifactId>sdc-tosca</artifactId>
- <version>1.3.5</version>
+ <version>1.4.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
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 {
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;
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;
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;