[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / test / resources / mock / model / serviceTemplateHeatExtend.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Test
4   template_author: OPENECOMP
5   template_version: 1.0.0
6 description: testing desc tosca service template
7 imports:
8 - myfile1:
9     file: path1/path2/file1.yaml
10 - myfile2:
11     file: path1/path2/file2.yaml
12 artifact_types:
13   one_artifact:
14     mime_type: application/java-archive
15     file_ext:
16     - yaml
17     - xml
18 node_types:
19   compute_node_type:
20     derived_from: tosca.nodes.Root
21     version: 1.0.0
22     description: tosca compute test
23     properties:
24       cpu_num:
25         type: integer
26         description: Number of CPUs requested for a software node instance
27         required: true
28         default: 1
29         status: SUPPORTED
30         constraints:
31         - greater_or_equal: 5.0
32         - equal: 5
33         - greater_than: 6.02
34         - in_range:
35           - 0
36           - UNBOUNDED
37     attributes:
38       attDef1:
39         type: string
40         default: hi
41         status: SUPPORTED
42     requirements:
43     - re1:
44         capability: tosca.cap1
45         occurrences:
46         - 5
47         - 1
48     capabilities:
49       cap1:
50         type: tosca.cap
51         valid_source_types:
52         - node1
53         - node2
54         occurrences:
55         - 1
56         - UNBOUNDED
57 topology_template:
58   description: topologi template descroption
59   inputs:
60     OS::stack_name:
61       type: string
62       description: desc
63       required: false
64     inParam1:
65       type: string
66       description: desc
67       required: false
68       default: my default val
69       label: my label
70       constraints:
71       - greater_than: 6
72       - greater_or_equal: 9
73       entry_schema:
74         type: tosca.myType
75   node_templates:
76     firatNodeTemplate:
77       type: nodeTypeRef
78       directives:
79       - selectable
80       - substitutable
81       properties:
82         prop2: '{ get_input: my_mysql_rootpw }'
83         prop1: abcd
84       attributes:
85         att2: '{ get_input: my_mysql_rootpw }'
86         att1: att1Val
87       requirements:
88       - req1:
89           capability: capA
90           node: nodeA
91           relationship: relationB
92           node_filter:
93             properties:
94               propName1:
95               - greater_or_equal: 9
96               propName2:
97               - min_length: 1
98               - max_length: 2
99           occurrences:
100           - 1
101           - 2
102       - req2:
103           capability: capA
104           node: nodeA
105           relationship: relationB
106       capabilities:
107       - cap1:
108           properties:
109             num_cpus: '{ get_input: cpus }'
110           attributes:
111             num_cpus: '66'
112       node_filter:
113         properties:
114           test1:
115           - equal: 1 MB
116   substitution_mappings:
117     node_type: myNodeType.node
118     capabilities:
119       database_endpoint:
120       - database
121       - database_endpoint