diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar')
4 files changed, 639 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/Definitions/resource-Spgw-template-interface.yml b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/Definitions/resource-Spgw-template-interface.yml new file mode 100644 index 0000000000..0ba2bcc90d --- /dev/null +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/Definitions/resource-Spgw-template-interface.yml @@ -0,0 +1,254 @@ +tosca_definitions_version: tosca_simple_yaml_1_1 +imports: +- nodes: + file: nodes.yml +- datatypes: + file: data.yml +- capabilities: + file: capabilities.yml +- relationships: + file: relationships.yml +- groups: + file: groups.yml +- policies: + file: policies.yml +node_types: + org.openecomp.resource.vf.Spgw: + derived_from: org.openecomp.resource.abstract.nodes.VF + properties: + nf_naming: + type: org.openecomp.datatypes.Naming + default: + ecomp_generated_naming: true + nf_naming_code: + type: string + default: { + } + nf_function: + type: string + default: { + } + availability_zone_max_count: + type: integer + default: 1 + nf_role: + type: string + default: { + } + max_instances: + type: integer + default: { + } + min_instances: + type: integer + default: { + } + nf_type: + type: string + default: { + } + capabilities: + extcp0.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + compute0.binding: + type: tosca.capabilities.network.Bindable + occurrences: + - 1 + - UNBOUNDED + extcp0.internal_connectionPoint: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + blockstorage0.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + compute0.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + compute0.host: + type: tosca.capabilities.Container + occurrences: + - 1 + - UNBOUNDED + valid_source_types: + - tosca.nodes.SoftwareComponent + properties: + num_cpus: + type: integer + default: { + } + required: false + disk_size: + type: scalar-unit.size + default: { + } + required: false + cpu_frequency: + type: scalar-unit.frequency + default: { + } + required: false + mem_size: + type: scalar-unit.size + default: { + } + required: false + network0.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + compute0.scalable: + type: tosca.capabilities.Scalable + occurrences: + - 1 + - UNBOUNDED + properties: + max_instances: + type: integer + default: 1 + required: false + min_instances: + type: integer + default: 1 + required: false + default_instances: + type: integer + default: { + } + required: false + compute0.endpoint: + type: tosca.capabilities.Endpoint.Admin + occurrences: + - 1 + - UNBOUNDED + properties: + secure: + type: boolean + default: true + required: false + blockstorage0.attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED + compute0.os: + type: tosca.capabilities.OperatingSystem + occurrences: + - 1 + - UNBOUNDED + properties: + distribution: + type: string + default: { + } + required: false + type: + type: string + default: { + } + required: false + version: + type: version + default: { + } + required: false + architecture: + type: string + default: { + } + required: false + network0.link: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED + cpd0.feature: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + requirements: + - compute0.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + - blockstorage0.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + - network0.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + - extcp0.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + - cpd0.dependency: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + - extcp0.virtualBinding: + occurrences: + - 1 + - UNBOUNDED + capability: tosca.capabilities.network.Bindable + relationship: tosca.relationships.network.BindsTo + - extcp0.virtualLink: + occurrences: + - 1 + - UNBOUNDED + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - extcp0.external_virtualLink: + occurrences: + - 1 + - UNBOUNDED + capability: tosca.capabilities.network.Linkable + node: org.openecomp.resource.vl.VL + relationship: tosca.relationships.network.LinksTo + - cpd0.virtual_link: + occurrences: + - 1 + - UNBOUNDED + capability: tosca.capabilities.nfv.VirtualLinkable + node: tosca.nodes.nfv.VnfVirtualLinkDesc + relationship: tosca.relationships.nfv.VirtualLinksTo + - compute0.local_storage: + occurrences: + - 0 + - UNBOUNDED + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + - cpd0.virtual_binding: + occurrences: + - 1 + - UNBOUNDED + capability: tosca.capabilities.nfv.VirtualBindable + node: tosca.nodes.nfv.VDU.Compute + relationship: tosca.relationships.nfv.VirtualBindsTo diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/MainServiceTemplate.yaml new file mode 100644 index 0000000000..e6a873a6b4 --- /dev/null +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/MainServiceTemplate.yaml @@ -0,0 +1,231 @@ +tosca_definitions_version: tosca_simple_yaml_1_1 +metadata: + invariantUUID: 3c677981-34bf-47a0-a21b-c0d81f93d438 + UUID: 5e74136f-3ca0-48eb-b0e7-b3740e170030 + name: SPGW + description: SPGW + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendor: zte + resourceVendorRelease: v1.0 + resourceVendorModelNumber: '' +imports: +- nodes: + file: Definitions/nodes.yml +- datatypes: + file: Definitions/data.yml +- capabilities: + file: Definitions/capabilities.yml +- relationships: + file: Definitions/relationships.yml +- groups: + file: Definitions/groups.yml +- policies: + file: Definitions/policies.yml +- resource-SPGW-interface: + file: Definitions/resource-Spgw-template-interface.yml +- resource-Compute: + file: Definitions/resource-Compute-template.yml +- resource-Cpd: + file: Definitions/resource-Cpd-template.yml +- resource-ExtCP: + file: Definitions/resource-Extcp-template.yml +- resource-Network: + file: Definitions/resource-Network-template.yml +- resource-BlockStorage: + file: Definitions/resource-Blockstorage-template.yml +topology_template: + inputs: + nf_naming: + type: org.openecomp.datatypes.Naming + default: + ecomp_generated_naming: true + nf_naming_code: + type: string + default: { + } + nf_function: + type: string + default: { + } + availability_zone_max_count: + type: integer + default: 1 + nf_role: + type: string + default: { + } + max_instances: + type: integer + default: { + } + min_instances: + type: integer + default: { + } + nf_type: + type: string + default: { + } + node_templates: + Cpd 0: + type: tosca.nodes.nfv.VduCpd + metadata: + invariantUUID: 77336b37-f7b2-4226-a347-158d9c5a90b3 + UUID: 06e09b93-d4aa-4d08-a2e5-99dbe80fb556 + customizationUUID: fbf85c13-570f-415b-8eef-477341fcc6dc + version: '2.0' + name: Cpd + description: Cpd desc. + type: CP + category: Nfvo + subcategory: Network Elements + resourceVendor: ATT (Tosca) + resourceVendorRelease: 1.0.0.wd03 + resourceVendorModelNumber: '' + BlockStorage 0: + type: tosca.nodes.BlockStorage + metadata: + invariantUUID: cbb3a953-20e4-49cd-b957-4d7a3232e2fc + UUID: 505ee1a0-68bb-4a85-a5ed-78ffa1a93a9b + customizationUUID: 9440174f-f641-44ba-8a93-6c3c8c6e17b9 + version: '1.0' + name: BlockStorage + description: Represents a server-local block storage device (i.e., not shared) offering evenly sized blocks of data from which raw storage volumes can be created. + type: VFC + category: Generic + subcategory: Infrastructure + resourceVendor: ATT (Tosca) + resourceVendorRelease: 1.0.0.wd03 + resourceVendorModelNumber: '' + ExtCP 0: + type: org.openecomp.resource.cp.extCP + metadata: + invariantUUID: eee70cdb-7632-4f4b-8a69-e1d7230a3263 + UUID: 74db9efa-f694-4a7b-8056-6145372b37c4 + customizationUUID: b6bc4c89-f2e3-4d14-8fb2-8535f42331a7 + version: '3.0' + name: ExtCP + description: The AT&T Connection Point base type all other CP derive from + type: CP + category: Generic + subcategory: Network Elements + resourceVendor: ATT (Tosca) + resourceVendorRelease: 1.0.0.wd03 + resourceVendorModelNumber: '' + properties: + mac_requirements: + mac_count_required: + is_required: false + exCP_naming: + ecomp_generated_naming: true + Network 0: + type: tosca.nodes.network.Network + metadata: + invariantUUID: e9f16c37-4632-4e1b-ba2f-10e2f9ade337 + UUID: 2a34714c-84fa-4f74-b118-b87d25b6d0eb + customizationUUID: f7bb69e3-2b97-4fcd-b18d-5eba059a37b1 + version: '1.0' + name: Network + description: Represents a simple , logical network service. + type: VL + category: Generic + subcategory: Infrastructure + resourceVendor: ATT (Tosca) + resourceVendorRelease: 1.0.0.wd03 + resourceVendorModelNumber: '' + properties: + dhcp_enabled: true + ip_version: 4 + Compute 0: + type: tosca.nodes.Compute + metadata: + invariantUUID: 2d9b896d-13ea-4a32-9d59-2966b4925aea + UUID: fb2c9fe0-bea9-4945-9e31-04709bcda292 + customizationUUID: ffee7d61-f396-4630-ba3c-f5c6b514816f + version: '1.0' + name: Compute + description: Represents a real or virtual machine or server. Information specified on the Compute node will be used to find the machine that fits the given requirements in the cloud available machines. If no sizing information are specified the cloud provider default machine will be used. It is strongly recommended to specify the required CPUs and memory at least. + type: VFC + category: Generic + subcategory: Infrastructure + resourceVendor: ATT (Tosca) + resourceVendorRelease: 1.0.0.wd03 + resourceVendorModelNumber: '' + substitution_mappings: + node_type: org.openecomp.resource.vf.Spgw + capabilities: + extcp0.feature: + - ExtCP 0 + - feature + compute0.binding: + - Compute 0 + - binding + extcp0.internal_connectionPoint: + - ExtCP 0 + - internal_connectionPoint + blockstorage0.feature: + - BlockStorage 0 + - feature + compute0.feature: + - Compute 0 + - feature + compute0.host: + - Compute 0 + - host + network0.feature: + - Network 0 + - feature + compute0.scalable: + - Compute 0 + - scalable + compute0.endpoint: + - Compute 0 + - endpoint + blockstorage0.attachment: + - BlockStorage 0 + - attachment + compute0.os: + - Compute 0 + - os + network0.link: + - Network 0 + - link + cpd0.feature: + - Cpd 0 + - feature + requirements: + extcp0.virtualBinding: + - ExtCP 0 + - virtualBinding + blockstorage0.dependency: + - BlockStorage 0 + - dependency + cpd0.dependency: + - Cpd 0 + - dependency + compute0.dependency: + - Compute 0 + - dependency + extcp0.external_virtualLink: + - ExtCP 0 + - external_virtualLink + extcp0.dependency: + - ExtCP 0 + - dependency + network0.dependency: + - Network 0 + - dependency + cpd0.virtual_link: + - Cpd 0 + - virtual_link + extcp0.virtualLink: + - ExtCP 0 + - virtualLink + compute0.local_storage: + - Compute 0 + - local_storage + cpd0.virtual_binding: + - Cpd 0 + - virtual_binding diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/TOSCA-Metadata/TOSCA.meta b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/TOSCA-Metadata/TOSCA.meta new file mode 100644 index 0000000000..6118d41eb9 --- /dev/null +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/in/TOSCA-Metadata/TOSCA.meta @@ -0,0 +1,7 @@ +TOSCA-Meta-File-Version: 1.0 +CSAR-Version: 1.1 +Created-By: Carlos Santana +Entry-Definitions: MainServiceTemplate.yaml + +Name: csar.meta +Content-Type: text/plain diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/out/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/out/MainServiceTemplate.yaml new file mode 100644 index 0000000000..e54533e7c2 --- /dev/null +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/mock/toscaConverter/convertCsar/out/MainServiceTemplate.yaml @@ -0,0 +1,147 @@ +tosca_definitions_version: tosca_simple_yaml_1_1 +metadata: + template_name: Main + resourceVendor: zte + name: SPGW + resourceVendorModelNumber: '' + description: SPGW + invariantUUID: 3c677981-34bf-47a0-a21b-c0d81f93d438 + UUID: 5e74136f-3ca0-48eb-b0e7-b3740e170030 + type: VF + category: Application L4+ + subcategory: Firewall + resourceVendorRelease: v1.0 +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +topology_template: + inputs: + nf_naming: + type: org.openecomp.datatypes.Naming + default: + ecomp_generated_naming: true + nf_naming_code: + type: string + default: { + } + nf_function: + type: string + default: { + } + availability_zone_max_count: + type: integer + default: 1 + nf_role: + type: string + default: { + } + max_instances: + type: integer + default: { + } + min_instances: + type: integer + default: { + } + nf_type: + type: string + default: { + } + node_templates: + Cpd 0: + type: tosca.nodes.nfv.VduCpd + BlockStorage 0: + type: tosca.nodes.BlockStorage + ExtCP 0: + type: org.openecomp.resource.cp.extCP + properties: + mac_requirements: + mac_count_required: + is_required: false + exCP_naming: + ecomp_generated_naming: true + Network 0: + type: tosca.nodes.network.Network + properties: + dhcp_enabled: true + ip_version: 4 + Compute 0: + type: tosca.nodes.Compute + substitution_mappings: + node_type: org.openecomp.resource.vf.Spgw + capabilities: + extcp0.feature: + - ExtCP 0 + - feature + compute0.binding: + - Compute 0 + - binding + extcp0.internal_connectionPoint: + - ExtCP 0 + - internal_connectionPoint + blockstorage0.feature: + - BlockStorage 0 + - feature + compute0.feature: + - Compute 0 + - feature + compute0.host: + - Compute 0 + - host + network0.feature: + - Network 0 + - feature + compute0.scalable: + - Compute 0 + - scalable + compute0.endpoint: + - Compute 0 + - endpoint + blockstorage0.attachment: + - BlockStorage 0 + - attachment + compute0.os: + - Compute 0 + - os + network0.link: + - Network 0 + - link + cpd0.feature: + - Cpd 0 + - feature + requirements: + extcp0.virtualBinding: + - ExtCP 0 + - virtualBinding + blockstorage0.dependency: + - BlockStorage 0 + - dependency + cpd0.dependency: + - Cpd 0 + - dependency + compute0.dependency: + - Compute 0 + - dependency + extcp0.external_virtualLink: + - ExtCP 0 + - external_virtualLink + extcp0.dependency: + - ExtCP 0 + - dependency + network0.dependency: + - Network 0 + - dependency + cpd0.virtual_link: + - Cpd 0 + - virtual_link + extcp0.virtualLink: + - ExtCP 0 + - virtualLink + compute0.local_storage: + - Compute 0 + - local_storage + cpd0.virtual_binding: + - Cpd 0 + - virtual_binding |