Skip to content
Snippets Groups Projects
Commit 2d8dc96e authored by Hammad Zafar's avatar Hammad Zafar Committed by Giacomo Bernini
Browse files

fixed Content-Length and Content-Range checks

parent 4269e6aa
No related branches found
No related tags found
2 merge requests!199Merge "3.3.1 dev" into "release 3" master,!161SOL003 VNF Snapshot Package - Implementation of deltas between v3.3.1 and v2.7.1
This commit is part of merge request !161. Comments created here will be created in the context of that merge request.
......@@ -40,6 +40,7 @@ GET Individual VNF Snapshot Package Artifact - Partial Content
Check HTTP Response Status Code Is 206
Check HTTP Content-Type Header Is Set For Package Artifact
Check HTTP Content-Range Header Is Set
Check HTTP Content-Length Header Is Set
GET Individual VNF Snapshot Package Artifact - Range Request Not Supported
[Documentation] Test ID: 7.3.8.5.4
......
......@@ -40,6 +40,7 @@ GET VNF Snapshot Package Content - Partial Content
Check HTTP Response Status Code Is 206
Check HTTP Content-Type Header Is Set For Package Content
Check HTTP Content-Range Header Is Set
Check HTTP Content-Length Header Is Set
GET VNF Snapshot Package Content - Range Request Not Supported
[Documentation] Test ID: 7.3.8.4.4
......
......@@ -313,9 +313,15 @@ Check HTTP Content-Type Header Is Set For Package Content
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-Length 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
PUT VNF Snapshot Package Content
log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT_ZIP}"}
......
......@@ -77,7 +77,7 @@ ${artifactPath} artifactPath
${CONTENT_TYPE_OCTET} application/octet-stream
${NFVO_RANGE_OK} 1 # If 1 means that Range is supported by the NFVO
${range} bytes=0-1023
${full_size} 2000 # Size of the requested artifact to be downloaded via partial downloads
${full_length} 2000 # Size of the requested artifact to be downloaded via partial downloads
${erroneousRange} bytes=10000000-1000000000 # Requesting a out of range number of bytes
${vnfPackageOctetStreamId} octetStreamPkgId
${vnfdOctetStreamId} octetStreamVnfdId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment