Commit c73a601a authored by Elian Kraja's avatar Elian Kraja
Browse files

Fix issue #151

parent 17b5d056
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -269,7 +269,8 @@ GET Individual VNF Package Content with Range Request
    Set Suite Variable    ${response}    ${output}
    
GET Individual VNF Package Content with explicit Range Request
    Log    Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
    Log    Trying to get a VNF Package Content using RANGE using an NFVO that cannot handle it
    Pass Execution If    ${NFVO_RANGE_OK} == 1    Skipping this test as NFVO is able to handle partial Requests.
    Set Headers    {"Accept": "${ACCEPT_ZIP}"}
    Set Headers    {"Range": "bytes=${range}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
@@ -581,7 +582,8 @@ GET Individual VNF Package Artifact with Range Request
    Set Suite Variable    ${response}    ${output}
    
GET Individual VNF Package Artifact with explicit Range Request
    Log    Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
    Log    Trying to get an Artifact using RANGE Header and using an NFVO that cannot handle it
    Pass Execution If    ${NFVO_RANGE_OK} == 1    Skipping this test as NFVO is able to handle partial Requests.
    Set Headers    {"Range": "bytes=${range}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    GET    ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
+5 −3
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ Check HTTP Response Body VnfPkgsInfo Matches the requested all_fields selector
    Validate Json    additionalArtifacts.schema.json    ${additional_artifacts[0]}
    Log    Validation for additionalArtifacts schema OK
    ${links}=    Get Value From Json    ${response['body']}    $.._links
    Validate Json    links.schema.json    ${links}
    Validate Json    link.schema.json    ${links}
    Log    Validation for _links schema OK

GET VNF Packages with exclude_default attribute selector
@@ -448,7 +448,8 @@ GET Individual VNF Package Content with Range Request
    Set Suite Variable    ${response}    ${output}
    
GET Individual VNF Package Content with explicit Range Request
    Log    Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
    Log    Trying to get a VNF Package Content using RANGE using an NFVO that cannnot handle it
    Pass Execution If    ${NFVO_RANGE_OK} == 1    Skipping this test as NFVO is able to handle partial Requests.
    Set Headers    {"Accept": "${ACCEPT_ZIP}"}
    Set Headers    {"Range": "bytes=${range}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
@@ -584,7 +585,8 @@ GET Individual VNF Package Artifact with Range Request
    Set Suite Variable    ${response}    ${output}
    
GET Individual VNF Package Artifact with explicit Range Request
    Log    Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
    Log    Trying to get an Artifact using RANGE Header and using an NFVO that cannot handle it
    Pass Execution If    ${NFVO_RANGE_OK} == 1    Skipping this test as NFVO is able to handle partial Requests.
    Set Headers    {"Range": "bytes=${range}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    GET    ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}