Commit 17b5d056 authored by Elian Kraja's avatar Elian Kraja
Browse files

Fixing issue #151 for VNFPackageArtifacts

parent 266579be
......@@ -55,7 +55,7 @@ GET Individual VNF Package Artifact with Range Request and NFVO not supporting R
... Config ID: Config_prod_NFVO
... Applicability: The NFVO does not support range requests to return single range of bytes from the VNF package artifact
... Post-Conditions: none
GET Individual VNF Package Artifact with Range Request
GET Individual VNF Package Artifact with explicit Range Request
Check HTTP Response Status Code Is 200
GET Individual VNF Package Artifact with invalid Range Request
......
......@@ -580,6 +580,14 @@ GET Individual VNF Package Artifact with Range Request
${output}= Output response
Set Suite Variable ${response} ${output}
GET Individual VNF Package Artifact with explicit Range Request
Log Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
${output}= Output response
Set Suite Variable ${response} ${output}
GET Individual VNF Package Artifact with invalid Range Request
Log Trying to get a range of bytes of the limit of the VNF Package
Pass Execution If ${NFVO_RANGE_OK} == 0 Skipping this test as NFVO is not able to handle partial Requests.
......
......@@ -55,7 +55,7 @@ GET Individual VNF Package Artifact with Range Request and NFVO not supporting R
... Config ID: Config_prod_NFVO
... Applicability: The NFVO does not support range requests to return single range of bytes from the VNF package artifact
... Post-Conditions: none
GET Individual VNF Package Artifact with Range Request
GET Individual VNF Package Artifact with explicit Range Request
Check HTTP Response Status Code Is 200
GET Individual VNF Package Artifact with invalid Range Request
......
......@@ -583,6 +583,14 @@ GET Individual VNF Package Artifact with Range Request
${output}= Output response
Set Suite Variable ${response} ${output}
GET Individual VNF Package Artifact with explicit Range Request
Log Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
${output}= Output response
Set Suite Variable ${response} ${output}
GET Individual VNF Package Artifact with invalid Range Request
Log Trying to get a range of bytes of the limit of the VNF Package
Pass Execution If ${NFVO_RANGE_OK} == 0 Skipping this test as NFVO is not able to handle partial Requests.
......
Supports Markdown
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