[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / sharedNestedMultiLevels / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.jsa:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     p2:
15       hidden: false
16       immutable: false
17       type: string
18       description: shared_vol2
19     cmaui_cinder_volume_size:
20       hidden: false
21       immutable: false
22       type: string
23     shared_nova:
24       hidden: false
25       immutable: false
26       type: string
27     shared_vol1:
28       hidden: false
29       immutable: false
30       type: string
31     contrail_net_name:
32       hidden: false
33       immutable: false
34       type: string
35       description: network name of jsa log network
36     CMAUI_volume_type:
37       hidden: false
38       immutable: false
39       type: string
40     jsa_name:
41       hidden: false
42       immutable: false
43       type: string
44       description: network name of jsa log network
45   node_templates:
46     test_nested1Level:
47       type: org.openecomp.resource.abstract.nodes.heat.nested1
48       directives:
49       - substitutable
50       properties:
51         p1:
52           get_input: shared_vol1
53         service_template_filter:
54           substitute_service_template: nested1ServiceTemplate.yaml
55         p2:
56           get_input: p2
57       requirements:
58       - local_storage_server_cmaui2:
59           capability: tosca.capabilities.Attachment
60           node: test_vol1
61           relationship: tosca.relationships.AttachesTo
62       - local_storage_server_cmaui1:
63           capability: tosca.capabilities.Attachment
64           node: test_vol1
65           relationship: tosca.relationships.AttachesTo
66       - local_storage_server_cmaui1:
67           capability: tosca.capabilities.Attachment
68           node: test_vol2
69           relationship: tosca.relationships.AttachesTo
70       - local_storage_server_cmaui4_test_nested2Level:
71           capability: tosca.capabilities.Attachment
72           node: test_vol1
73           relationship: tosca.relationships.AttachesTo
74       - local_storage_server_cmaui3_test_nested2Level:
75           capability: tosca.capabilities.Attachment
76           node: test_vol1
77           relationship: tosca.relationships.AttachesTo
78       - local_storage_server_cmaui3_test_nested2Level:
79           capability: tosca.capabilities.Attachment
80           node: test_vol2
81           relationship: tosca.relationships.AttachesTo
82       - local_storage_server_cmaui6_test_nested3Level_test_nested2Level:
83           capability: tosca.capabilities.Attachment
84           node: test_vol1
85           relationship: tosca.relationships.AttachesTo
86       - local_storage_server_cmaui8_test_nested4Level_test_nested3Level_test_nested2Level:
87           capability: tosca.capabilities.Attachment
88           node: test_vol1
89           relationship: tosca.relationships.AttachesTo
90       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
91           capability: tosca.capabilities.Attachment
92           node: test_vol1
93           relationship: tosca.relationships.AttachesTo
94       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
95           capability: tosca.capabilities.Attachment
96           node: test_vol1
97           relationship: tosca.relationships.AttachesTo
98       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
99           capability: tosca.capabilities.Attachment
100           node: test_vol1
101           relationship: tosca.relationships.AttachesTo
102       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
103           capability: tosca.capabilities.Attachment
104           node: test_vol1
105           relationship: tosca.relationships.AttachesTo
106     test_nestedInvalidConnectionToNova:
107       type: org.openecomp.resource.abstract.nodes.heat.nested1
108       directives:
109       - substitutable
110       properties:
111         p1:
112           get_input: shared_nova
113         service_template_filter:
114           substitute_service_template: nested1ServiceTemplate.yaml
115     test_vol1:
116       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
117       properties:
118         volume_type:
119           get_input: CMAUI_volume_type
120         size: '(get_input : cmaui_cinder_volume_size) * 1024'
121     test_resourceGroup:
122       type: org.openecomp.resource.abstract.nodes.heat.nested3
123       directives:
124       - substitutable
125       properties:
126         p1:
127           get_input: shared_vol1
128         service_template_filter:
129           substitute_service_template: nested3ServiceTemplate.yaml
130           count: 9
131           mandatory: true
132         indx:
133           get_property:
134           - SELF
135           - service_template_filter
136           - index_value
137       requirements:
138       - local_storage_server_cmaui7_test_nested4Level:
139           capability: tosca.capabilities.Attachment
140           node: test_vol1
141           relationship: tosca.relationships.AttachesTo
142       - local_storage_server_cmaui5:
143           capability: tosca.capabilities.Attachment
144           node: test_vol1
145           relationship: tosca.relationships.AttachesTo
146     test_vol2:
147       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
148       properties:
149         volume_type:
150           get_input: CMAUI_volume_type
151         size: '(get_input : cmaui_cinder_volume_size) * 1024'
152     test_nova:
153       type: org.openecomp.resource.vfc.nodes.heat.jsa
154       properties:
155         image: image
156         name:
157           get_input: jsa_name
158   groups:
159     base_group:
160       type: org.openecomp.groups.heat.HeatStack
161       properties:
162         heat_file: ../Artifacts/base.yml
163         description: |
164           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
165       members:
166       - test_vol1
167       - test_vol2
168       - test_nova
169     addOn_group:
170       type: org.openecomp.groups.heat.HeatStack
171       properties:
172         heat_file: ../Artifacts/addOn.yml
173         description: |
174           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
175       members:
176       - test_nested1Level
177       - test_nestedInvalidConnectionToNova
178       - test_resourceGroup