[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 / innerHeatVolNestedMultiLevel / 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 topology_template:
10   inputs:
11     p2:
12       hidden: false
13       immutable: false
14       type: string
15       description: shared_vol2
16     cmaui_cinder_volume_size:
17       hidden: false
18       immutable: false
19       type: string
20     exposed_vol1:
21       hidden: false
22       immutable: false
23       type: string
24     contrail_net_name:
25       hidden: false
26       immutable: false
27       type: string
28       description: network name of jsa log network
29     CMAUI_volume_type:
30       hidden: false
31       immutable: false
32       type: string
33     jsa_name:
34       hidden: false
35       immutable: false
36       type: string
37       description: network name of jsa log network
38   node_templates:
39     test_nested1Level:
40       type: org.openecomp.resource.abstract.nodes.heat.nested1
41       directives:
42       - substitutable
43       properties:
44         p1:
45           get_input: exposed_vol1
46         service_template_filter:
47           substitute_service_template: nested1ServiceTemplate.yaml
48         p2:
49           get_input: p2
50       requirements:
51       - local_storage_server_cmaui2:
52           capability: tosca.capabilities.Attachment
53           node: test_vol1
54           relationship: tosca.relationships.AttachesTo
55       - local_storage_server_cmaui1:
56           capability: tosca.capabilities.Attachment
57           node: test_vol1
58           relationship: tosca.relationships.AttachesTo
59       - local_storage_server_cmaui1:
60           capability: tosca.capabilities.Attachment
61           node: test_vol2
62           relationship: tosca.relationships.AttachesTo
63       - local_storage_server_cmaui4_test_nested2Level:
64           capability: tosca.capabilities.Attachment
65           node: test_vol1
66           relationship: tosca.relationships.AttachesTo
67       - local_storage_server_cmaui3_test_nested2Level:
68           capability: tosca.capabilities.Attachment
69           node: test_vol1
70           relationship: tosca.relationships.AttachesTo
71       - local_storage_server_cmaui3_test_nested2Level:
72           capability: tosca.capabilities.Attachment
73           node: test_vol2
74           relationship: tosca.relationships.AttachesTo
75       - local_storage_server_cmaui6_test_nested3Level_test_nested2Level:
76           capability: tosca.capabilities.Attachment
77           node: test_vol1
78           relationship: tosca.relationships.AttachesTo
79       - local_storage_server_cmaui8_test_nested4Level_test_nested3Level_test_nested2Level:
80           capability: tosca.capabilities.Attachment
81           node: test_vol1
82           relationship: tosca.relationships.AttachesTo
83       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
84           capability: tosca.capabilities.Attachment
85           node: test_vol1
86           relationship: tosca.relationships.AttachesTo
87       - local_storage_server_cmaui7_test_nested4Level_test_nested3Level_test_nested2Level:
88           capability: tosca.capabilities.Attachment
89           node: test_vol1
90           relationship: tosca.relationships.AttachesTo
91       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
92           capability: tosca.capabilities.Attachment
93           node: test_vol1
94           relationship: tosca.relationships.AttachesTo
95       - local_storage_server_cmaui5_test_nested3Level_test_nested2Level:
96           capability: tosca.capabilities.Attachment
97           node: test_vol1
98           relationship: tosca.relationships.AttachesTo
99     test_vol1:
100       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
101       properties:
102         volume_type:
103           get_input: CMAUI_volume_type
104         size: '(get_input : cmaui_cinder_volume_size) * 1024'
105     test_resourceGroup:
106       type: org.openecomp.resource.abstract.nodes.heat.nested3
107       directives:
108       - substitutable
109       properties:
110         p1:
111           get_input: exposed_vol1
112         service_template_filter:
113           substitute_service_template: nested3ServiceTemplate.yaml
114           count: 9
115           mandatory: true
116         indx:
117           get_property:
118           - SELF
119           - service_template_filter
120           - index_value
121       requirements:
122       - local_storage_server_cmaui7_test_nested4Level:
123           capability: tosca.capabilities.Attachment
124           node: test_vol1
125           relationship: tosca.relationships.AttachesTo
126       - local_storage_server_cmaui5:
127           capability: tosca.capabilities.Attachment
128           node: test_vol1
129           relationship: tosca.relationships.AttachesTo
130     test_vol2:
131       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
132       properties:
133         volume_type:
134           get_input: CMAUI_volume_type
135         size: '(get_input : cmaui_cinder_volume_size) * 1024'
136   groups:
137     main_group:
138       type: org.openecomp.groups.heat.HeatStack
139       properties:
140         heat_file: ../Artifacts/main.yml
141         description: |
142           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
143       members:
144       - test_nested1Level
145       - test_resourceGroup
146     vol_b_group:
147       type: org.openecomp.groups.heat.HeatStack
148       properties:
149         heat_file: ../Artifacts/vol_b.yml
150         description: |
151           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
152       members:
153       - test_vol2
154     vol_a_group:
155       type: org.openecomp.groups.heat.HeatStack
156       properties:
157         heat_file: ../Artifacts/vol_a.yml
158         description: |
159           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
160       members:
161       - test_vol1
162   outputs:
163     p2:
164       value: test_vol2
165     exposed_vol1:
166       value: test_vol1