diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles')
4 files changed, 1698 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/GlobalSubstitutionTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/GlobalSubstitutionTypesServiceTemplate.yaml new file mode 100644 index 0000000000..1a5c50d8d2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/GlobalSubstitutionTypesServiceTemplate.yaml @@ -0,0 +1,691 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: GlobalSubstitutionTypes +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +node_types: + org.openecomp.resource.abstract.nodes.heat.nested_db_server: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + vf_module_id: + type: string + description: Unique ID for this VF Module instance + required: true + status: SUPPORTED + security_group_ids: + type: list + description: IDs of the security groups for the server + required: true + status: SUPPORTED + entry_schema: + type: string + vm_role: + type: string + description: VM Role for the db vms + required: true + status: SUPPORTED + db_name: + type: string + description: Hostname of the database servers + required: true + status: SUPPORTED + vnf_id: + type: string + description: Unique ID for this VF instance + required: true + status: SUPPORTED + server_group_id: + type: string + description: ID of the server group + required: true + status: SUPPORTED + availability_zone_0: + type: string + description: Name of the availability zone for this server + required: true + status: SUPPORTED + db_image_name: + type: string + description: Image to be used for the server + required: true + status: SUPPORTED + keypair_id: + type: string + description: Name of the security key for the server + required: true + status: SUPPORTED + db_volume_id_3: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + db_volume_id_2: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + deploy_timeout: + type: float + description: Timeout before declaring the stack deployment as failed. + required: true + status: SUPPORTED + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + type: string + description: Name of the oam network + required: true + status: SUPPORTED + db_oam_ip_0: + type: string + description: OAM IP Address of the database servers + required: true + status: SUPPORTED + db_flavor_name: + type: string + description: Flavor to be used for the server + required: true + status: SUPPORTED + db_volume_id_1: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + db_volume_id_0: + type: string + description: IDs to be used for the database volume + required: true + status: SUPPORTED + requirements: + - dependency_db_server_0: + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + - local_storage_db_server_0: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + capabilities: + disk.device.write.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + os_db_server_0: + type: tosca.capabilities.OperatingSystem + occurrences: + - 1 + - UNBOUNDED + disk.write.requests.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.root.size_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.resident_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.iops_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.usage_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.iops_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.capacity_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.allocation_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + endpoint_db_server_0: + type: tosca.capabilities.Endpoint.Admin + occurrences: + - 1 + - UNBOUNDED + cpu.delta_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + feature_db_server_0: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + binding_db_server_0: + type: tosca.capabilities.network.Bindable + occurrences: + - 1 + - UNBOUNDED + memory_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.allocation_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.capacity_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + host_db_server_0: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.SoftwareComponent + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.latency_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.usage_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu_util_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + scalable_db_server_0: + type: tosca.capabilities.Scalable + occurrences: + - 1 + - UNBOUNDED + vcpus_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.usage_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.latency_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + instance_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.ephemeral.size_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes.rate_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests_db_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + org.openecomp.resource.abstract.nodes.heat.nested_app_server: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + vf_module_id: + type: string + description: Unique ID for this VF Module instance + required: true + status: SUPPORTED + app_flavor_name: + type: string + description: Flavor to be used for the server + required: true + status: SUPPORTED + security_group_ids: + type: list + description: IDs of the security groups for the server + required: true + status: SUPPORTED + entry_schema: + type: string + vm_role: + type: string + description: VM Role for the application vms + required: true + status: SUPPORTED + app_name: + type: string + description: Hostnames of the application servers + required: true + status: SUPPORTED + vnf_id: + type: string + description: Unique ID for this VF instance + required: true + status: SUPPORTED + app_oam_ip_0: + type: string + description: OAM IP Addresses of the application servers + required: true + status: SUPPORTED + server_group_id: + type: string + description: ID of the server group + required: true + status: SUPPORTED + availability_zone_0: + type: string + description: Name of the availability zone for this server + required: true + status: SUPPORTED + app_image_name: + type: string + description: Image to be used for the server + required: true + status: SUPPORTED + keypair_id: + type: string + description: Name of the security key for the server + required: true + status: SUPPORTED + deploy_timeout: + type: float + description: Timeout before declaring the stack deployment as failed. + required: true + status: SUPPORTED + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + type: string + description: Name of the oam network + required: true + status: SUPPORTED + requirements: + - dependency_app_server_0: + capability: tosca.capabilities.Node + node: tosca.nodes.Root + relationship: tosca.relationships.DependsOn + occurrences: + - 0 + - UNBOUNDED + - local_storage_app_server_0: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + capabilities: + endpoint_app_server_0: + type: tosca.capabilities.Endpoint.Admin + occurrences: + - 1 + - UNBOUNDED + host_app_server_0: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.SoftwareComponent + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.allocation_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.root.size_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.iops_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.usage_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu.delta_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.capacity_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.ephemeral.size_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.latency_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.capacity_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + scalable_app_server_0: + type: tosca.capabilities.Scalable + occurrences: + - 1 + - UNBOUNDED + disk.write.requests.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + cpu_util_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + binding_app_server_0: + type: tosca.capabilities.network.Bindable + occurrences: + - 1 + - UNBOUNDED + disk.device.latency_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.resident_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.read.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.usage_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + vcpus_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + feature_app_server_0: + type: tosca.capabilities.Node + occurrences: + - 1 + - UNBOUNDED + os_app_server_0: + type: tosca.capabilities.OperatingSystem + occurrences: + - 1 + - UNBOUNDED + cpu_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.iops_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.write.bytes_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.read.requests_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + instance_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.write.bytes.rate_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory.usage_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + memory_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED + disk.device.allocation_app_server_0: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + occurrences: + - 1 + - UNBOUNDED
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/MainServiceTemplate.yaml new file mode 100644 index 0000000000..cbbf48a430 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/MainServiceTemplate.yaml @@ -0,0 +1,453 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +topology_template: + inputs: + vf_module_id: + label: VF Module ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF Module instance + default: base + db_ports: + label: Database Ports + hidden: false + immutable: false + type: list + description: List of ports to apply to the security group for the database VMs + default: + - '27017' + entry_schema: + type: string + app_protocols: + label: Application Protocols + hidden: false + immutable: false + type: list + description: List of protocols associated with the app_ports + default: + - tcp + entry_schema: + type: string + db_volume_size_0: + label: Data Volume Size + hidden: false + immutable: false + type: float + description: Size of the data volume + default: 1 + constraints: + - in_range: + - 1 + - 2000 + app_ports: + label: Application Ports + hidden: false + immutable: false + type: list + description: List of ports to apply to the security group for the application VMs + default: + - '8443' + entry_schema: + type: string + vnf_id: + label: VNF ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF instance + default: pronghorn + availability_zone_0: + label: First Availability Zone + hidden: false + immutable: false + type: string + description: Name of the first availability zone + default: nova + app_public_key: + label: Application Public Key + hidden: false + immutable: false + type: string + description: Public ssh key for the application servers + default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP + db_image_name: + label: Database Image + hidden: false + immutable: false + type: string + description: Image of the database server + default: pronghorn-ubuntu14 + db_volume_id_3: + label: Data Volume IDs for disk 3 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: 454a7b1c-a58f-4bac-bed2-a7afa3836dd4 + db_volume_id_2: + label: Data Volume IDs for disk 2 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: 6f4d6f1a-1e88-492b-8020-b5a169381434 + oam_net_name: + label: Database OAM Network + hidden: false + immutable: false + type: string + description: Name of the OAM network for the database servers + default: oam + db_flavor_name: + label: Database Flavor + hidden: false + immutable: false + type: string + description: Flavor of the database server + default: s1.test + db_volume_id_1: + label: Data Volume IDs for disk 1 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: 5db48c7a-eb2d-4960-a90c-88a2d0052a71 + common_protocols: + label: Common Protocols + hidden: false + immutable: false + type: list + description: List of protocols associated with the common_ports + default: + - tcp + - udp + - udp + - udp + entry_schema: + type: string + db_volume_id_0: + label: Data Volume IDs for disk 0 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volumes + default: e8abc8da-f477-4e5c-8266-98b43c982fe4 + db_protocols: + label: Database Protocols + hidden: false + immutable: false + type: list + description: List of protocols associated with the db_ports + default: + - tcp + entry_schema: + type: string + app_flavor_name: + label: App Flavor + hidden: false + immutable: false + type: string + description: Flavor to be used for the application server + default: s1.test + app_deploy_timeout: + label: Application Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout in seconds before declaring the application stack as failed + default: 300 + constraints: + - in_range: + - 60 + - 3600 + common_ports: + label: Common Ports + hidden: false + immutable: false + type: list + description: List of ports to apply to the security group for all VMs + default: + - '22' + - '53' + - '123' + - '161' + entry_schema: + type: string + app_name: + label: Application Hostname + hidden: false + immutable: false + type: string + description: Hostname of the application server + default: pronghorn-app01 + db_name: + label: Database Hostname + hidden: false + immutable: false + type: string + description: Hostname of the database server + default: pronghorn-db01 + app_oam_ip_0: + label: Application OAM IP Address + hidden: false + immutable: false + type: string + description: OAM IP Address of the application server + default: 10.0.0.21 + app_vm_role: + label: App VM Role + hidden: false + immutable: false + type: string + description: Role for the App VM + default: app + app_image_name: + label: App Image + hidden: false + immutable: false + type: string + description: Image to be used for the application server + default: pronghorn-ubuntu14 + db_public_key: + label: Database Public Key + hidden: false + immutable: false + type: string + description: Public ssh key for the database servers + default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGe+nL1U3mFHrbtmsvNWR+oDdUyyOX5KejZqe/80uwDiPNyOJjHWIVuX812AEdAAH94nQnkYr2dBiSu1FPh+auMuk3FfegchKT7pYetqELY3ryLUPEh67PmKrdlT9cQ/wQZROq672AA6qlZAYIooeLZVSzUhABfsITk0RhfcWZGIcZwv0Tja3nnhNgtqCxoTXs6fzfcCaypgwy3F0S4RewUfcz/9g7f0tze1CmWRUtPkNK2nX2/T2AJzHgy+vItwpalnon1egIszJfj7uxp+VotQlQ2PN8sI0J5zgpBFe/lxqEwtIKeiTJ16JlyDXtin/RCjCCdtvIaVCff3Z031UV jspaeth@Jonathons-MBP + db_oam_ip_0: + label: Database OAM IP Addresse + hidden: false + immutable: false + type: string + description: OAM IP Address of the database server + default: 10.0.0.20 + db_vm_role: + label: DB VM Role + hidden: false + immutable: false + type: string + description: Role for the DB VM + default: database + db_deploy_timeout: + label: Database Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout in seconds before declaring the database stack as failed + default: 300 + constraints: + - in_range: + - 60 + - 3600 + node_templates: + app_security_group: + type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules + properties: + name: app security group + rules: + - protocol: + get_input: + - app_protocols + - 0 + port_range_max: + get_input: + - app_ports + - 0 + port_range_min: + get_input: + - app_ports + - 0 + common_security_group: + type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules + properties: + name: common security group + rules: + - protocol: + get_input: + - common_protocols + - 0 + port_range_max: + get_input: + - common_ports + - 0 + port_range_min: + get_input: + - common_ports + - 0 + - protocol: + get_input: + - common_protocols + - 1 + port_range_max: + get_input: + - common_ports + - 1 + port_range_min: + get_input: + - common_ports + - 1 + - protocol: + get_input: + - common_protocols + - 2 + port_range_max: + get_input: + - common_ports + - 2 + port_range_min: + get_input: + - common_ports + - 2 + - protocol: + get_input: + - common_protocols + - 3 + port_range_max: + get_input: + - common_ports + - 3 + port_range_min: + get_input: + - common_ports + - 3 + db_security_group: + type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules + properties: + name: data security group + rules: + - protocol: + get_input: + - db_protocols + - 0 + port_range_max: + get_input: + - db_ports + - 0 + port_range_min: + get_input: + - db_ports + - 0 + db_servers: + type: org.openecomp.resource.abstract.nodes.heat.nested_db_server + directives: + - substitutable + properties: + vf_module_id: + get_input: vf_module_id + security_group_ids: + - common_security_group + - db_security_group + vm_role: + get_input: db_vm_role + service_template_filter: + substitute_service_template: nested_db_serverServiceTemplate.yaml + count: 1 + mandatory: true + db_name: + get_input: db_name + vnf_id: + get_input: vnf_id + server_group_id: db_server_group_group + availability_zone_0: + get_input: availability_zone_0 + keypair_id: UNSUPPORTED_RESOURCE_db_keypair + db_image_name: + get_input: db_image_name + db_volume_id_3: + get_input: db_volume_id_3 + db_volume_id_2: + get_input: db_volume_id_2 + oam_net_name: + get_input: oam_net_name + db_oam_ip_0: + get_input: db_oam_ip_0 + db_flavor_name: + get_input: db_flavor_name + db_volume_id_1: + get_input: db_volume_id_1 + deploy_timeout: + get_input: db_deploy_timeout + db_volume_id_0: + get_input: db_volume_id_0 + app_servers: + type: org.openecomp.resource.abstract.nodes.heat.nested_app_server + directives: + - substitutable + properties: + vf_module_id: + get_input: vf_module_id + app_flavor_name: + get_input: app_flavor_name + security_group_ids: + - common_security_group + - app_security_group + vm_role: + get_input: app_vm_role + app_name: + get_input: app_name + service_template_filter: + substitute_service_template: nested_app_serverServiceTemplate.yaml + count: 1 + mandatory: true + vnf_id: + get_input: vnf_id + app_oam_ip_0: + get_input: app_oam_ip_0 + server_group_id: app_server_group_group + availability_zone_0: + get_input: availability_zone_0 + keypair_id: UNSUPPORTED_RESOURCE_app_keypair + app_image_name: + get_input: app_image_name + oam_net_name: + get_input: oam_net_name + deploy_timeout: + get_input: app_deploy_timeout + groups: + base_pronghorn_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/base_pronghorn.yaml + description: Pronghorn Openstack Heat Template + members: + - app_security_group + - common_security_group + - db_security_group + - db_servers + - app_servers + db_server_group_group: + type: tosca.groups.Root + members: [ + ] + app_server_group_group: + type: tosca.groups.Root + members: [ + ] + outputs: + db_volume_id_0: + description: IDs of the database volumes + value: + - UNSUPPORTED_ATTRIBUTE_db_volumes_0.refs + policies: + app_server_group_policy: + type: org.openecomp.policies.placement.Antilocate + properties: + name: app server group + container_type: host + targets: + - app_server_group_group + db_server_group_policy: + type: org.openecomp.policies.placement.Antilocate + properties: + name: data server group + container_type: host + targets: + - db_server_group_group
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_app_serverServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_app_serverServiceTemplate.yaml new file mode 100644 index 0000000000..b4d79ccc29 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_app_serverServiceTemplate.yaml @@ -0,0 +1,265 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: nested_app_server +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.app: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + vf_module_id: + label: VF Module ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF Module instance + app_flavor_name: + label: Flavor + hidden: false + immutable: false + type: string + description: Flavor to be used for the server + security_group_ids: + label: Security Group IDs + hidden: false + immutable: false + type: list + description: IDs of the security groups for the server + entry_schema: + type: string + vm_role: + label: App VM Role + hidden: false + immutable: false + type: string + description: VM Role for the application vms + app_name: + label: Application Hostnames + hidden: false + immutable: false + type: string + description: Hostnames of the application servers + vnf_id: + label: VNF ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF instance + app_oam_ip_0: + label: OAM IP Addresses + hidden: false + immutable: false + type: string + description: OAM IP Addresses of the application servers + server_group_id: + label: Server Group ID + hidden: false + immutable: false + type: string + description: ID of the server group + availability_zone_0: + label: Availability Zone + hidden: false + immutable: false + type: string + description: Name of the availability zone for this server + app_image_name: + label: Image + hidden: false + immutable: false + type: string + description: Image to be used for the server + keypair_id: + label: Key Name + hidden: false + immutable: false + type: string + description: Name of the security key for the server + deploy_timeout: + label: Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout before declaring the stack deployment as failed. + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + label: OAM Network Name + hidden: false + immutable: false + type: string + description: Name of the oam network + node_templates: + app_server_0: + type: org.openecomp.resource.vfc.nodes.heat.app + properties: + flavor: + get_input: app_flavor_name + key_name: + get_input: keypair_id + availability_zone: + get_input: availability_zone_0 + image: + get_input: app_image_name + security_groups: + get_input: security_group_ids + metadata: + vf_module_id: + get_input: vf_module_id + vm_role: + get_input: vm_role + vnf_id: + get_input: vnf_id + user_data_format: RAW + name: + - UNSUPPORTED_RESOURCE_wait_condition + scheduler_hints: + group: + get_input: server_group_id + groups: + nested_app_server_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/nested_app_server.yaml + description: Pronghorn Openstack Heat Template for the Application Server + members: + - app_server_0 + substitution_mappings: + node_type: org.openecomp.resource.abstract.nodes.heat.nested_app_server + capabilities: + endpoint_app_server_0: + - app_server_0 + - endpoint + host_app_server_0: + - app_server_0 + - host + disk.device.read.bytes_app_server_0: + - app_server_0 + - disk.device.read.bytes + disk.allocation_app_server_0: + - app_server_0 + - disk.allocation + disk.root.size_app_server_0: + - app_server_0 + - disk.root.size + disk.read.bytes.rate_app_server_0: + - app_server_0 + - disk.read.bytes.rate + disk.iops_app_server_0: + - app_server_0 + - disk.iops + disk.usage_app_server_0: + - app_server_0 + - disk.usage + cpu.delta_app_server_0: + - app_server_0 + - cpu.delta + disk.device.write.requests.rate_app_server_0: + - app_server_0 + - disk.device.write.requests.rate + disk.device.capacity_app_server_0: + - app_server_0 + - disk.device.capacity + disk.ephemeral.size_app_server_0: + - app_server_0 + - disk.ephemeral.size + disk.latency_app_server_0: + - app_server_0 + - disk.latency + disk.read.requests_app_server_0: + - app_server_0 + - disk.read.requests + disk.capacity_app_server_0: + - app_server_0 + - disk.capacity + disk.device.write.bytes.rate_app_server_0: + - app_server_0 + - disk.device.write.bytes.rate + disk.write.requests_app_server_0: + - app_server_0 + - disk.write.requests + scalable_app_server_0: + - app_server_0 + - scalable + disk.write.requests.rate_app_server_0: + - app_server_0 + - disk.write.requests.rate + cpu_util_app_server_0: + - app_server_0 + - cpu_util + disk.device.read.bytes.rate_app_server_0: + - app_server_0 + - disk.device.read.bytes.rate + binding_app_server_0: + - app_server_0 + - binding + disk.device.latency_app_server_0: + - app_server_0 + - disk.device.latency + memory.resident_app_server_0: + - app_server_0 + - memory.resident + disk.read.bytes_app_server_0: + - app_server_0 + - disk.read.bytes + disk.device.usage_app_server_0: + - app_server_0 + - disk.device.usage + disk.device.write.requests_app_server_0: + - app_server_0 + - disk.device.write.requests + vcpus_app_server_0: + - app_server_0 + - vcpus + feature_app_server_0: + - app_server_0 + - feature + os_app_server_0: + - app_server_0 + - os + cpu_app_server_0: + - app_server_0 + - cpu + disk.device.iops_app_server_0: + - app_server_0 + - disk.device.iops + disk.write.bytes_app_server_0: + - app_server_0 + - disk.write.bytes + disk.device.write.bytes_app_server_0: + - app_server_0 + - disk.device.write.bytes + disk.device.read.requests.rate_app_server_0: + - app_server_0 + - disk.device.read.requests.rate + disk.device.read.requests_app_server_0: + - app_server_0 + - disk.device.read.requests + instance_app_server_0: + - app_server_0 + - instance + disk.write.bytes.rate_app_server_0: + - app_server_0 + - disk.write.bytes.rate + memory.usage_app_server_0: + - app_server_0 + - memory.usage + memory_app_server_0: + - app_server_0 + - memory + disk.device.allocation_app_server_0: + - app_server_0 + - disk.device.allocation + requirements: + dependency_app_server_0: + - app_server_0 + - dependency + local_storage_app_server_0: + - app_server_0 + - local_storage
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_db_serverServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_db_serverServiceTemplate.yaml new file mode 100644 index 0000000000..cb75f201c8 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/getAttr/getAttrUnsupportedResource/expectedoutputfiles/nested_db_serverServiceTemplate.yaml @@ -0,0 +1,289 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: nested_db_server +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +- GlobalSubstitutionTypes: + file: GlobalSubstitutionTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.db: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + vf_module_id: + label: VF Module ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF Module instance + security_group_ids: + label: Security Group IDs + hidden: false + immutable: false + type: list + description: IDs of the security groups for the server + entry_schema: + type: string + vm_role: + label: DB VM Role + hidden: false + immutable: false + type: string + description: VM Role for the db vms + db_name: + label: Database Hostname + hidden: false + immutable: false + type: string + description: Hostname of the database servers + vnf_id: + label: VNF ID + hidden: false + immutable: false + type: string + description: Unique ID for this VF instance + server_group_id: + label: Server Group ID + hidden: false + immutable: false + type: string + description: ID of the server group + availability_zone_0: + label: Availability Zone + hidden: false + immutable: false + type: string + description: Name of the availability zone for this server + db_image_name: + label: Image + hidden: false + immutable: false + type: string + description: Image to be used for the server + keypair_id: + label: Key Name + hidden: false + immutable: false + type: string + description: Name of the security key for the server + db_volume_id_3: + label: Data Volume IDs for disk 3 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + db_volume_id_2: + label: Data Volume IDs for disk 2 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + deploy_timeout: + label: Deployment Timeout + hidden: false + immutable: false + type: float + description: Timeout before declaring the stack deployment as failed. + constraints: + - in_range: + - 60 + - 3600 + oam_net_name: + label: OAM Network Name + hidden: false + immutable: false + type: string + description: Name of the oam network + db_oam_ip_0: + label: OAM IP Addresse + hidden: false + immutable: false + type: string + description: OAM IP Address of the database servers + db_flavor_name: + label: Flavor + hidden: false + immutable: false + type: string + description: Flavor to be used for the server + db_volume_id_1: + label: Data Volume IDs for disk 1 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + db_volume_id_0: + label: Data Volume IDs for disk 0 + hidden: false + immutable: false + type: string + description: IDs to be used for the database volume + node_templates: + db_server_0: + type: org.openecomp.resource.vfc.nodes.heat.db + properties: + flavor: + get_input: db_flavor_name + key_name: + get_input: keypair_id + availability_zone: + get_input: availability_zone_0 + image: + get_input: db_image_name + security_groups: + get_input: security_group_ids + metadata: + vf_module_id: + get_input: vf_module_id + vm_role: + get_input: vm_role + vnf_id: + get_input: vnf_id + user_data_format: RAW + name: + get_input: db_name + scheduler_hints: + group: + get_input: server_group_id + groups: + nested_db_server_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/nested_db_server.yaml + description: Pronghorn Openstack Heat Template for Mongo DB + members: + - db_server_0 + substitution_mappings: + node_type: org.openecomp.resource.abstract.nodes.heat.nested_db_server + capabilities: + disk.device.write.bytes.rate_db_server_0: + - db_server_0 + - disk.device.write.bytes.rate + cpu_db_server_0: + - db_server_0 + - cpu + disk.write.requests_db_server_0: + - db_server_0 + - disk.write.requests + os_db_server_0: + - db_server_0 + - os + disk.write.requests.rate_db_server_0: + - db_server_0 + - disk.write.requests.rate + disk.root.size_db_server_0: + - db_server_0 + - disk.root.size + memory.resident_db_server_0: + - db_server_0 + - memory.resident + disk.device.iops_db_server_0: + - db_server_0 + - disk.device.iops + memory.usage_db_server_0: + - db_server_0 + - memory.usage + disk.iops_db_server_0: + - db_server_0 + - disk.iops + disk.capacity_db_server_0: + - db_server_0 + - disk.capacity + disk.device.read.bytes_db_server_0: + - db_server_0 + - disk.device.read.bytes + disk.device.allocation_db_server_0: + - db_server_0 + - disk.device.allocation + disk.read.requests_db_server_0: + - db_server_0 + - disk.read.requests + endpoint_db_server_0: + - db_server_0 + - endpoint + cpu.delta_db_server_0: + - db_server_0 + - cpu.delta + feature_db_server_0: + - db_server_0 + - feature + binding_db_server_0: + - db_server_0 + - binding + memory_db_server_0: + - db_server_0 + - memory + disk.read.bytes_db_server_0: + - db_server_0 + - disk.read.bytes + disk.device.write.requests_db_server_0: + - db_server_0 + - disk.device.write.requests + disk.allocation_db_server_0: + - db_server_0 + - disk.allocation + disk.device.read.requests.rate_db_server_0: + - db_server_0 + - disk.device.read.requests.rate + disk.device.capacity_db_server_0: + - db_server_0 + - disk.device.capacity + host_db_server_0: + - db_server_0 + - host + disk.device.read.bytes.rate_db_server_0: + - db_server_0 + - disk.device.read.bytes.rate + disk.device.write.bytes_db_server_0: + - db_server_0 + - disk.device.write.bytes + disk.latency_db_server_0: + - db_server_0 + - disk.latency + disk.usage_db_server_0: + - db_server_0 + - disk.usage + disk.write.bytes.rate_db_server_0: + - db_server_0 + - disk.write.bytes.rate + cpu_util_db_server_0: + - db_server_0 + - cpu_util + scalable_db_server_0: + - db_server_0 + - scalable + vcpus_db_server_0: + - db_server_0 + - vcpus + disk.device.usage_db_server_0: + - db_server_0 + - disk.device.usage + disk.device.write.requests.rate_db_server_0: + - db_server_0 + - disk.device.write.requests.rate + disk.write.bytes_db_server_0: + - db_server_0 + - disk.write.bytes + disk.device.latency_db_server_0: + - db_server_0 + - disk.device.latency + instance_db_server_0: + - db_server_0 + - instance + disk.ephemeral.size_db_server_0: + - db_server_0 + - disk.ephemeral.size + disk.read.bytes.rate_db_server_0: + - db_server_0 + - disk.read.bytes.rate + disk.device.read.requests_db_server_0: + - db_server_0 + - disk.device.read.requests + requirements: + dependency_db_server_0: + - db_server_0 + - dependency + local_storage_db_server_0: + - db_server_0 + - local_storage
\ No newline at end of file |