Commit 76358d74 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

[test-fix][SOL005][VNF-PCKG-MGMT][v5.3.1][5.3.5.13.6...

[test-fix][SOL005][VNF-PCKG-MGMT][v5.3.1][5.3.5.13.6 Test-ID][NFVSOL(26)0000093] Fixed Get VNF Package Artifact with Range Request and NFVO supporting Range Requests to add check of content-type http header.
parent 72f4b0d5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
Library           JSONSchemaLibrary    schemas/
Resource          environment/variables.txt
Resource          VNFPackageManagementKeywords.robot    
Resource    ../../SOL002/VNFFaultManagement-API/Alarms.robot
Library           JSONLibrary
Library           OperatingSystem    
Library           REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}    ssl_verify=false
@@ -83,6 +84,7 @@ Get VNF Package Artifact with Range Request and NFVO supporting Range Requests
    ...    Post-Conditions: none
    Get Artifact in VNF Package with Range Request
    Check HTTP Response Status Code Is    206
    Check HTTP Response Header Contains-Type is Present and is application/zip
    Check HTTP Response Header Content-Range Is Present and Matches the requested range
    Check HTTP Response Header Content-Length Is Present and Matches the requested range length
    
@@ -238,7 +240,7 @@ Get VNF Package Artifact with not permitted authorization scope
    Check HTTP Response Status Code Is    401

Get VNF Package Artifact with invalid identifer
    [Documentation]    Test ID: 5.3.5.13.1
    [Documentation]    Test ID: 5.3.5.13.19
    ...    Test title: Get VNF Package Artifact with invalid identifer
    ...    Test objective: The objective is to test that the GET VNF Package Artifact request fails when using an invalid identifier
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
+5 −0
Original line number Diff line number Diff line
@@ -681,6 +681,11 @@ GET Individual VNF Package Content with explicit Range Request
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Check HTTP Response Header Contains-Type is Present and is application/zip
    Should Contain    ${response['headers']}    Content-Type
    Log    Header is present
    Should Be Equal As Strings    ${response['headers']['Content-Type']}    ${ACCEPT_ZIP}
    Log    Header Content-Range is present

Check HTTP Response Header Content-Range Is Present and Matches the requested range
    Log    Check Content-Range HTTP Header