Commit 57473add authored by Elian Kraja's avatar Elian Kraja
Browse files

Fix issue #145

parent 7cd1d95b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -275,7 +275,7 @@ GET Individual VNF Package Content with Range Request
Check HTTP Response Header Content-Range Is Present and Matches the requested range
Check HTTP Response Header Content-Range Is Present and Matches the requested range
    Log    Check Content-Range HTTP Header
    Log    Check Content-Range HTTP Header
    Should Contain    ${response['headers']}    Content-Range
    Should Contain    ${response['headers']}    Content-Range
    Should Be Equal As Strings    ${response['headers']['Content-Range']}    ${range}
    Should Be Equal As Strings    ${response['headers']['Content-Range']}    ${range}/${full_size}
    Log    Header Content-Range is present
    Log    Header Content-Range is present
    
    
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
+1 −0
Original line number Original line Diff line number Diff line
@@ -73,6 +73,7 @@ ${artifactPath} artifactPath
${CONTENT_TYPE_OCTET}    application/octet-stream
${CONTENT_TYPE_OCTET}    application/octet-stream
${NFVO_RANGE_OK}    1    # If 1 means that Range is supported by the NFVO
${NFVO_RANGE_OK}    1    # If 1 means that Range is supported by the NFVO
${range}          bytes=0-1023
${range}          bytes=0-1023
${full_size}        2000            # Size of the requested artifact to be downloaded via partial downloads
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes
${vnfPackageOctetStreamId}    octetStreamPkgId
${vnfPackageOctetStreamId}    octetStreamPkgId
${vnfdOctetStreamId}    octetStreamVnfdId
${vnfdOctetStreamId}    octetStreamVnfdId
+1 −1
Original line number Original line Diff line number Diff line
@@ -413,7 +413,7 @@ GET Individual VNF Package Content with Range Request
Check HTTP Response Header Content-Range Is Present and Matches the requested range
Check HTTP Response Header Content-Range Is Present and Matches the requested range
    Log    Check Content-Range HTTP Header
    Log    Check Content-Range HTTP Header
    Should Contain    ${response['headers']}    Content-Range
    Should Contain    ${response['headers']}    Content-Range
    Should Be Equal As Strings    ${response['headers']['Content-Range']}    ${range}
    Should Be Equal As Strings    ${response['headers']['Content-Range']}    ${range}/${full_size}
    Log    Header Content-Range is present
    Log    Header Content-Range is present
    
    
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
+1 −0
Original line number Original line Diff line number Diff line
@@ -64,6 +64,7 @@ ${artifactPath} artifactPath
${CONTENT_TYPE_OCTET}    application/octet-stream
${CONTENT_TYPE_OCTET}    application/octet-stream
${NFVO_RANGE_OK}    1    # If 1 means that Range is supported by the NFVO
${NFVO_RANGE_OK}    1    # If 1 means that Range is supported by the NFVO
${range}          bytes=0-1023
${range}          bytes=0-1023
${full_size}        2000            # Size of the requested artifact to be downloaded via partial downloads 
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes
${vnfPackageOctetStreamId}    octetStreamPkgId
${vnfPackageOctetStreamId}    octetStreamPkgId
${vnfPkgId}       788106a2-d692-44f3-a86d-384f0ce35e42
${vnfPkgId}       788106a2-d692-44f3-a86d-384f0ce35e42