Commit 3d35e2a8 authored by Elian Kraja's avatar Elian Kraja
Browse files

Fix issue #165

parent 96e54fe6
......@@ -292,7 +292,7 @@ Check HTTP Response Header Content-Range Is Present and Matches the requested ra
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
Log Check Content-Length HTTP Header
Should Contain ${response['headers']} Content-Length
Should Be Equal As Integers ${response['headers']['Content-Length']} ${full_length}
Should Be Equal As Integers ${response['headers']['Content-Length']} ${length}
Log Header Content-Length is present
GET Individual VNF Package Content with invalid Range Request
......
......@@ -75,6 +75,7 @@ ${CONTENT_TYPE_OCTET} application/octet-stream
${NFVO_RANGE_OK} 1 # If 1 means that Range is supported by the NFVO
${range} 0-1023
${full_length} 2000 # Size of the requested artifact to be downloaded via partial downloads
${length} 1024 # Size of the requested range
${erroneousRange} 10000000-1000000000 # Requesting a out of range number of bytes
${vnfPackageOctetStreamId} octetStreamPkgId
${vnfdOctetStreamId} octetStreamVnfdId
......
......@@ -477,7 +477,7 @@ Check HTTP Response Header Content-Range Is Present and Matches the requested ra
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
Log Check Content-Length HTTP Header
Should Contain ${response['headers']} Content-Length
Should Be Equal As Integers ${response['headers']['Content-Length']} ${full_length}
Should Be Equal As Integers ${response['headers']['Content-Length']} ${length}
Log Header Content-Length is present
GET Individual VNF Package Content with invalid Range Request
......
......@@ -68,6 +68,7 @@ ${CONTENT_TYPE_OCTET} application/octet-stream
${NFVO_RANGE_OK} 1 # If 1 means that Range is supported by the NFVO
${range} 0-1023
${full_length} 2000 # Size of the requested artifact to be downloaded via partial downloads
${length} 1024 # Size of the requested range
${erroneousRange} 10000000-1000000000 # Requesting a out of range number of bytes
${vnfPackageOctetStreamId} octetStreamPkgId
${vnfPkgId} 788106a2-d692-44f3-a86d-384f0ce35e42
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment