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
21fc5ae0
Commit
21fc5ae0
authored
Feb 10, 2021
by
Giacomo Bernini
Browse files
fixed pnfd file usage
parent
cd760d55
Changes
2
Hide whitespace changes
Inline
Side-by-side
SOL005/NSDManagement-API/NSDManagementKeywords.robot
View file @
21fc5ae0
...
...
@@ -701,7 +701,7 @@ Get PNFD Content with conflict due to onboarding state
Send PUT Request to upload PNFD Content as zip file
Log
Trying to perform a PUT. This method upload the content of a PNFD
Create Session
pnfd
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
headers={"Accept": "
${ACCEPT_PLAIN}
", "Content-Type": "
${ACCEPT_PLAIN}
", "Authorization": "
${AUTHORIZATION}
"}
verify=False
${body}
=
Get Binary File
${content
Zip
File}
${body}
=
Get Binary File
${contentFile
Pnfd
}
${response}
=
Put Request
pnfd
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/pnf_descriptors/
${pnfdInfoId}
/pnfd_content
data=
${body}
Should Be Empty
${response.text}
${response}
=
Create Dictionary
status=
${response.status_code}
...
...
SOL005/NSDManagement-API/environment/variables.txt
View file @
21fc5ae0
...
...
@@ -65,7 +65,6 @@ ${range} bytes=0-1023
${erroneousRange} bytes=100000-1000000 # Requesting a out of range number of bytes
${onboardingStateNsdInfoId} b992a851-08b1-45a8-9282-a5f7a7df04a6
${contentZipFile} files/nsdContent.zip
${contentPlainFile} files/nsdContent.yaml
${creatingNsdInfoId} 71241932-994a-46e2-ad6c-1740674dda44
${BAD_AUTHORIZATION} Bear sometoken
${original_etag} 1234
...
...
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