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
cd760d55
Commit
cd760d55
authored
Feb 10, 2021
by
Giacomo Bernini
Browse files
aligned vnfPackage.zip filename in VNF Package Management
parent
a2f7d9f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
cd760d55
...
...
@@ -525,7 +525,7 @@ Send PUT Request for individual VNF Package Content
Send PUT Request to upload VNF Package Content
Log
Trying to perform a PUT. This method upload the content of a NSD
Create Session
nbi
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
headers={"Accept": "
${ACCEPT_ZIP}
", "Content-Type": "application/zip", "Authorization": "
${AUTHORIZATION}
"}
verify=False
${body}
=
Get Binary File
files/
hackfest_gateway_vnfd-1.0.tar.gz
${body}
=
Get Binary File
files/
vnfPackage.zip
${response}
=
Put Request
nbi
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${newVnfPackageId}
/package_content
data=
${body}
Should Be Empty
${response.text}
${response}
=
Create Dictionary
status=
${response.status_code}
...
...
@@ -542,7 +542,7 @@ Check Postcondition VNF Package Content is uploaded and available in the NFVO
Send PUT Request to upload VNF Package Content with conflict due to onboarding state
Log
Trying to perform a PUT. This method upload the content of a NSD
Create Session
nbi
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
headers={"Accept": "
${ACCEPT_ZIP}
", "Content-Type": "application/zip", "Authorization": "
${AUTHORIZATION}
"}
verify=False
${body}
=
Get Binary File
files/
hackfest_gateway_vnfd-1.0.tar.gz
${body}
=
Get Binary File
files/
vnfPackage.zip
${response}
=
Put Request
nbi
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_packages/
${creatingVnfPackageId}
/package_content
data=
${body}
Should Be Empty
${response.text}
${response}
=
Create Dictionary
status=
${response.status_code}
...
...
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