blob: 57fb1464c3f9a7ab582828ee2000e1f6d5b9ad3b [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
siddharth0905c0b0f612019-01-24 14:01:46 +05305 Then I want to submit this VLM
eleonorali3437fc92018-02-18 15:14:46 +02006 Given I want to set all Togglz to be "true"
ilanap637206b2018-02-04 17:06:22 +02007
8 Scenario: Full - Create and submit VSP Network Package and Create VF
9 When I want to create a VSP with onboarding type "NetworkPackage"
10
11 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
12 And I want to process the NetworkPackage file for this VSP
13
14 Then I want to commit this Item
15 And I want to submit this VSP
16 And I want to package this VSP
17
18 Then I want to make sure this Item has status "Certified"
19
20 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
21
22 Then I want to create a VF for this Item
eleonorali87b672d2018-02-11 16:06:15 +020023
eleonorali3437fc92018-02-18 15:14:46 +020024 Scenario: Validate Input parameter - annotation was added
25
eleonorali87b672d2018-02-11 16:06:15 +020026 When I want to create a VSP with onboarding type "NetworkPackage"
27
28 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip"
29 And I want to process the NetworkPackage file for this VSP
30
31 Then I want to commit this Item
32 And I want to submit this VSP
33 And I want to package this VSP
34
35 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
36 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
37
38 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 +020039 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 +020040 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label" to have length 2
41 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
42 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[1]" for value "main-heat1"
43 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.param_name" for value "pcm_flavor_name"
44
eleonorali87b672d2018-02-11 16:06:15 +020045 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 +020046 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 +020047 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label" to have length 1
48 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label[0]" for value "main-heat1"
49 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.param_name" for value "sm_server_names"
50
51 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 +020052 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 +020053 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label" to have length 1
54 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
55 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
eleonorali3437fc92018-02-18 15:14:46 +020057 Then I want to create a VF for this Item
58
eleonorali669c9842018-04-17 13:48:25 +030059 Scenario: Validate Input parameter for volume HEAT file
eleonorali7dae6462018-04-16 09:45:17 +030060 When I want to create a VSP with onboarding type "NetworkPackage"
61
62 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/annotationMultVolume.zip"
63 And I want to process the NetworkPackage file for this VSP
64
65 Then I want to commit this Item
66 And I want to submit this VSP
67 And I want to package this VSP
68
69 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
70 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
71
72 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.type" for value "org.openecomp.annotations.Source"
73 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.properties.source_type" for value "HEAT"
74 Then I want to check property "topology_template.inputs.pcrf_oam_vol_size.annotations.source.properties.vf_module_label" to have length 1
75 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"
76 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
78 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.type" for value "org.openecomp.annotations.Source"
79 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.properties.source_type" for value "HEAT"
80 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.properties.vf_module_label" to have length 1
81 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"
82 Then I want to check property "topology_template.inputs.pcrf_pcm_vol_size.annotations.source.properties.param_name" for value "pcrf_pcm_vol_size"
83
84
85 Then I want to check property "topology_template.inputs.pcm-volumes_and_pcm_main_param.annotations.source.type" for value "org.openecomp.annotations.Source"
86 Then I want to check property "topology_template.inputs.pcm-volumes_and_pcm_main_param.annotations.source.properties.source_type" for value "HEAT"
87 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
88 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"
89 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
91 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.type" for value "org.openecomp.annotations.Source"
92 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.properties.source_type" for value "HEAT"
93 Then I want to check property "topology_template.inputs.oam-volumes_pcm_main_param.annotations.source.properties.vf_module_label" to have length 2
94 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"
95 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"
96 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
98 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"
99 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"
100 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
101 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"
102 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"
103 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
105 Then I want to create a VF for this Item
106
eleonorali669c9842018-04-17 13:48:25 +0300107 Scenario: Validate Input parameter - annotation was no added for Volume associated to Nested
108
109 When I want to create a VSP with onboarding type "NetworkPackage"
110
111 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/volumeUnderNested.zip"
112 And I want to process the NetworkPackage file for this VSP
113
114 Then I want to commit this Item
115 And I want to submit this VSP
116 And I want to package this VSP
117
118 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
119
120 When I want to load the yaml content of the entry "Definitions/nestedServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
121 Then I want to check property "topology_template.inputs.CMAUI_volume_type.annotations" does not exist
122
123 Then I want to create a VF for this Item
124
eleonorali3437fc92018-02-18 15:14:46 +0200125 Scenario: Validate Input parameter - annotation was not added
126
127 When I want to create a VSP with onboarding type "NetworkPackage"
128
129 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip"
130 And I want to process the NetworkPackage file for this VSP
131
132 Then I want to commit this Item
133 And I want to submit this VSP
134 And I want to package this VSP
135
136 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
137
138 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 +0200139 Then I want to check property "topology_template.inputs.OS::stack_name" exists
140 Then I want to check property "topology_template.inputs.OS::stack_name.annotations" does not exist
141
eleonorali87b672d2018-02-11 16:06:15 +0200142 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
143 Then I want to check property "topology_template.inputs.port_pcm_port_0_network_role.annotations" does not exist
144 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
145 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
eleonorali3437fc92018-02-18 15:14:46 +0200146 Then I want to check property "topology_template.inputs.sm_server_names.annotations" does not exist
eleonorali87b672d2018-02-11 16:06:15 +0200147
148 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
149 Then I want to check property "topology_template.inputs.port_pcm_port_13_mac_requirements.annotations" does not exist
150 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
151 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
152
153 When I want to load the yaml content of the entry "Definitions/Nested_computeServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
154 Then I want to check property "topology_template.inputs.compute_compute_user_data_format.annotations" does not exist
155 Then I want to check property "topology_template.inputs.vm_image_name.annotations" does not exist
156 Then I want to check property "topology_template.inputs.compute_compute_name.annotations" does not exist
157
eleonoralidece2c12018-07-11 20:15:47 +0300158 Then I want to create a VF for this Item
159
160 Scenario: Validate Input parameter for nested HEAT belongs to volume HEAT
161 when volume heat is associated to main HEAT
162 When I want to create a VSP with onboarding type "NetworkPackage"
163
164 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/nested-belongs-to-volume.zip"
165 And I want to process the NetworkPackage file for this VSP
166
167 Then I want to commit this Item
168 And I want to submit this VSP
169 And I want to package this VSP
170
171 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
172
173 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
174 Then I want to check property "topology_template.inputs.volume_type.annotations" does not exist
175 Then I want to check property "topology_template.inputs.vnf_name.annotations" does not exist
176 Then I want to check property "topology_template.inputs.index.annotations" does not exist
177 Then I want to check property "topology_template.inputs.size.annotations" does not exist
178
179 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
180
181 Then I want to check property "topology_template.inputs.index" does not exist
182 Then I want to check property "topology_template.inputs.size" does not exist
183 Then I want to check property "topology_template.inputs.volume_type" does not exist
184
185 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.type" for value "org.openecomp.annotations.Source"
186 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.source_type" for value "HEAT"
187 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label" to have length 6
188 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[0]" for value "ocgapp_03"
189 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[1]" for value "ocgapp_02"
190 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[2]" for value "ocgmgr"
191 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[3]" for value "ocgapp_01"
192 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[4]" for value "ocgapp_04"
193 Then I want to check property "topology_template.inputs.vnf_name.annotations.source.properties.vf_module_label[5]" for value "base_ocg"
194
195 Then I want to create a VF for this Item