[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / test / resources / mock / analyzerService / ServiceTemplateSubstituteTest.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7 - NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9 - CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11 - CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13 - ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15 - NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17 - NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19 - ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 topology_template:
24   inputs:
25     shared_network_id:
26       hidden: false
27       immutable: false
28       type: string
29       description: network name of jsa log network
30     jsa_net_name:
31       hidden: false
32       immutable: false
33       type: string
34       description: network name of jsa log network
35   node_templates:
36     test_net:
37       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
38       properties:
39         shared: true
40         network_name:
41           get_input: jsa_net_name
42     test_nested1:
43       type: org.openecomp.resource.abstract.nodes.heat.nested
44       directives:
45       - substitutable
46       properties:
47         p1:
48           get_input: shared_network_id
49         service_template_filter:
50           substitute_service_template: nestedServiceTemplate.yaml
51       requirements:
52       - link_cmaui_port_0:
53           capability: tosca.capabilities.network.Linkable
54           node: test_net
55           relationship: tosca.relationships.network.LinksTo
56     test_nested2:
57       type: org.openecomp.resource.abstract.nodes.heat.nested
58       directives:
59       - substitutable
60       properties:
61         p1:
62           get_input: shared_network_id
63         service_template_filter:
64           substitute_service_template: nestedServiceTemplate.yaml
65       requirements:
66       - link_cmaui_port_0:
67           capability: tosca.capabilities.network.Linkable
68           node: test_net
69           relationship: tosca.relationships.network.LinksTo
70   groups:
71     addOn:
72       type: org.openecomp.groups.heat.HeatStack
73       properties:
74         heat_file: ../Artifacts/addOn.yml
75         description: |
76           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
77       members:
78       - test_nested
79     main:
80       type: org.openecomp.groups.heat.HeatStack
81       properties:
82         heat_file: ../Artifacts/main.yml
83         description: |
84           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
85       members:
86       - test_net
87   outputs:
88     shared_network_id:
89       value: test_net