Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
430af9a3
Commit
430af9a3
authored
Feb 21, 2021
by
Elian Kraja
Browse files
Fix issue
#158
parent
1977524f
Changes
4
Hide whitespace changes
Inline
Side-by-side
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
430af9a3
...
@@ -267,7 +267,7 @@ GET Individual VNF Package Content with Range Request
...
@@ -267,7 +267,7 @@ GET Individual VNF Package Content with Range Request
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -276,7 +276,7 @@ GET Individual VNF Package Content with Range Request
...
@@ -276,7 +276,7 @@ GET Individual VNF Package Content with Range Request
GET Individual VNF Package Content with explicit Range Request
GET Individual VNF Package Content with explicit Range Request
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -286,7 +286,7 @@ GET Individual VNF Package Content with explicit Range Request
...
@@ -286,7 +286,7 @@ GET Individual VNF Package Content with explicit Range Request
Check HTTP Response Header Content-Range Is Present and Matches the requested range
Check HTTP Response Header Content-Range Is Present and Matches the requested range
Log
Check Content-Range HTTP Header
Log
Check Content-Range HTTP Header
Should Contain
${response['headers']}
Content-Range
Should Contain
${response['headers']}
Content-Range
Should Be Equal As Strings
${response['headers']['Content-Range']}
${range}
/
${full_length}
Should Be Equal As Strings
${response['headers']['Content-Range']}
bytes
${range}
/
${full_length}
Log
Header Content-Range is present
Log
Header Content-Range is present
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
...
@@ -299,7 +299,7 @@ GET Individual VNF Package Content with invalid Range Request
...
@@ -299,7 +299,7 @@ GET Individual VNF Package Content with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -560,7 +560,7 @@ GET Individual VNF Package Artifact in octet stream format
...
@@ -560,7 +560,7 @@ GET Individual VNF Package Artifact in octet stream format
GET Individual VNF Package Artifact with Range Request
GET Individual VNF Package Artifact with Range Request
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -570,7 +570,7 @@ GET Individual VNF Package Artifact with invalid Range Request
...
@@ -570,7 +570,7 @@ GET Individual VNF Package Artifact with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1016,7 +1016,7 @@ GET Individual OnBoarded VNF Package Content with Range Request
...
@@ -1016,7 +1016,7 @@ GET Individual OnBoarded VNF Package Content with Range Request
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/package_content
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1026,7 +1026,7 @@ GET Individual OnBoarded VNF Package Content with invalid Range Request
...
@@ -1026,7 +1026,7 @@ GET Individual OnBoarded VNF Package Content with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/package_content
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1065,7 +1065,7 @@ GET Individual OnBoarded VNF Package Artifact in octet stream format
...
@@ -1065,7 +1065,7 @@ GET Individual OnBoarded VNF Package Artifact in octet stream format
GET Individual OnBoarded VNF Package Artifact with Range Request
GET Individual OnBoarded VNF Package Artifact with Range Request
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/artifacts/
${artifactPath}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/artifacts/
${artifactPath}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1075,7 +1075,7 @@ GET Individual OnBoarded VNF Package Artifact with invalid Range Request
...
@@ -1075,7 +1075,7 @@ GET Individual OnBoarded VNF Package Artifact with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/artifacts/
${artifactPath}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vndId}
/artifacts/
${artifactPath}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1351,7 +1351,7 @@ Get Artifact in VNF Package with include_signatures parameter
...
@@ -1351,7 +1351,7 @@ Get Artifact in VNF Package with include_signatures parameter
Get Artifact in VNF Package with Range Request
Get Artifact in VNF Package with Range Request
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1384,7 +1384,7 @@ GET VNF Package Artifact with invalid Range Request
...
@@ -1384,7 +1384,7 @@ GET VNF Package Artifact with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1466,7 +1466,7 @@ Get Artifact in OnBoarded VNF Package with include_signatures parameter
...
@@ -1466,7 +1466,7 @@ Get Artifact in OnBoarded VNF Package with include_signatures parameter
Get Artifact in OnBoarded VNF Package with Range Request
Get Artifact in OnBoarded VNF Package with Range Request
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vnfPackageId}
/artifacts
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vnfPackageId}
/artifacts
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1499,7 +1499,7 @@ GET OnBoarded VNF Package Artifact with invalid Range Request
...
@@ -1499,7 +1499,7 @@ GET OnBoarded VNF Package Artifact with invalid Range Request
Log
Trying to get a range of bytes of the limit of the OnBoarded VNF Package
Log
Trying to get a range of bytes of the limit of the OnBoarded VNF Package
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vnfPackageId}
/artifacts
GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/onboarded_vnf_packages/
${vnfPackageId}
/artifacts
${output}
=
Output
response
${output}
=
Output
response
...
...
SOL003/VNFPackageManagement-API/environment/variables.txt
View file @
430af9a3
...
@@ -73,9 +73,9 @@ ${vndIdZipVnfd} f5b220d4-6177-4ebb-a554-a43311e16075
...
@@ -73,9 +73,9 @@ ${vndIdZipVnfd} f5b220d4-6177-4ebb-a554-a43311e16075
${artifactPath} artifactPath
${artifactPath} artifactPath
${CONTENT_TYPE_OCTET} application/octet-stream
${CONTENT_TYPE_OCTET} application/octet-stream
${NFVO_RANGE_OK} 1 # If 1 means that Range is supported by the NFVO
${NFVO_RANGE_OK} 1 # If 1 means that Range is supported by the NFVO
${range}
bytes
0-1023
${range} 0-1023
${full_length} 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
${erroneousRange} 10000000-1000000000 # Requesting a out of range number of bytes
${vnfPackageOctetStreamId} octetStreamPkgId
${vnfPackageOctetStreamId} octetStreamPkgId
${vnfdOctetStreamId} octetStreamVnfdId
${vnfdOctetStreamId} octetStreamVnfdId
${vndEncryptedArtifactID} encryptedId
${vndEncryptedArtifactID} encryptedId
...
...
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
430af9a3
...
@@ -452,7 +452,7 @@ GET Individual VNF Package Content with Range Request
...
@@ -452,7 +452,7 @@ GET Individual VNF Package Content with Range Request
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -461,7 +461,7 @@ GET Individual VNF Package Content with Range Request
...
@@ -461,7 +461,7 @@ GET Individual VNF Package Content with Range Request
GET Individual VNF Package Content with explicit Range Request
GET Individual VNF Package Content with explicit Range Request
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Log
Trying to get a VNF Package Content using RANGE using an NFVO that can handle it
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -471,7 +471,7 @@ GET Individual VNF Package Content with explicit Range Request
...
@@ -471,7 +471,7 @@ GET Individual VNF Package Content with explicit Range Request
Check HTTP Response Header Content-Range Is Present and Matches the requested range
Check HTTP Response Header Content-Range Is Present and Matches the requested range
Log
Check Content-Range HTTP Header
Log
Check Content-Range HTTP Header
Should Contain
${response['headers']}
Content-Range
Should Contain
${response['headers']}
Content-Range
Should Be Equal As Strings
${response['headers']['Content-Range']}
${range}
/
${full_length}
Should Be Equal As Strings
${response['headers']['Content-Range']}
bytes
${range}
/
${full_length}
Log
Header Content-Range is present
Log
Header Content-Range is present
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
Check HTTP Response Header Content-Length Is Present and Matches the requested range length
...
@@ -484,7 +484,7 @@ GET Individual VNF Package Content with invalid Range Request
...
@@ -484,7 +484,7 @@ GET Individual VNF Package Content with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/package_content
${output}
=
Output
response
${output}
=
Output
response
...
@@ -581,7 +581,7 @@ GET Individual VNF Package Artifact in octet stream format
...
@@ -581,7 +581,7 @@ GET Individual VNF Package Artifact in octet stream format
GET Individual VNF Package Artifact with Range Request
GET Individual VNF Package Artifact with Range Request
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -591,7 +591,7 @@ GET Individual VNF Package Artifact with invalid Range Request
...
@@ -591,7 +591,7 @@ GET Individual VNF Package Artifact with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts/
${artifactPath}
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1119,7 +1119,7 @@ Get Artifact in VNF Package with include_signatures parameter
...
@@ -1119,7 +1119,7 @@ Get Artifact in VNF Package with include_signatures parameter
Get Artifact in VNF Package with Range Request
Get Artifact in VNF Package with Range Request
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Log
Trying to get an Artifact using RANGE Header and using an NFVO that can handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Range": "
${range}
"}
Set Headers
{"Range": "
bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
${output}
=
Output
response
${output}
=
Output
response
...
@@ -1152,7 +1152,7 @@ GET VNF Package Artifact with invalid Range Request
...
@@ -1152,7 +1152,7 @@ GET VNF Package Artifact with invalid Range Request
Log
Trying to get a range of bytes of the limit of the VNF Package
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.
Pass Execution If
${NFVO_RANGE_OK}
=
= 0
Skipping this test as NFVO is not able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "
${erroneousRange}
"}
Set Headers
{"Range": "
bytes=
${erroneousRange}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
REST.GET
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${vnfPackageId}
/artifacts
${output}
=
Output
response
${output}
=
Output
response
...
...
SOL005/VNFPackageManagement-API/environment/variables.txt
View file @
430af9a3
...
@@ -66,9 +66,9 @@ ${onboardingStateVnfPkgId} 788106a2-d692-44f3-a86d-384f0ce35e42 # The VNF
...
@@ -66,9 +66,9 @@ ${onboardingStateVnfPkgId} 788106a2-d692-44f3-a86d-384f0ce35e42 # The VNF
${artifactPath} artifactPath
${artifactPath} artifactPath
${CONTENT_TYPE_OCTET} application/octet-stream
${CONTENT_TYPE_OCTET} application/octet-stream
${NFVO_RANGE_OK} 1 # If 1 means that Range is supported by the NFVO
${NFVO_RANGE_OK} 1 # If 1 means that Range is supported by the NFVO
${range}
bytes
0-1023
${range} 0-1023
${full_length} 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
${erroneousRange} 10000000-1000000000 # Requesting a out of range number of bytes
${vnfPackageOctetStreamId} octetStreamPkgId
${vnfPackageOctetStreamId} octetStreamPkgId
${vnfPkgId} 788106a2-d692-44f3-a86d-384f0ce35e42
${vnfPkgId} 788106a2-d692-44f3-a86d-384f0ce35e42
${creatingVnfPackageId} d246ccdd-71aa-402f-b256-6a80ee54be3d
${creatingVnfPackageId} d246ccdd-71aa-402f-b256-6a80ee54be3d
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment