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
f07f7ba7
Commit
f07f7ba7
authored
Feb 11, 2021
by
Giacomo Bernini
Browse files
fixed pnfd file usage
parent
9b8ec7fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
SOL005/NSDManagement-API/NSDManagementKeywords.robot
View file @
f07f7ba7
...
...
@@ -710,9 +710,10 @@ Send PUT Request to upload PNFD Content as zip file
Send PUT Request to upload PNFD Content with conflict due to onboarding state
Log
Trying to perform a PUT. This method upload the content of a PNFD
Set Headers
{"Accept": "
${ACCEPT_ZIP}
"}
Set Headers
{"Content-Type": "application/zip"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization": "
${AUTHORIZATION}
"}
${body}
=
Get Binary File
${content
File
Pnfd}
REST.PUT
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/pnf_descriptors/
${creating
Ns
dInfoId}
/pnfd_content
${body}
${body}
=
Get Binary File
${content
Zip
Pnfd}
REST.PUT
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/pnf_descriptors/
${creating
Pnf
dInfoId}
/pnfd_content
data=
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
SOL005/NSDManagement-API/environment/variables.txt
View file @
f07f7ba7
...
...
@@ -65,7 +65,7 @@ ${range} bytes=0-1023
${erroneousRange} bytes=100000-1000000 # Requesting a out of range number of bytes
${onboardingStateNsdInfoId} b992a851-08b1-45a8-9282-a5f7a7df04a6
${contentZipNsd} files/nsd.zip
${contentFileNsd} files/nsd.
zip
${contentFileNsd} files/nsd.
yml
${creatingNsdInfoId} 71241932-994a-46e2-ad6c-1740674dda44
${BAD_AUTHORIZATION} Bear sometoken
${original_etag} 1234
...
...
@@ -79,6 +79,7 @@ ${SEPERATOR} =
${pnfdInfoId} 40853bda-8a8f-4f63-9130-cef439f65348
${creatingPnfdInfoId} 71241932-994a-46e2-ad6c-1740674dda44
${erroneous_pnfdInfoId} erroneous_pnfdInfoId
${enabledPnfdInfoId} 40853bda-8a8f-4f63-9130-cef439f65348
${erroneous_pnfdId} erroneousPnfdId
...
...
SOL005/NSDManagement-API/files/nsd.yml
deleted
100644 → 0
View file @
9b8ec7fe
nsd
:
-id
:
nsd_id
-name
:
nsd_name
\ No newline at end of file
SOL005/NSDManagement-API/files/pnfd.yml
deleted
100644 → 0
View file @
9b8ec7fe
pnfd
:
-id
:
pnfd_id
-name
:
pnfd_name
\ No newline at end of file
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