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