Newer
Older
Elian Kraja
committed
*** Settings ***
Resource environment/vnfPackages.txt # VNF Packages specific parameters
Library JSONSchemaLibrary schemas/
Resource environment/variables.txt # Generic Parameters
Resource VNFPackageManagementKeywords.robot
Elian Kraja
committed
Library JSONLibrary
Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} ssl_verify=false
Elian Kraja
committed
*** Test Cases ***
GET all VNF Packages
[Documentation] Test ID: 7.3.3.1.1
... Test title: GET all VNF Packages
... Test objective: The objective is to test the retrieval of all the available VNF packages information and perform a JSON schema and content validation of the collected data structure
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET all VNF Packages
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body Does Not Contain softwareImages
Check HTTP Response Body Does Not Contain additionalArtifacts
Check HTTP Response Body Does Not Contain userDefinedData
Elian Kraja
committed
GET VNF Packages with attribute-based filter
[Documentation] Test ID: 7.3.3.1.2
... Test title: GET VNF Packages with attribute-based filter
... Test objective: The objective is to test the retrieval of VNF packages using attribute-based filter, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued attribute-based filter
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET VNF Packages with attribute-based filter
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body VnfPkgsInfo Matches the requested attribute-based filter
Elian Kraja
committed
GET VNF Packages with invalid attribute-based filter
[Documentation] Test ID: 7.3.3.1.3
... Test title: GET VNF Packages with invalid attribute-based filter
... Test objective: The objective is to test that the retrieval of VNF packages fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET VNF Packages with invalid attribute-based filter
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
Elian Kraja
committed
GET VNF Packages with "all_fields" attribute selector
[Documentation] Test ID: 7.3.3.1.4
... Test title: GET VNF Packages with "all_fields" attribute selector
... Test objective: The objective is to test the retrieval of VNF packages with "all_fields" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "all_fileds" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET VNF Packages with all_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested all_fields selector
Elian Kraja
committed
GET VNF Packages with "exclude_default" attribute selector
[Documentation] Test ID: 7.3.3.1.5
... Test title: GET VNF Packages with exclude_default attribute selector
... Test objective: The objective is to test the retrieval of VNF packages with "exclude_default" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "exclude_default" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET VNF Packages with exclude_default attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested exclude_default selector
GET VNF Packages with "fields" attribute selector
[Documentation] Test ID: 7.3.3.1.6
... Test title: GET VNF Packages with fields attribute selector
... Test objective: The objective is to test the retrieval of VNF packages with "fields" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "fields" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: The VNFM supports the use of fields attribute selector
... Post-Conditions: none
GET VNF Packages with fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested fields selector
Elian Kraja
committed
GET VNF Packages with "exclude_fields" attribute selector
[Documentation] Test ID: 7.3.3.1.7
... Test title: GET VNF Packages with exclude_fields attribute selector
... Test objective: The objective is to test the retrieval of VNF packages with "exclude_fields" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "exclude_fields" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: The VNFM supports the use of exclude_fields attribute selector
... Post-Conditions: none
GET VNF Packages with exclude_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested exclude_fields selector
GET all VNF Packages with invalid resource endpoint
[Documentation] Test ID: 7.3.3.1.8
... Test title: GET VNF Packages with invalid resource endpoint
... Test objective: The objective is to test that the retrieval of VNF packages fails when using invalid resource endpoint
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET all VNF Packages with invalid resource endpoint
Check HTTP Response Status Code Is 404
Elian Kraja
committed
POST all VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.9
... Test title: POST all VNF Packages - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create new VNF Packages
... Pre-conditions: none
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send POST Request for all VNF Packages
Check HTTP Response Status Code Is 405
Elian Kraja
committed
PUT all VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.10
... Test title: PUT all VNF Packages - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify existing VNF Packages
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send PUT Request for all VNF Packages
Check HTTP Response Status Code Is 405
Elian Kraja
committed
PATCH all VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.11
... Test title: PATCH all VNF Packages - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update existing VNF Packages
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send PATCH Request for all VNF Packages
Check HTTP Response Status Code Is 405
Elian Kraja
committed
DELETE all VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.12
... Test title: DELETE all VNF Packages - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete existing VNF Packages
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Giacomo Bernini
committed
... Reference: clause 10.4.2.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Packages are not deleted by the failed operation
Send DELETE Request for all VNF Packages
Check HTTP Response Status Code Is 405
Giacomo Bernini
committed
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
Check Postcondition VNF Packages Exist
GET all VNF Packages as a Paged Response
[Documentation] Test ID: 7.3.3.1.13
... Test title: GET all VNF Packages as a Paged Response
... Test objective: The objective is to test the retrieval of all the available VNF packages information as a Paged Response.
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET all VNF Packages
Check HTTP Response Status Code Is 200
Check LINK in Header
GET VNF Packages - Bad Request Response too Big
[Documentation] Test ID: 7.3.3.1.14
... Test title: GET VNF Packages - Bad Request Response too Big
... Test objective: The objective is to test that the retrieval of VNF packages fails because response is too big, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET all VNF Packages
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
GET all OnBoarded VNF Packages
[Documentation] Test ID: 7.3.3.1.15
... Test title: GET all OnBoarded VNF Packages
... Test objective: The objective is to test the retrieval of all the available onboarded VNF packages information and perform a JSON schema and content validation of the collected data structure
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get all OnBoarded VNF Packages
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body Does Not Contain softwareImages
Check HTTP Response Body Does Not Contain additionalArtifacts
Check HTTP Response Body Does Not Contain userDefinedData
GET OnBoarded VNF Packages with attribute-based filter
[Documentation] Test ID: 7.3.3.1.16
... Test title: GET OnBoarded VNF Packages with attribute-based filter
... Test objective: The objective is to test the retrieval of OnBoarded VNF packages using attribute-based filter, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued attribute-based filter
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET OnBoarded VNF Packages with attribute-based filter
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body VnfPkgsInfo Matches the requested attribute-based filter
GET OnBoarded VNF Packages with invalid attribute-based filter
[Documentation] Test ID: 7.3.3.1.17
... Test title: GET OnBoarded VNF Packages with invalid attribute-based filter
... Test objective: The objective is to test that the retrieval of OnBoarded VNF packages fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET OnBoarded VNF Packages with invalid attribute-based filter
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
GET OnBoarded VNF Packages with "all_fields" attribute selector
[Documentation] Test ID: 7.3.3.1.18
... Test title: GET OnBoarded VNF Packages with "all_fields" attribute selector
... Test objective: The objective is to test the retrieval of OnBoarded VNF packages with "all_fields" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "all_fileds" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 4.3.3.2.1, 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET OnBoarded VNF Packages with all_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested all_fields selector
GET OnBoarded VNF Packages with "exclude_default" attribute selector
[Documentation] Test ID: 7.3.3.1.19
... Test title: GET OnBoarded VNF Packages with exclude_default attribute selector
... Test objective: The objective is to test the retrieval of OnBoarded VNF packages with "exclude_default" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "exclude_default" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 4.3.3.2.1, 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET OnBoarded VNF Packages with exclude_default attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested exclude_default selector
GET OnBoarded VNF Packages with "fields" attribute selector
[Documentation] Test ID: 7.3.3.1.20
... Test title: GET OnBoarded VNF Packages with fields attribute selector
... Test objective: The objective is to test the retrieval of OnBoarded VNF packages with "fields" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "fields" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 4.3.3.2.1, 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: The VNFM supports the use of fields attribute selector
... Post-Conditions: none
GET OnBoarded VNF Packages with fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested fields selector
GET OnBoarded VNF Packages with "exclude_fields" attribute selector
[Documentation] Test ID: 7.3.3.1.21
... Test title: GET OnBoarded VNF Packages with exclude_fields attribute selector
... Test objective: The objective is to test the retrieval of OnBoarded VNF packages with "exclude_fields" attribute selector, perform a JSON schema validation of the collected data structure, and verify that the retrieved information matches the issued "exclude_fields" selector
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 4.3.3.2.1, 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: The VNFM supports the use of exclude_fields attribute selector
... Post-Conditions: none
GET OnBoarded VNF Packages with exclude_fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfPkgsInfo
Check HTTP Response Body vnfPkgsInfo Matches the requested exclude_fields selector
GET all OnBoarded VNF Packages with invalid resource endpoint
[Documentation] Test ID: 7.3.3.1.22
... Test title: GET OnBoarded VNF Packages with invalid resource endpoint
... Test objective: The objective is to test that the retrieval of OnBoarded VNF packages fails when using invalid resource endpoint
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
GET OnBoarded all VNF Packages with invalid resource endpoint
Check HTTP Response Status Code Is 404
POST all OnBoarded VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.23
... Test title: POST all OnBoarded VNF Packages - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create new OnBoarded VNF Packages
... Pre-conditions: none
... Reference: clause 10.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send OnBoarded POST Request for all VNF Packages
Check HTTP Response Status Code Is 405
PUT all OnBoarded VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.24
... Test title: PUT all OnBoarded VNF Packages - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify existing OnBoarded VNF Packages
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send OnBoarded PUT Request for all VNF Packages
Check HTTP Response Status Code Is 405
PATCH all OnBoarded VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.25
... Test title: PATCH all OnBoarded VNF Packages - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update existing OnBoarded VNF Packages
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send OnBoarded PATCH Request for all VNF Packages
Check HTTP Response Status Code Is 405
DELETE all OnBoarded VNF Packages - Method not implemented
[Documentation] Test ID: 7.3.3.1.26
... Test title: DELETE all OnBoarded VNF Packages - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete existing OnBoarded VNF Packages
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The VNF Packages are not deleted by the failed operation
Send OnBoarded DELETE Request for all VNF Packages
Check HTTP Response Status Code Is 405
Check Postcondition VNF Packages Exist
GET all OnBoarded VNF Packages as a Paged Response
[Documentation] Test ID: 7.3.3.1.27
... Test title: GET all OnBoarded VNF Packages as a Paged Response
... Test objective: The objective is to test the retrieval of all the available OnBoarded VNF packages information as a Paged Response.
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get all OnBoarded VNF Packages
Check HTTP Response Status Code Is 200
Check LINK in Header
GET OnBoarded VNF Packages - Bad Request Response too Big
[Documentation] Test ID: 7.3.3.1.28
... Test title: GET OnBoarded VNF Packages - Bad Request Response too Big
... Test objective: The objective is to test that the retrieval of OnBoarded VNF packages fails because response is too big, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: clause 10.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get all OnBoarded VNF Packages
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails