diff --git a/SOL003/VNFSnapshotPackageManagement-API/IndividualVNFSnapshotPackageArtifact.robot b/SOL003/VNFSnapshotPackageManagement-API/IndividualVNFSnapshotPackageArtifact.robot index 44da2f1e1a5b0e65bbf5077e7424370a31146a98..e850c72844fb161ef8c69f981fd8d887b590104b 100644 --- a/SOL003/VNFSnapshotPackageManagement-API/IndividualVNFSnapshotPackageArtifact.robot +++ b/SOL003/VNFSnapshotPackageManagement-API/IndividualVNFSnapshotPackageArtifact.robot @@ -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 diff --git a/SOL003/VNFSnapshotPackageManagement-API/VNFSnapshotPackageContent.robot b/SOL003/VNFSnapshotPackageManagement-API/VNFSnapshotPackageContent.robot index 9518e4bbf426f0d54695cbbf5fcd06e6d9f7b622..458d08b71fc5f97eee7423f3806a87dfbd1f35d7 100644 --- a/SOL003/VNFSnapshotPackageManagement-API/VNFSnapshotPackageContent.robot +++ b/SOL003/VNFSnapshotPackageManagement-API/VNFSnapshotPackageContent.robot @@ -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 diff --git a/SOL003/VNFSnapshotPackageManagement-API/VnfSnapshotPackageManagementKeywords.robot b/SOL003/VNFSnapshotPackageManagement-API/VnfSnapshotPackageManagementKeywords.robot index 9a74ba0f650f7e4f3a5422088595e88da1a953c5..0a68e14515d976ceb004bc9d093f173eb7e882bf 100644 --- a/SOL003/VNFSnapshotPackageManagement-API/VnfSnapshotPackageManagementKeywords.robot +++ b/SOL003/VNFSnapshotPackageManagement-API/VnfSnapshotPackageManagementKeywords.robot @@ -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}"} diff --git a/SOL003/VNFSnapshotPackageManagement-API/environment/variables.txt b/SOL003/VNFSnapshotPackageManagement-API/environment/variables.txt index 4ccd69c8a058b1f88aa9b870054dfe1663cdcf41..c7b18c06014d8f98e43589d383eab0c459b2d5fb 100644 --- a/SOL003/VNFSnapshotPackageManagement-API/environment/variables.txt +++ b/SOL003/VNFSnapshotPackageManagement-API/environment/variables.txt @@ -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