blob: ae0803687f0e836677eae28cef34d90e683a0ccd [file] [log] [blame]
ilanap637206b2018-02-04 17:06:22 +02001Feature: Tosca Validation Flow
2
3 Background: Init
4 Given I want to create a VLM
eleonorali3437fc92018-02-18 15:14:46 +02005 Given I want to set all Togglz to be "true"
ilanap637206b2018-02-04 17:06:22 +02006
7 Scenario: Full - Create and submit VSP Network Package and Create VF
8 When I want to create a VSP with onboarding type "NetworkPackage"
9
10 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
11 And I want to process the NetworkPackage file for this VSP
12
13 Then I want to commit this Item
14 And I want to submit this VSP
15 And I want to package this VSP
16
17 Then I want to make sure this Item has status "Certified"
18
19 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
20
21 Then I want to create a VF for this Item
eleonorali87b672d2018-02-11 16:06:15 +020022
eleonorali3437fc92018-02-18 15:14:46 +020023 Scenario: Validate Input parameter - annotation was added
24
eleonorali87b672d2018-02-11 16:06:15 +020025 When I want to create a VSP with onboarding type "NetworkPackage"
26
27 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip"
28 And I want to process the NetworkPackage file for this VSP
29
30 Then I want to commit this Item
31 And I want to submit this VSP
32 And I want to package this VSP
33
34 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
35 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
36
37 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.type" for value "org.openecomp.annotations.Source"
eleonorali2f7a38f2018-02-13 14:39:39 +020038 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.source_type" for value "HEAT"
eleonorali87b672d2018-02-11 16:06:15 +020039 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label" to have length 2
40 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
41 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[1]" for value "main-heat1"
42 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.param_name" for value "pcm_flavor_name"
43
eleonorali87b672d2018-02-11 16:06:15 +020044 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.type" for value "org.openecomp.annotations.Source"
eleonorali2f7a38f2018-02-13 14:39:39 +020045 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.source_type" for value "HEAT"
eleonorali87b672d2018-02-11 16:06:15 +020046 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label" to have length 1
47 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label[0]" for value "main-heat1"
48 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.param_name" for value "sm_server_names"
49
50 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.type" for value "org.openecomp.annotations.Source"
eleonorali2f7a38f2018-02-13 14:39:39 +020051 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.source_type" for value "HEAT"
eleonorali87b672d2018-02-11 16:06:15 +020052 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label" to have length 1
53 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
54 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.param_name" for value "dummy_net_netmask_1"
55
eleonorali3437fc92018-02-18 15:14:46 +020056 Then I want to create a VF for this Item
57
eleonorali669c9842018-04-17 13:48:25 +030058 Scenario: Validate Input parameter for volume HEAT file
eleonorali7dae6462018-04-16 09:45:17 +030059 When I want to create a VSP with onboarding type "NetworkPackage"
60
61 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/annotationMultVolume.zip"
62 And I want to process the NetworkPackage file for this VSP
63
64 Then I want to commit this Item
65 And I want to submit this VSP
66 And I want to package this VSP
67
68 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
69 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
70
71 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.type" for value "org.openecomp.annotations.Source"
72 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.properties.source_type" for value "HEAT"
73 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.properties.vf_module_label" to have length 1
74 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.properties.vf_module_label[0]" for value "hot-nimbus-oam_v1.0"
75 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.properties.param_name" for value "pcrf_oam_vol_size"
76
77 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.type" for value "org.openecomp.annotations.Source"
78 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.properties.source_type" for value "HEAT"
79 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.properties.vf_module_label" to have length 1
80 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.properties.vf_module_label[0]" for value "hot-nimbus-pcm_v1.0"
81 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.properties.param_name" for value "pcrf_pcm_vol_size"
82
83
84 Then I want to check property "topology_template.inputs.pcm-volumes_and_pcm_main_param.annotations.source.type" for value "org.openecomp.annotations.Source"
85 Then I want to check property "topology_template.inputs.pcm-volumes_and_pcm_main_param.annotations.source.properties.source_type" for value "HEAT"
86 Then I want to check property "topology_template.inputs.pcm-volumes_and_pcm_main_param.annotations.source.properties.vf_module_label" to have length 1
87 Then I want to check property "topology_template.inputs.pcm-volumes_and_pcm_main_param.annotations.source.properties.vf_module_label[0]" for value "hot-nimbus-pcm_v1.0"
88 Then I want to check property "topology_template.inputs.pcm-volumes_and_pcm_main_param.annotations.source.properties.param_name" for value "pcm-volumes_and_pcm_main_param"
89
90 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.type" for value "org.openecomp.annotations.Source"
91 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.properties.source_type" for value "HEAT"
92 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.properties.vf_module_label" to have length 2
93 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.properties.vf_module_label[0]" for value "hot-nimbus-pcm_v1.0"
94 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.properties.vf_module_label[1]" for value "hot-nimbus-oam_v1.0"
95 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.properties.param_name" for value "oam-volumes_pcm_main_param"
96
97 Then I want to check property "topology_template.inputs.oam-volumes_pcm-volumes_and_oam_main_param.annotations.source.type" for value "org.openecomp.annotations.Source"
98 Then I want to check property "topology_template.inputs.oam-volumes_pcm-volumes_and_oam_main_param.annotations.source.properties.source_type" for value "HEAT"
99 Then I want to check property "topology_template.inputs.oam-volumes_pcm-volumes_and_oam_main_param.annotations.source.properties.vf_module_label" to have length 2
100 Then I want to check property "topology_template.inputs.oam-volumes_pcm-volumes_and_oam_main_param.annotations.source.properties.vf_module_label[0]" for value "hot-nimbus-pcm_v1.0"
101 Then I want to check property "topology_template.inputs.oam-volumes_pcm-volumes_and_oam_main_param.annotations.source.properties.vf_module_label[1]" for value "hot-nimbus-oam_v1.0"
102 Then I want to check property "topology_template.inputs.oam-volumes_pcm-volumes_and_oam_main_param.annotations.source.properties.param_name" for value "oam-volumes_pcm-volumes_and_oam_main_param"
103
104 Then I want to create a VF for this Item
105
eleonorali669c9842018-04-17 13:48:25 +0300106 Scenario: Validate Input parameter - annotation was no added for Volume associated to Nested
107
108 When I want to create a VSP with onboarding type "NetworkPackage"
109
110 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/volumeUnderNested.zip"
111 And I want to process the NetworkPackage file for this VSP
112
113 Then I want to commit this Item
114 And I want to submit this VSP
115 And I want to package this VSP
116
117 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
118
119 When I want to load the yaml content of the entry "Definitions/nestedServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
120 Then I want to check property "topology_template.inputs.CMAUI_volume_type.annotations" does not exist
121
122 Then I want to create a VF for this Item
123
eleonorali3437fc92018-02-18 15:14:46 +0200124 Scenario: Validate Input parameter - annotation was not added
125
126 When I want to create a VSP with onboarding type "NetworkPackage"
127
128 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip"
129 And I want to process the NetworkPackage file for this VSP
130
131 Then I want to commit this Item
132 And I want to submit this VSP
133 And I want to package this VSP
134
135 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
136
137 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
eleonorali2f7a38f2018-02-13 14:39:39 +0200138 Then I want to check property "topology_template.inputs.OS::stack_name" exists
139 Then I want to check property "topology_template.inputs.OS::stack_name.annotations" does not exist
140
eleonorali87b672d2018-02-11 16:06:15 +0200141 When I want to load the yaml content of the entry "Definitions/nested-pcm_v0.1ServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
142 Then I want to check property "topology_template.inputs.port_pcm_port_0_network_role.annotations" does not exist
143 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
144 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
eleonorali3437fc92018-02-18 15:14:46 +0200145 Then I want to check property "topology_template.inputs.sm_server_names.annotations" does not exist
eleonorali87b672d2018-02-11 16:06:15 +0200146
147 When I want to load the yaml content of the entry "Definitions/nested-pcm_v0.2ServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
148 Then I want to check property "topology_template.inputs.port_pcm_port_13_mac_requirements.annotations" does not exist
149 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
150 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
151
152 When I want to load the yaml content of the entry "Definitions/Nested_computeServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
153 Then I want to check property "topology_template.inputs.compute_compute_user_data_format.annotations" does not exist
154 Then I want to check property "topology_template.inputs.vm_image_name.annotations" does not exist
155 Then I want to check property "topology_template.inputs.compute_compute_name.annotations" does not exist
156
eleonoralidece2c12018-07-11 20:15:47 +0300157 Then I want to create a VF for this Item
158
159 Scenario: Validate Input parameter for nested HEAT belongs to volume HEAT
160 when volume heat is associated to main HEAT
161 When I want to create a VSP with onboarding type "NetworkPackage"
162
163 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/nested-belongs-to-volume.zip"
164 And I want to process the NetworkPackage file for this VSP
165
166 Then I want to commit this Item
167 And I want to submit this VSP
168 And I want to package this VSP
169
170 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
171
172 When I want to load the yaml content of the entry "Definitions/ocgmgr_nested_volumeServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
173 Then I want to check property "topology_template.inputs.volume_type.annotations" does not exist
174 Then I want to check property "topology_template.inputs.vnf_name.annotations" does not exist
175 Then I want to check property "topology_template.inputs.index.annotations" does not exist
176 Then I want to check property "topology_template.inputs.size.annotations" does not exist
177
178 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
179
180 Then I want to check property "topology_template.inputs.index" does not exist
181 Then I want to check property "topology_template.inputs.size" does not exist
182 Then I want to check property "topology_template.inputs.volume_type" does not exist
183
184 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.type" for value "org.openecomp.annotations.Source"
185 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.source_type" for value "HEAT"
186 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label" to have length 6
187 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[0]" for value "ocgapp_03"
188 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[1]" for value "ocgapp_02"
189 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[2]" for value "ocgmgr"
190 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[3]" for value "ocgapp_01"
191 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[4]" for value "ocgapp_04"
192 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[5]" for value "base_ocg"
193
194 Then I want to create a VF for this Item