[VVP] stand alone tool, script updates
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_environment_file_parameters / fail / fail.yaml
1 # -*- coding: utf8 -*-
2 # ============LICENSE_START=======================================================
3 # org.onap.vvp/validation-scripts
4 # ===================================================================
5 # Copyright © 2019 AT&T Intellectual Property. All rights reserved.
6 # ===================================================================
7 #
8 # Unless otherwise specified, all software contained herein is licensed
9 # under the Apache License, Version 2.0 (the "License");
10 # you may not use this software except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #             http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 #
21 #
22 #
23 # Unless otherwise specified, all documentation contained herein is licensed
24 # under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25 # you may not use this documentation except in compliance with the License.
26 # You may obtain a copy of the License at
27 #
28 #             https://creativecommons.org/licenses/by/4.0/
29 #
30 # Unless required by applicable law or agreed to in writing, documentation
31 # distributed under the License is distributed on an "AS IS" BASIS,
32 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 # See the License for the specific language governing permissions and
34 # limitations under the License.
35 #
36 # ============LICENSE_END============================================
37 #
38 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
39 #
40
41 heat_template_version: 2015-04-30
42
43 description: fdsafsfsa
44
45 parameters:
46
47   fw_oam_route_prefixes:
48     type: string
49     description: nsjalfdn
50
51   myvm_net_fqdn:
52     type: string
53     description: nasfln
54
55   TESTDB_valet_hosts:
56     type: string
57     description: nsfadl
58
59   STARKDB_int_private_v6_ips:
60     type: comma_delimited_list
61     description: ndsajlfn
62
63   workload_context:
64     type: string
65     description: Unique ID for this VNF instance
66
67   availability_zone_0:
68     type: json
69     description: Unique ID for this VNF instance
70
71   environment_context:
72     type: string
73     description: Unique ID for this VNF instance
74   
75   vnf_id:
76     type: string
77     description: Unique ID for this VNF instance
78
79   vf_module_id:
80     type: json
81     description: Unique ID for this VNF module instance
82
83   vnf_name:
84     type: string
85     description: Unique name for this VNF instance
86
87   starkdb_name:
88     type: string
89     description: fdhsfbsakdjnfjdsank
90
91   STARKDB_name:
92     type: json
93     description: fdhsfbsakdjnfjdsank
94
95   STARKDB_image_name:
96     type: string
97     description: fdhsfbsakdjnfjdsank
98
99   STARKDB_flavor_dvdfg:
100     type: string
101     description: fdhsfbsakdjnfjdsank
102
103
104   TESTDB_name:
105     type: string
106     description: fdhsfbsakdjnfjdsank
107
108   TESTDB_name2:
109     type: string
110     description: fdhsfbsakdjnfjdsank
111
112   TESTDB_image_name:
113     type: string
114     description: fdhsfbsakdjnfjdsank
115
116   TESTDB_flavor_name:
117     type: string
118     description: fdhsfbsakdjnfjdsank
119
120   stark_vol1_id:
121     type: number
122     description: myvolume
123     constraints:
124       - range: { min: 100, max: 400 }
125
126   param_X:
127     type: string
128     description: fdafsda
129
130   priv_net_id:
131     type: string
132     description: external network
133
134   #priv_sub2net_id:
135   #  type: json
136   #  description: external subnetwork
137
138   int_priv_subnet_name:
139     type: string
140     description: sadnfjls
141
142   int_priv_net_id:
143     type: string
144     description: internal network name
145
146   STARKDB_crazy_floating_ip:
147     type: string
148     description: asnfjl
149
150   crazy_net_id:
151     type: string
152     description: ansfkld
153
154   crazy_subnet_id:
155     type: string
156     description: asdfnkal
157
158   STARKDB_crazy_ip_0:
159     type: string
160     description: nsalfd
161
162   STARKDB_crazy_ip_1:
163     type: string
164     description: nsalfd
165
166   stark_rg_count:
167     type: string
168     description: nafs
169
170 resources:
171
172   STARKDB_cinder_attach:
173     type: OS::Cinder::VolumeAttachment
174     properties:
175       server: { get_resource: STARKDB_server_0 }
176       volume: { get_param: stark_vol1_id }
177
178   STARKDB_server_0:
179     type: OS::Nova::Server
180     properties:
181       image: { get_param: STARKDB_image_name }
182       flavor: { get_param: STARKDB_flavor_dvdfg }
183       name: { get_param: starkdb_name }
184       metadata:
185         vnf_id: { get_param: vnf_id }
186         vf_module_id: { get_param: vf_module_id }
187         vnf_name: { get_param: vnf_name }
188         #int_network_id: { get_resource: int_priv_network }
189         workload_context: { get_param: workload_context }
190         environment_context: { get_param: environment_context }
191         #valet_groups: "safnkl, sdaflksanl"
192       networks:
193         - port: { get_resource: STARKDB_0_int_priv_port_0 }
194         - port: { get_resource: STARKDB_0_PRIV_port_1}
195         - port: { get_resource: STARKDB_0_crazy_port_0 }
196         - network: { get_param: int_priv_net_id }
197       user_data: { get_file: deep-nested.file }
198         
199
200   STARKDB_server_1:
201     type: OS::Nova::Server
202     properties:
203       image: { get_param: STARKDB_image_name }
204       flavor: { get_param: STARKDB_flavor_dvdfg }
205       name: { get_param: STARKDB_name }
206       metadata:
207         vnf_id: { get_param: vnf_id }
208         vf_module_id: { get_param: vf_module_id }
209         vnf_name: { get_param: vnf_name }
210         #int_network_id: { get_resource: int_priv_network }
211         workload_context: { get_param: workload_context }
212         environment_context: { get_param: environment_context }
213         #valet_groups: "safnkl, sdaflksanl"
214       networks:
215         - port: {get_resource: STARKDB_1_int_priv_port_0}
216         - port: {get_resource: STARKDB_1_crazy_port_0}
217         - network: { get_param: int_priv_net_id }
218
219   TESTDB_server_0:
220     type: OS::Nova::Server
221     properties:
222       image: { get_param: TESTDB_image_name }
223       flavor: { get_param: TESTDB_flavor_name }
224       name: { get_param: TESTDB_name }
225       metadata:
226         vnf_id: { get_param: vnf_id }
227         vf_module_id: { get_param: vf_module_id }
228         vnf_name: { get_param: vnf_name }
229         #int_network_id: { get_resource: int_priv_network }
230         workload_context: { get_param: workload_context }
231         environment_context: { get_param: environment_context }
232         #valet_groups: "safnkl, sdaflksanl"
233       networks:
234         - port: {get_resource: TESTDB_0_int_priv_port_0}
235         - network: { get_param: int_priv_net_id }
236
237       availability_zone: { get_param: availability_zone_0 }
238
239   TESTDB_server_1:
240     type: OS::Nova::Server
241     properties:
242       image: { get_param: TESTDB_image_name }
243       flavor: { get_param: TESTDB_flavor_name }
244       name: { get_param: TESTDB_name2 }
245       metadata:
246         test_fqdn: { get_param: myvm_net_fqdn }
247         vnf_id: { get_param: vnf_id }
248         vf_module_id: { get_param: vf_module_id }
249         vnf_name: { get_param: vnf_name }
250         #int_network_id: { get_resource: int_priv_network }
251         workload_context: { get_param: workload_context }
252         environment_context: { get_param: environment_context }
253         #valet_groups: "safnkl, sdaflksanl"
254       networks:
255         - port: {get_resource: TESTDB_0_int_priv_port_0}
256         - network: { get_param: int_priv_net_id }
257
258       availability_zone: 
259         str_replace:
260           template: $AZ$VALET_HOST_ASSIGNMENT
261           params:
262             $AZ: { get_param: availability_zone_0 }
263             $VALET_HOST_ASSIGNMENT: { get_param: [ TESTDB_valet_hosts, 0 ] }
264
265
266   vol_attachment:
267     type: OS::Cinder::VolumeAttachment
268     properties:
269       volume_id: { get_param: stark_vol1_id }
270       server: { get_resource: STARKDB_server_0 }
271
272   int_private_net_id:
273     type: OS::Neutron::Net
274     properties:
275       name: { get_param: int_priv_net_id }
276
277   priv_network:
278     type: OS::Neutron::Net
279     properties:
280       fnsdf: nksldfnkl
281
282   stark_nested_resource:
283     type: STARKDB-nested.yaml
284     properties:
285       my_nested_parame: { get_param: vnf_id }
286
287   int_priv_subnet:
288       type: OS::Neutron::Subnet
289       properties:
290           name: { get_param: int_priv_subnet_name}
291           network_id: { get_resource: int_private_net_id }
292
293   STARKDB_0_int_priv_port_0:
294     type: OS::Neutron::Port
295     properties:
296       network: { get_resource: int_private_net_id }
297       fixed_ips:
298         - subnet: { get_resource: int_priv_subnet }
299         - ip_address: { get_param: STARKDB_int_private_v6_ips }
300
301       
302   STARKDB_0_crazy_port_0:
303     type: OS::Neutron::Port
304     properties:
305       network: { get_param: crazy_net_id }
306       fixed_ips: 
307         - subnet: { get_param: crazy_subnet_id }
308         - ip_address: { get_param: STARKDB_crazy_ip_0 }
309       allowed_address_pairs: [ { "ip_address": {get_param:
310         STARKDB_crazy_floating_ip}}]
311
312
313   STARKDB_1_crazy_port_0:
314     type: OS::Neutron::Port
315     properties:
316       network: { get_param: crazy_net_id }
317       fixed_ips: 
318         - subnet: { get_param: crazy_subnet_id }
319         - ip_address: { get_param: STARKDB_crazy_ip_1 }
320       allowed_address_pairs: [ { "ip_address": {get_param:
321         STARKDB_crazy_floating_ip}}]
322
323   STARKDB_1_int_priv_port_0:
324     type: OS::Neutron::Port
325     properties:
326       network: { get_resource: int_private_net_id }
327
328
329   TESTDB_0_int_priv_port_0:
330     type: OS::Neutron::Port
331     properties:
332       network: { get_param: int_priv_net_id }
333
334   STARKDB_0_PRIV_port_1:
335     type: OS::Neutron::Port
336     properties:
337       network: { get_param: priv_net_id }
338
339   STARKDB_cloud_config:
340     type: OS::Heat::CloudConfig
341
342
343   myrouteprefix:
344     type: OS::ContrailV2::InterfaceRouteTable
345     properties:
346       name:
347         str_replace:
348           template: VNF_NAME_interface_route_table
349           params:
350             VNF_NAME: { get_param: vnf_name }
351       interface_route_table_routes:
352         interface_route_table_routes_route: { get_param: fw_oam_route_prefixes }
353         test: safd
354
355   stark_rg:
356     type: OS::Heat::ResourceGroup
357     properties:
358       count: { get_param: stark_rg_count }
359       resource_def:
360         type: STARKDB-nested.yaml
361         properties:
362           my_nested_parameter: 4
363
364 outputs:
365   test_output:
366     value: { list_join: [',', [ { get_param: param_X }, { get_param: stark_vol1_id } ] ] }
367
368   int_priv_su2bnet_id:
369     value: { get_resource: int_priv_subnet }
370
371   int_priv_net_id:
372     value: { get_resource: int_private_net_id }
373
374   STARKDB_crazy_floating_ip:
375     value: { get_param: STARKDB_crazy_floating_ip }
376
377   crazy_subnet_id:
378     value: { get_param: crazy_subnet_id }
379
380   crazy_net_id:
381     value: { get_param: crazy_net_id }