Commit 9db9c026 authored by Elian Kraja's avatar Elian Kraja Committed by Giacomo Bernini
Browse files

../SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot

parent aeb7d6df
......@@ -359,6 +359,7 @@ GET NSD Content with Range Request
Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -369,6 +370,7 @@ GET NSD Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -671,6 +673,7 @@ Get PNFD Content with Range Request
Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -680,6 +683,7 @@ Get PNFD Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......
......@@ -484,6 +484,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}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -493,6 +494,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}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -516,6 +518,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}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -649,6 +652,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}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -659,6 +663,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}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1196,6 +1201,7 @@ Get Artifact in VNF Package with Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1229,6 +1235,7 @@ GET VNF Package Artifact with invalid Range Request
Set Headers {"Range": "bytes=${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......
## To install the libraries, use:
# pip -r requirements.txt
git+https://github.com/etsi-cti-admin/RESTinstance
robotframework==3.1
RESTinstance==1.0.0rc4
#RESTinstance==1.0.0rc4
robotframework-dependencylibrary==1.0.0.post1
robotframework-jsonlibrary==0.3
robotframework-jsonschemalibrary==1.0
......
Markdown is supported
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