1 Feature: Tosca Validation Flow
4 Given I want to create a VLM
5 Given I want to set all Togglz to be "true"
7 Scenario: Full - Create and submit VSP Network Package and Create VF
8 When I want to create a VSP with onboarding type "NetworkPackage"
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
13 Then I want to commit this Item
14 And I want to submit this VSP
15 And I want to package this VSP
17 Then I want to make sure this Item has status "Certified"
19 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
21 Then I want to create a VF for this Item
23 Scenario: Validate Input parameter - annotation was added
25 When I want to create a VSP with onboarding type "NetworkPackage"
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
30 Then I want to commit this Item
31 And I want to submit this VSP
32 And I want to package this VSP
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
37 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.type" for value "org.openecomp.annotations.Source"
38 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.source_type" for value "HEAT"
39 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"
44 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.type" for value "org.openecomp.annotations.Source"
45 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.source_type" for value "HEAT"
46 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"
50 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.type" for value "org.openecomp.annotations.Source"
51 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.source_type" for value "HEAT"
52 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"
56 Then I want to create a VF for this Item
58 Scenario: Validate Input parameter for volume HEAT file
59 When I want to create a VSP with onboarding type "NetworkPackage"
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
64 Then I want to commit this Item
65 And I want to submit this VSP
66 And I want to package this VSP
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
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"
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"
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"
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"
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"
104 Then I want to create a VF for this Item
106 Scenario: Validate Input parameter - annotation was no added for Volume associated to Nested
108 When I want to create a VSP with onboarding type "NetworkPackage"
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
113 Then I want to commit this Item
114 And I want to submit this VSP
115 And I want to package this VSP
117 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
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
122 Then I want to create a VF for this Item
124 Scenario: Validate Input parameter - annotation was not added
126 When I want to create a VSP with onboarding type "NetworkPackage"
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
131 Then I want to commit this Item
132 And I want to submit this VSP
133 And I want to package this VSP
135 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
137 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
138 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
141 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
145 Then I want to check property "topology_template.inputs.sm_server_names.annotations" does not exist
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
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
157 Then I want to create a VF for this Item
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"
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
166 Then I want to commit this Item
167 And I want to submit this VSP
168 And I want to package this VSP
170 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
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
178 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
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
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"
194 Then I want to create a VF for this Item