LogTrying to get a VNF Package present in the NFVO Catalogue
[Documentation]Test ID: 7.3.3.2.1
Set Headers{"Accept": "${ACCEPT_JSON}"}
...Test title: GET Individual VNF Package
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Test objective: The objective is to test the retrieval of an individual VNF package information perform a JSON schema validation of the collected data structure
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Test objective: The objective is to test the retrieval of an individual VNF package content and perform a validation that returned content is in zip format
GET Individual VNF Package Content with Range Request and NFVO supporting Range Requests
LogTrying to get a VNF Package Content using RANGE using an NFVO that can handle it
[Documentation]Test ID: 7.3.3.3.2
Pass Execution If${NFVO_RANGE_OK}== 0Skipping this test as NFVO is not able to handle partial Requests.
...Test title: GET Individual VNF Package Content with Range Request and NFVO supporting Range Requests
Set Headers{"Accept": "${ACCEPT_ZIP}"}
...Test objective: The objective is to test the retrieval of an individual VNF package content when using a range request to return single range of bytes from the file, with the NFVO supporting it. The test also perform a validation that returned content matches the issued range
Set Headers{"Range": "${range}"}
...Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
Check HTTP Response Header Content-Range Is Present and Matches the requested range
LogHeader Content-Length is present
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
GET Individual VNF Package Content with Range Request and NFVO not supporting Range Requests
[Documentation]Test ID: 7.3.3.3.3
...Test title: GET Individual VNF Package Content with Range Request and NFVO not supporting Range Requests
...Test objective: The objective is to test that the retrieval of an individual VNF package content, when using a range request to return single range of bytes from the file and the NFVO not supporting it, returns the full VNF Package file.
...Pre-conditions: One or more VNF packages are onboarded in the NFVO.
...Reference: section 10.4.5.3.2 - SOL003 v2.4.1
...Config ID: Config_prod_NFVO
...Applicability: The NFVO does not support range requests to return single range of bytes from the VNF package file
...Post-Conditions: none
GET Individual VNF Package Content with Range Request
GET Individual VNF Package Content with invalid Range Request
LogTrying to get a range of bytes of the limit of the VNF Package
[Documentation]Test ID: 7.3.3.3.4
Pass Execution If${NFVO_RANGE_OK}== 0Skipping this test as NFVO is not able to handle partial Requests.
...Test title: GET Individual VNF Package Content with invalid Range Request
Set Headers{"Accept": "${ACCEPT_ZIP}"}
...Test objective: The objective is to test that the retrieval of an individual VNF package content fails when using a range request that does not match any available byte range in the file.
Set Headers{"Range": "${erroneousRange}"}
...Pre-conditions: One or more VNF packages are onboarded in the NFVO.
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
GET VNF Package Content - Negative (onboardingState issue)
GET Individual VNF Package Content with conflict due to onboarding state
LogTrying to get a VNF Package content present in the NFVO Catalogue, but not in ONBOARDED operationalStatus
[Documentation]Test ID: 7.3.3.3.6
Set Headers{"Accept": "${ACCEPT_ZIP}"}
...Test title: GET Individual VNF Package Content with conflict due to onboarding state
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Test objective: The objective is to test that the retrieval of an individual VNF package content fails due to a conflict when the VNF Package is not in onboarding state ONBOARDED in the NFVO. The test also performs a validation of the JSON schema validation of the failed operation HTTP response