diff options
author | 2017-06-09 02:39:56 +0300 | |
---|---|---|
committer | 2017-06-09 02:39:56 +0300 | |
commit | 280f8015d06af1f41a3ef12e8300801c7a5e0d54 (patch) | |
tree | 9c1d3978c04cd28068f02073038c936bb49ca9e0 /openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup | |
parent | fd3821dad11780d33c5373d74c957c442489945e (diff) |
[SDC-29] Amdocs OnBoard 1707 initial commit.
Change-Id: Ie4d12a3f574008b792899b368a0902a8b46b5370
Signed-off-by: AviZi <avi.ziv@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup')
3 files changed, 428 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles/MainServiceTemplate.yaml new file mode 100644 index 0000000000..71b6038eb3 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/expectedoutputfiles/MainServiceTemplate.yaml @@ -0,0 +1,292 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- openecomp_heat_index: + file: openecomp-heat/_index.yml +node_types: + org.openecomp.resource.vfc.nodes.heat.myNovaServer2: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.myNovaServer1: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.myNovaServer3: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + flavor: + hidden: false + immutable: false + type: string + p1: + hidden: false + immutable: false + type: string + description: p1 + image: + hidden: false + immutable: false + type: string + p2: + hidden: false + immutable: false + type: string + description: p2 + names: + hidden: false + immutable: false + type: string + myIPs: + hidden: false + immutable: false + type: string + description: ip1 + availability_zone_1: + hidden: false + immutable: false + type: string + description: myAvailability_zone_1 + net: + hidden: false + immutable: false + type: string + description: UID of network + node_templates: + myPort6: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + replacement_policy: AUTO + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: p2 + fixed_ips: + - ip_address: + get_input: + - myIPs + - 0 + mac_requirements: + mac_count_required: + is_required: false + network: + get_input: net + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: myNovaServer3 + relationship: tosca.relationships.network.BindsTo + myPort5: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + replacement_policy: AUTO + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: p1 + fixed_ips: + - ip_address: + get_input: + - myIPs + - 0 + mac_requirements: + mac_count_required: + is_required: false + network: + get_input: net + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: myNovaServer3 + relationship: tosca.relationships.network.BindsTo + myNovaServer1: + type: org.openecomp.resource.vfc.nodes.heat.myNovaServer1 + properties: + flavor: + get_input: flavor + availability_zone: + get_input: availability_zone_1 + image: + get_input: image + name: + get_input: + - names + - 0 + myNovaServer2: + type: org.openecomp.resource.vfc.nodes.heat.myNovaServer2 + properties: + flavor: + get_input: flavor + availability_zone: + get_input: availability_zone_1 + image: + get_input: image + name: + get_input: + - names + - 0 + myPort2: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + replacement_policy: AUTO + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: p2 + fixed_ips: + - ip_address: + get_input: + - myIPs + - 0 + mac_requirements: + mac_count_required: + is_required: false + network: + get_input: net + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: myNovaServer1 + relationship: tosca.relationships.network.BindsTo + myNovaServer3: + type: org.openecomp.resource.vfc.nodes.heat.myNovaServer3 + properties: + flavor: + get_input: flavor + availability_zone: + get_input: availability_zone_1 + image: + get_input: image + name: + get_input: + - names + - 0 + myPort1: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + replacement_policy: AUTO + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: p1 + fixed_ips: + - ip_address: + get_input: + - myIPs + - 0 + mac_requirements: + mac_count_required: + is_required: false + network: + get_input: net + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: myNovaServer1 + relationship: tosca.relationships.network.BindsTo + myPort4: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + replacement_policy: AUTO + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: p2 + fixed_ips: + - ip_address: + get_input: + - myIPs + - 0 + mac_requirements: + mac_count_required: + is_required: false + network: + get_input: net + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: myNovaServer2 + relationship: tosca.relationships.network.BindsTo + myPort3: + type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + properties: + replacement_policy: AUTO + ip_requirements: + - ip_version: 4 + ip_count_required: + is_required: true + floating_ip_count_required: + is_required: false + security_groups: + - get_input: p1 + fixed_ips: + - ip_address: + get_input: + - myIPs + - 0 + mac_requirements: + mac_count_required: + is_required: false + network: + get_input: net + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: myNovaServer2 + relationship: tosca.relationships.network.BindsTo + groups: + main_group: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/main.yml + description: cmaui server template for vMMSC + members: + - myPort6 + - myPort5 + - myNovaServer1 + - myNovaServer2 + - myPort2 + - myNovaServer3 + - myPort1 + - myPort4 + - myPort3 + SVCgroup1_simpleGroup_group: + type: tosca.groups.Root + members: + - myNovaServer1 + - myNovaServer2 + SVCgroup2_complexGroup_group: + type: tosca.groups.Root + members: + - SVCgroup1_simpleGroup_group + policies: + SVCgroup2_policy: + type: org.openecomp.policies.placement.valet.Affinity + properties: + level: host + targets: + - SVCgroup2_complexGroup_group + SVCgroup1_policy: + type: org.openecomp.policies.placement.valet.Affinity + properties: + level: host + targets: + - SVCgroup1_simpleGroup_group
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/MANIFEST.json new file mode 100644 index 0000000000..7f1ddfbc90 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/MANIFEST.json @@ -0,0 +1,12 @@ +{ + "name": "vMME_Small", + "description": "HOT template to create 2 cinder volume attachment", + "version": "2013-05-23", + "data": [ + { + "file": "main.yml", + "type": "HEAT", + "isBase": "true" + } + ] +}
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/main.yml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/main.yml new file mode 100644 index 0000000000..2317813e66 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/complexOnlyGroup/inputfiles/main.yml @@ -0,0 +1,124 @@ +heat_template_version: 2013-05-23 + +description: cmaui server template for vMMSC + +parameters: + net: + type: string + description: UID of network + p1: + type: string + description: p1 + p2: + type: string + description: p2 + myIPs: + type: string + description: ip1 + availability_zone_1: + type: string + description: myAvailability_zone_1 + names: + type: string + image: + type: string + flavor: + type: string +resources: + + myNovaServer1: + type: OS::Nova::Server + properties: + name: { get_param: [names, 0]} + image: { get_param: image } + availability_zone: { get_param: availability_zone_1 } + flavor: { get_param: flavor } + networks: + - port: { get_resource: myPort1 } + - port: { get_resource: myPort2 } + + + myNovaServer2: + type: OS::Nova::Server + properties: + name: { get_param: [names, 0]} + image: { get_param: image } + availability_zone: { get_param: availability_zone_1 } + flavor: { get_param: flavor } + networks: + - port: { get_resource: myPort3 } + - port: { get_resource: myPort4 } + + myNovaServer3: + type: OS::Nova::Server + properties: + name: { get_param: [names, 0]} + image: { get_param: image } + availability_zone: { get_param: availability_zone_1 } + flavor: { get_param: flavor } + networks: + - port: { get_resource: myPort5 } + - port: { get_resource: myPort6 } + myPort1: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}] + security_groups: [{get_param: p1}] + replacement_policy: AUTO + + myPort2: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}] + security_groups: [{get_param: p2}] + replacement_policy: AUTO + + myPort3: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}] + security_groups: [{get_param: p1}] + replacement_policy: AUTO + + myPort4: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}] + security_groups: [{get_param: p2}] + replacement_policy: AUTO + myPort5: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}] + security_groups: [{get_param: p1}] + replacement_policy: AUTO + + myPort6: + type: OS::Neutron::Port + properties: + network: { get_param: net } + fixed_ips: [{"ip_address": {get_param: [myIPs, 0]}}] + security_groups: [{get_param: p2}] + replacement_policy: AUTO + SVCgroup1: + type: ATT::Valet::GroupAssignment + properties: + group_type: affinity + group_name: simpleGroup + level: host + resources: + - { get_resource: myNovaServer1} + - { get_resource: myNovaServer2} + SVCgroup2: + type: ATT::Valet::GroupAssignment + properties: + group_type: affinity + group_name: complexGroup + level: host + resources: + - { get_resource: SVCgroup1}
\ No newline at end of file |