Commit 14f75f97 authored by Hammad Zafar's avatar Hammad Zafar Committed by Giacomo Bernini
Browse files

fixed Content-Range and Content-Length checks

parent 1264460d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ GET VNF State Snapshot - Range Request Not Supported
    GET VNF State Snapshot - Range Request
    Check HTTP Response Status Code Is    200
    Check HTTP Content-Type Header Is Set
    Check HTTP Content-Length Header Is Set
    
GET VNF State Snapshot - Range Not Satisfiable
    [Documentation]    Test ID: 7.3.1.42.5
+8 −2
Original line number Diff line number Diff line
@@ -2064,5 +2064,11 @@ Check HTTP Content-Type Header Is Set
Check HTTP Content-Range Header Is Set
    Log    Check Content-Range HTTP Header
    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_length}
    Log    Header Content-Range is present
    
Check HTTP Content-Length Header Is Set
    Log    Check Content-Range HTTP Header
    Should Contain    ${response['headers']}    Content-Length
    Should Be Equal As Strings    ${response['headers']['Content-Length']}    ${full_length}
    Log    Header Content-Length is present
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ ${CONTENT_TYPE_OCTET} application/octet-stream
${VNFM_RANGE_OK}    1    # If 1 means that Range is supported by the VNFM
${range}          bytes=0-1023
${erroneousRange}    bytes=10000000-1000000000    # Requesting a out of range number of bytes

${full_length}    2000    #Full size of the content file to be transmitted using partial downloads

${instantiatedVnfInstanceId}       6fc3539c-e602-4afa-8e13-962fb5a7d81f
${notInstantiatedVnfInstanceId}       6fc3539c-e602-4afa-8e13-962fb5a7d81f