[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 / sharednestedconnection / 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     cmaui_cinder_volume_size:
12       label: CMAUI Cinder volume size
13       hidden: false
14       immutable: false
15       type: float
16       description: the size of the CMAUI Cinder volume
17     shared_vol1:
18       hidden: false
19       immutable: false
20       type: string
21       description: volume name
22     shared_vol2:
23       hidden: false
24       immutable: false
25       type: string
26       description: volume name
27     CMAUI_volume_type:
28       label: CMAUI vm volume type
29       hidden: false
30       immutable: false
31       type: string
32       description: the name of the target volume backend
33   node_templates:
34     test_vol1:
35       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
36       properties:
37         volume_type:
38           get_input: CMAUI_volume_type
39         size: '(get_input : cmaui_cinder_volume_size) * 1024'
40     test_vol2:
41       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
42       properties:
43         volume_type:
44           get_input: CMAUI_volume_type
45         size: '(get_input : cmaui_cinder_volume_size) * 1024'
46     test_nested:
47       type: org.openecomp.resource.abstract.nodes.heat.nested
48       directives:
49       - substitutable
50       properties:
51         service_template_filter:
52           substitute_service_template: nestedServiceTemplate.yaml
53         cmaui_volume_param2:
54           get_input: shared_vol2
55         shared_vol1:
56           get_input: shared_vol1
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   groups:
71     main_group:
72       type: org.openecomp.groups.heat.HeatStack
73       properties:
74         heat_file: ../Artifacts/main.yml
75         description: |
76           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
77       members:
78       - test_vol1
79       - test_vol2
80     addOn_group:
81       type: org.openecomp.groups.heat.HeatStack
82       properties:
83         heat_file: ../Artifacts/addOn.yml
84         description: |
85           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
86       members:
87       - test_nested
88   outputs:
89     out1_not_shared:
90       value: test_nested