[VVP] stand alone tool, script updates
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_environment_file_parameters / fail / STARKDB-nested.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   my_nested_parameter:
48     type: number
49     description: sdfnklafd
50   STARKDB_image_name:
51     type: number
52     description: sdfnklafd
53   STARKDB_name:
54     type: number
55     description: sdfnklafd
56   my_nested_parameter:
57     type: number
58     description: sdfnklafd
59     #constraints:
60     #  - range: { min: 100, max: 400 }
61
62 resources:
63
64   STARKDB_server_2:
65     type: OS::Nova::Server
66     properties:
67       image: { get_param: STARKDB_image_name }
68       flavor: { get_param: STARKDB_flavor_dvdfg }
69       name: { get_param: STARKDB_name }
70       availability_zone: { get_param: availability_zone_0 }
71
72   my_nested_resource2:
73     type: test
74     properties:
75       name: { get_param: asfasf }
76
77   STARKDB_2_crazy_port_2:
78     type: OS::Neutron::Port
79     properties:
80       network: { get_param: crazy_net_id }
81       fixed_ips: 
82         - subnet: { get_param: crazy_subnet_id }
83         - ip_address: { get_param: STARKDB_crazy_ip_0 }
84       allowed_address_pairs: [ { "ip_address": {get_param:
85         STARKDB_crazy_floating_ip}}]
86
87   int_private_net_id:
88     type: OS::Neutron::Net
89     properties:
90       name: { get_param: int_priv_net_id }
91
92   STARKDB_0_int_priv_port_0:
93     type: OS::Neutron::Port
94     properties:
95       network: { get_resource: int_private_net_id }
96       fixed_ips:
97         - subnet: { get_resource: int_priv_subnet }
98         - ip_address: { get_param: STARKDB_int_private_v6_ips }
99
100   myrouteprefix:
101     type: OS::ContrailV2::InterfaceRouteTable
102     properties:
103       name:
104         str_replace:
105           template: VNF_NAME_interface_route_table
106           params:
107             VNF_NAME: { get_param: vnf_name }
108       interface_route_table_routes:
109         interface_route_table_routes_route: { get_param: fw_oam_route_prefixes }
110         test: safd
111
112   stark_rg:
113     type: OS::Heat::ResourceGroup
114     properties:
115       count: { get_param: stark_rg_count }
116       resource_def:
117         type: STARKDB-nested.yaml
118         properties:
119           my_nested_parameter: 4
120
121 outputs:
122   test_value: 
123     value: { get_param: my_nested_parameter }