Commit 547c77e4 authored by Elian Kraja's avatar Elian Kraja Committed by Giacomo Bernini
Browse files

Fixing issue #153

parent 9db9c026
......@@ -279,6 +279,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}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -288,6 +289,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}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -311,6 +313,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}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -585,6 +588,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}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -595,6 +599,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}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1058,6 +1063,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}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1068,6 +1074,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}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/package_content
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1107,6 +1114,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}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1117,6 +1125,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}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1410,6 +1419,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}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1443,6 +1453,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}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1525,6 +1536,7 @@ Get Artifact in OnBoarded VNF Package with Range Request
Set Headers {"Range": "bytes=${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1558,6 +1570,7 @@ GET 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}/${apiMajorVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -1666,4 +1679,4 @@ Match the VNF subscription Response Attributes with Descriptors
Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts'][0]['vnfProductName']} ${Product_Name}
Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts']['versions'][0]['vnfSoftwareVersion']} ${Software_Version}
Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts']['versions'][0]['vnfdVersion']} ${Descriptor_Version}
\ No newline at end of file
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