Commit 96b16cc6 authored by Elian Kraja's avatar Elian Kraja
Browse files

Fixing issue #153

parent 31394629
......@@ -265,6 +265,7 @@ GET Individual VNF Package Content with Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -275,6 +276,7 @@ GET Individual VNF Package Content with explicit Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -297,6 +299,7 @@ GET Individual VNF Package Content with invalid Range Request
Set Headers {"Range": "bytes=${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -580,6 +583,7 @@ GET Individual VNF Package Artifact with Range Request
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}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -589,6 +593,7 @@ GET Individual VNF Package Artifact with explicit Range Request
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}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -599,6 +604,7 @@ GET Individual VNF Package Artifact with invalid Range Request
Set Headers {"Range": "bytes=${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1076,6 +1082,7 @@ GET Individual OnBoarded VNF Package Content with Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1086,6 +1093,7 @@ GET Individual OnBoarded VNF Package Content with invalid Range Request
Set Headers {"Range": "bytes=${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1125,6 +1133,7 @@ GET Individual OnBoarded VNF Package Artifact with Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1135,6 +1144,7 @@ GET Individual OnBoarded VNF Package Artifact with invalid Range Request
Set Headers {"Range": "bytes=${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......
......@@ -389,6 +389,7 @@ GET NSD Content with Range Request
Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -399,6 +400,7 @@ GET NSD Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......
......@@ -446,6 +446,7 @@ GET Individual VNF Package Content with Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -456,6 +457,7 @@ GET Individual VNF Package Content with explicit Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -478,6 +480,7 @@ GET Individual VNF Package Content with invalid Range Request
Set Headers {"Range": "bytes=${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -583,6 +586,7 @@ GET Individual VNF Package Artifact with Range Request
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}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -592,6 +596,7 @@ GET Individual VNF Package Artifact with explicit Range Request
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}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -602,6 +607,7 @@ GET Individual VNF Package Artifact with invalid Range Request
Set Headers {"Range": "bytes=${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......
......@@ -3,8 +3,9 @@
# pip -r requirements.txt
#RESTinstance==1.0.0rc4
git+https://github.com/etsi-cti-admin/RESTinstance
robotframework==3.1
RESTinstance==1.0.0rc4
robotframework-dependencylibrary==1.0.0.post1
robotframework-jsonlibrary==0.3
robotframework-jsonschemalibrary==1.0
......
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