Commit 02d14ee1 authored by Elian Kraja's avatar Elian Kraja
Browse files

Tentative fix on issue #157 and fix on issue #158

parent 2aad4616
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -280,13 +280,13 @@ GET Individual VNF Package Content with explicit 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}/${full_size}
    Should Be Equal As Strings    ${response['headers']['Content-Range']}    ${range}/${full_length}
    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
    Log    Check Content-Length HTTP Header
    Log    Check Content-Length HTTP Header
    Should Contain    ${response['headers']}    Content-Length
    Should Contain    ${response['headers']}    Content-Length
    Should Be Equal As Integers    ${response['headers']['Content-Length']}    ${length}
    Should Be Equal As Integers    ${response['headers']['Content-Length']}    ${full_length}
    Log    Header Content-Length is present
    Log    Header Content-Length is present


GET Individual VNF Package Content with invalid Range Request
GET Individual VNF Package Content with invalid Range Request
+3 −3
Original line number Original line Diff line number Diff line
@@ -2,9 +2,9 @@
${artifactPath}    artifactPath
${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        # Full size of the artifact to be downloaded using partial download
${full_length}        2000        # Full size of the artifact to be downloaded using partial download
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes
${erroneousRange}    bytes 10000000-1000000000    # Requesting a out of range number of bytes
${erroneousVnfPkgId}    erroneousPkgId
${erroneousVnfPkgId}    erroneousPkgId
${vnfPackageOctetStreamId}    octetStreamPkgId
${vnfPackageOctetStreamId}    octetStreamPkgId
${vnfdOctetStreamId}    octetStreamVnfdId
${vnfdOctetStreamId}    octetStreamVnfdId
+0 −3
Original line number Original line Diff line number Diff line
*** Variables ***
*** Variables ***
${ACCEPT_ZIP}     application/zip
${ACCEPT_ZIP}     application/zip
${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
${length}          1024
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes
${erroneousVnfPkgId}    erroneousPkgId
${erroneousVnfPkgId}    erroneousPkgId
${CONTENT_TYPE_ZIP}    application/zip
${CONTENT_TYPE_ZIP}    application/zip
+2 −2
Original line number Original line Diff line number Diff line
@@ -459,13 +459,13 @@ GET Individual VNF Package Content with explicit 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}/${full_size}
    Should Be Equal As Strings    ${response['headers']['Content-Range']}    ${range}/${full_length}
    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
    Log    Check Content-Length HTTP Header
    Log    Check Content-Length HTTP Header
    Should Contain    ${response['headers']}    Content-Length
    Should Contain    ${response['headers']}    Content-Length
    Should Be Equal As Integers    ${response['headers']['Content-Length']}    ${length}
    Should Be Equal As Integers    ${response['headers']['Content-Length']}    ${full_length}
    Log    Header Content-Length is present
    Log    Header Content-Length is present


GET Individual VNF Package Content with invalid Range Request
GET Individual VNF Package Content with invalid Range Request
+3 −3
Original line number Original line Diff line number Diff line
@@ -2,8 +2,8 @@
${artifactPath}    artifactPath
${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        # Full size of the artifact to be downloaded using partial download
${full_length}        2000        # Full size of the artifact to be downloaded using partial download
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes
${erroneousRange}    bytes 10000000-1000000000    # Requesting a out of range number of bytes
${erroneousVnfPkgId}    erroneousPkgId
${erroneousVnfPkgId}    erroneousPkgId
${vnfPackageOctetStreamId}    octetStreamPkgId
${vnfPackageOctetStreamId}    octetStreamPkgId
 No newline at end of file
Loading