[VVP] udpating scripts for casablanca 2
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_environment_file_parameters / fail / fail.yaml
1 heat_template_version: 2015-04-30
2
3 description: fdsafsfsa
4
5 parameters:
6
7   fw_oam_route_prefixes:
8     type: string
9     description: nsjalfdn
10
11   myvm_net_fqdn:
12     type: string
13     description: nasfln
14
15   STARKDB_private_v6_ips:
16     type: comma_delimited_list
17     description: ndsajlfn
18
19   workload_context:
20     type: string
21     description: Unique ID for this VNF instance
22
23   availability_zone_0:
24     type: json
25     description: Unique ID for this VNF instance
26
27   environment_context:
28     type: string
29     description: Unique ID for this VNF instance
30   
31   vnf_id:
32     type: string
33     description: Unique ID for this VNF instance
34
35   vf_module_id:
36     type: json
37     description: Unique ID for this VNF module instance
38
39   vnf_name:
40     type: string
41     description: Unique name for this VNF instance
42
43   starkdb_name:
44     type: string
45     description: fdhsfbsakdjnfjdsank
46
47   STARKDB_name:
48     type: json
49     description: fdhsfbsakdjnfjdsank
50
51   STARKDB_image_name:
52     type: string
53     description: fdhsfbsakdjnfjdsank
54
55   STARKDB_flavor_dvdfg:
56     type: string
57     description: fdhsfbsakdjnfjdsank
58
59
60   TESTDB_name:
61     type: string
62     description: fdhsfbsakdjnfjdsank
63
64   TESTDB_name2:
65     type: string
66     description: fdhsfbsakdjnfjdsank
67
68   TESTDB_image_name:
69     type: string
70     description: fdhsfbsakdjnfjdsank
71
72   TESTDB_flavor_name:
73     type: string
74     description: fdhsfbsakdjnfjdsank
75
76   stark_vol1_id:
77     type: number
78     description: myvolume
79     constraints:
80       - range: { min: 100, max: 400 }
81
82   param_X:
83     type: string
84     description: fdafsda
85
86   priv_net_id:
87     type: string
88     description: external network
89
90   #priv_sub2net_id:
91   #  type: json
92   #  description: external subnetwork
93
94   int_priv_subnet_name:
95     type: string
96     description: sadnfjls
97
98   int_priv_net_id:
99     type: string
100     description: internal network name
101
102   STARKDB_crazy_floating_ip:
103     type: string
104     description: asnfjl
105
106   crazy_net_id:
107     type: string
108     description: ansfkld
109
110   crazy_subnet_id:
111     type: string
112     description: asdfnkal
113
114   STARKDB_crazy_ip_0:
115     type: string
116     description: nsalfd
117
118   STARKDB_crazy_ip_1:
119     type: string
120     description: nsalfd
121
122   stark_rg_count:
123     type: string
124     description: nafs
125
126 resources:
127
128   STARKDB_cinder_attach:
129     type: OS::Cinder::VolumeAttachment
130     properties:
131       server: { get_resource: STARKDB_server_0 }
132       volume: { get_param: stark_vol1_id }
133
134   STARKDB_server_0:
135     type: OS::Nova::Server
136     properties:
137       image: { get_param: STARKDB_image_name }
138       flavor: { get_param: STARKDB_flavor_dvdfg }
139       name: { get_param: starkdb_name }
140       metadata:
141         vnf_id: { get_param: vnf_id }
142         vf_module_id: { get_param: vf_module_id }
143         vnf_name: { get_param: vnf_name }
144         #int_network_id: { get_resource: int_priv_network }
145         workload_context: { get_param: workload_context }
146         environment_context: { get_param: environment_context }
147       networks:
148         - port: { get_resource: STARKDB_0_int_priv_port_0 }
149         - port: { get_resource: STARKDB_0_PRIV_port_1}
150         - port: { get_resource: STARKDB_0_crazy_port_0 }
151         - network: { get_param: int_priv_net_id }
152       user_data: { get_file: deep-nested.file }
153         
154
155   STARKDB_server_1:
156     type: OS::Nova::Server
157     properties:
158       image: { get_param: STARKDB_image_name }
159       flavor: { get_param: STARKDB_flavor_dvdfg }
160       name: { get_param: STARKDB_name }
161       metadata:
162         vnf_id: { get_param: vnf_id }
163         vf_module_id: { get_param: vf_module_id }
164         vnf_name: { get_param: vnf_name }
165         #int_network_id: { get_resource: int_priv_network }
166         workload_context: { get_param: workload_context }
167         environment_context: { get_param: environment_context }
168       networks:
169         - port: {get_resource: STARKDB_1_int_priv_port_0}
170         - port: {get_resource: STARKDB_1_crazy_port_0}
171         - network: { get_param: int_priv_net_id }
172
173   TESTDB_server_0:
174     type: OS::Nova::Server
175     properties:
176       image: { get_param: TESTDB_image_name }
177       flavor: { get_param: TESTDB_flavor_name }
178       name: { get_param: TESTDB_name }
179       metadata:
180         vnf_id: { get_param: vnf_id }
181         vf_module_id: { get_param: vf_module_id }
182         vnf_name: { get_param: vnf_name }
183         #int_network_id: { get_resource: int_priv_network }
184         workload_context: { get_param: workload_context }
185         environment_context: { get_param: environment_context }
186       networks:
187         - port: {get_resource: TESTDB_0_int_priv_port_0}
188         - network: { get_param: int_priv_net_id }
189
190       availability_zone: { get_param: availability_zone_0 }
191
192   TESTDB_server_1:
193     type: OS::Nova::Server
194     properties:
195       image: { get_param: TESTDB_image_name }
196       flavor: { get_param: TESTDB_flavor_name }
197       name: { get_param: TESTDB_name2 }
198       metadata:
199         test_fqdn: { get_param: myvm_net_fqdn }
200         vnf_id: { get_param: vnf_id }
201         vf_module_id: { get_param: vf_module_id }
202         vnf_name: { get_param: vnf_name }
203         #int_network_id: { get_resource: int_priv_network }
204         workload_context: { get_param: workload_context }
205         environment_context: { get_param: environment_context }
206       networks:
207         - port: {get_resource: TESTDB_0_int_priv_port_0}
208         - network: { get_param: int_priv_net_id }
209
210   vol_attachment:
211     type: OS::Cinder::VolumeAttachment
212     properties:
213       volume_id: { get_param: stark_vol1_id }
214       server: { get_resource: STARKDB_server_0 }
215
216   int_private_net_id:
217     type: OS::Neutron::Net
218     properties:
219       name: { get_param: int_priv_net_id }
220
221   priv_network:
222     type: OS::Neutron::Net
223     properties:
224       fnsdf: nksldfnkl
225
226   stark_nested_resource:
227     type: STARKDB-nested.yaml
228     properties:
229       my_nested_parame: { get_param: vnf_id }
230
231   int_priv_subnet:
232       type: OS::Neutron::Subnet
233       properties:
234           name: { get_param: int_priv_subnet_name}
235           network_id: { get_resource: int_private_net_id }
236
237   STARKDB_0_int_priv_port_0:
238     type: OS::Neutron::Port
239     properties:
240       network: { get_resource: int_private_net_id }
241       fixed_ips:
242         - subnet_id: { get_resource: int_priv_subnet }
243         - ip_address: { get_param: STARKDB_private_v6_ips }
244
245       
246   STARKDB_0_crazy_port_0:
247     type: OS::Neutron::Port
248     properties:
249       network: { get_param: crazy_net_id }
250       fixed_ips: 
251         - subnet_id: { get_param: crazy_subnet_id }
252         - ip_address: { get_param: STARKDB_crazy_ip_0 }
253       allowed_address_pairs: [ { "ip_address": {get_param:
254         STARKDB_crazy_floating_ip}}]
255
256
257   STARKDB_1_crazy_port_0:
258     type: OS::Neutron::Port
259     properties:
260       network: { get_param: crazy_net_id }
261       fixed_ips: 
262         - subnet_id: { get_param: crazy_subnet_id }
263         - ip_address: { get_param: STARKDB_crazy_ip_1 }
264       allowed_address_pairs: [ { "ip_address": {get_param:
265         STARKDB_crazy_floating_ip}}]
266
267   STARKDB_1_int_priv_port_0:
268     type: OS::Neutron::Port
269     properties:
270       network: { get_resource: int_private_net_id }
271
272
273   TESTDB_0_int_priv_port_0:
274     type: OS::Neutron::Port
275     properties:
276       network: { get_param: int_priv_net_id }
277
278   STARKDB_0_PRIV_port_1:
279     type: OS::Neutron::Port
280     properties:
281       network: { get_param: priv_net_id }
282
283   STARKDB_cloud_config:
284     type: OS::Heat::CloudConfig
285
286
287   myrouteprefix:
288     type: OS::ContrailV2::InterfaceRouteTable
289     properties:
290       name:
291         str_replace:
292           template: VNF_NAME_interface_route_table
293           params:
294             VNF_NAME: { get_param: vnf_name }
295       interface_route_table_routes:
296         interface_route_table_routes_route: { get_param: fw_oam_route_prefixes }
297         test: safd
298
299   stark_rg:
300     type: OS::Heat::ResourceGroup
301     properties:
302       count: { get_param: stark_rg_count }
303       resource_def:
304         type: STARKDB-nested.yaml
305         properties:
306           my_nested_parameter: 4
307
308 outputs:
309   test_output:
310     value: { list_join: [',', [ { get_param: param_X }, { get_param: stark_vol1_id } ] ] }
311
312   int_priv_su2bnet_id:
313     value: { get_resource: int_priv_subnet }
314
315   int_priv_net_id:
316     value: { get_resource: int_private_net_id }
317
318   STARKDB_crazy_floating_ip:
319     value: { get_param: STARKDB_crazy_floating_ip }
320
321   crazy_subnet_id:
322     value: { get_param: crazy_subnet_id }
323
324   crazy_net_id:
325     value: { get_param: crazy_net_id }