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
c73a601a
Commit
c73a601a
authored
Mar 03, 2021
by
Elian Kraja
Browse files
Fix issue
#151
parent
17b5d056
Changes
2
Hide whitespace changes
Inline
Side-by-side
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
c73a601a
...
...
@@ -269,7 +269,8 @@ GET Individual VNF Package Content with Range Request
Set Suite Variable
${response}
${output}
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 cannot handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 1
Skipping this test as NFVO is able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
...
...
@@ -581,7 +582,8 @@ GET Individual VNF Package Artifact with Range Request
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
Log
Trying to get an Artifact using RANGE Header and using an NFVO that cannot handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 1
Skipping this test as NFVO is able to handle partial Requests.
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}
...
...
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
c73a601a
...
...
@@ -110,7 +110,7 @@ Check HTTP Response Body VnfPkgsInfo Matches the requested all_fields selector
Validate Json
additionalArtifacts.schema.json
${additional_artifacts[0]}
Log
Validation for additionalArtifacts schema OK
${links}
=
Get Value From Json
${response['body']}
$.._links
Validate Json
link
s
.schema.json
${links}
Validate Json
link.schema.json
${links}
Log
Validation for _links schema OK
GET VNF Packages with exclude_default attribute selector
...
...
@@ -448,7 +448,8 @@ GET Individual VNF Package Content with Range Request
Set Suite Variable
${response}
${output}
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 cannnot handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 1
Skipping this test as NFVO is able to handle partial Requests.
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Range": "bytes=
${range}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
...
...
@@ -584,7 +585,8 @@ GET Individual VNF Package Artifact with Range Request
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
Log
Trying to get an Artifact using RANGE Header and using an NFVO that cannot handle it
Pass Execution If
${NFVO_RANGE_OK}
=
= 1
Skipping this test as NFVO is able to handle partial Requests.
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}
...
...
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