[VVP] udpating scripts for casablanca
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_referenced_and_defined_parameters_match / fail / missing_param_reference_1.yaml
1 # -*- coding: utf8 -*-
2 # ============LICENSE_START=======================================================
3 # org.onap.vvp/validation-scripts
4 # ===================================================================
5 # Copyright © 2017 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: 2013-05-23
42
43 description: Simple template to deploy a single compute instance
44
45 parameters:
46   vnf_id:
47     description: Unique ID for this VNF
48     type: string
49   vf_module_id:
50     description: Unique ID for this VF module
51     type: string
52   vnf_name:
53     type: string
54     description: Unique name for this VNF instance
55   ex_image_name:
56     type: string
57     label: Image name or ID
58     description: Image to be used for compute instance
59   ex_key:
60     type: string
61     label: key pair
62     description: Name of the key apir the nova server will use
63   ex_vm_name:
64     type: string
65     description: Name of the VM
66   ex1_vm_names:
67     type: comma_delimited_list
68     description: Name of the VM
69   ex1_image_name:
70     type: string
71     label: Image name or ID
72     description: Image to be used for compute instance
73   ex1_flavor_name:
74     type: string
75     label: Flavor
76     description: Type of instance (flavor) to be used
77   ex1_key:
78     type: string
79     label: key pair
80     description: Name of the key apir the nova server will use
81   ex1_server_index:
82     type: number
83     label: server index
84     description: Index of server
85     constraint:
86       - range: { min: 1, max: 100 }
87
88 resources:
89   ex_software_config_0:
90     type: OS::Heat::SoftwareConfig
91     properties:
92       group: ungrouped
93       config:
94           params:
95             $stack_name: { get_param: 'OS::stack_name' }
96
97   ex_nova_server_0:
98     type: OS::Nova::Server
99     properties:
100       name: { get_param: ex_vm_name }
101       metadata:
102         vnf_id: { get_param: vnf_id }
103         vf_module_id: { get_param: vf_module_id }
104         vnf_name: { get_param: vnf_name }
105       image: { get_param: ex_image_name }
106       flavor: { get_param: ex_flavor_name }
107       key_name: { get_param: ex_key }
108       user_data:
109         get_resource: ex_software_config_0
110
111   ex1_nova_server_0:
112     type: OS::Nova::Server
113     properties:
114       name: { get_param: [ ex1_vm_names, 0 ] }
115       metadata:
116         vnf_id: { get_param: vnf_id }
117         vf_module_id: { get_param: vf_module_id }
118         vnf_name: { get_param: vnf_name }
119         project_id: { get_param: "OS::project_id" }
120       image: { get_param: ex1_image_name }
121       flavor: { get_param: ex1_flavor_name }
122       key_name: { get_param: ex1_key }
123
124   ex1_nova_server_1:
125     type: OS::Nova::Server
126     properties:
127       name: { get_param: [ ex1_vm_names, { get_param: ex1_server_index } ] }
128       metadata:
129         vnf_id: { get_param: vnf_id }
130         vf_module_id: { get_param: vf_module_id }
131         vnf_name: { get_param: vnf_name }
132       image: { get_param: ex1_image_name}
133       flavor: { get_param: ex1_flavor_name }
134       key_name: { get_param: ex1_key }