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
9b8ec7fe
Commit
9b8ec7fe
authored
Feb 11, 2021
by
Giacomo Bernini
Browse files
updated NSD, VNFD, PNFD files and zip management
parent
21fc5ae0
Changes
10
Hide whitespace changes
Inline
Side-by-side
SOL005/NSDManagement-API/NSDManagementKeywords.robot
View file @
9b8ec7fe
...
...
@@ -373,7 +373,7 @@ GET NSD Content with invalid Range Request
Send PUT Request to upload NSD Content as zip file in asynchronous mode
Create Session
nbi
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
headers={"Accept": "
${ACCEPT_JSON}
", "Content-Type": "application/zip", "Authorization": "
${AUTHORIZATION}
"}
verify=False
${body}
=
Get Binary File
${contentZip
File
}
${body}
=
Get Binary File
${contentZip
Nsd
}
${response}
=
Put Request
nbi
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/ns_descriptors/
${nsdInfoIdZip}
/nsd_content
data=
${body}
Should Be Empty
${response.text}
${response}
=
Create Dictionary
status=
${response.status_code}
...
...
@@ -381,7 +381,7 @@ Send PUT Request to upload NSD Content as zip file in asynchronous mode
Send PUT Request to upload NSD Content as zip file in synchronous mode
Create Session
nbi
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
headers={"Accept": "
${ACCEPT_JSON}
", "Content-Type": "application/zip", "Authorization": "
${AUTHORIZATION}
"}
verify=False
${body}
=
Get Binary File
${contentZip
File
}
${body}
=
Get Binary File
${contentZip
Nsd
}
${response}
=
Put Request
nbi
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/ns_descriptors/
${nsdInfoIdZip}
/nsd_content
data=
${body}
Should Be Empty
${response.text}
${response}
=
Create Dictionary
status=
${response.status_code}
...
...
@@ -405,7 +405,7 @@ Check Postcondition NSD Content is uploaded and available in the NFVO
Send PUT Request to upload NSD 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
${contentZip
File
}
${body}
=
Get Binary File
${contentZip
Nsd
}
${response}
=
Put Request
nbi
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/ns_descriptors/
${nsdInfoIdZip}
/nsd_content
data=
${body}
Log
${response}
${response}
=
Create Dictionary
status=
${response.status_code}
headers=
${response.headers}
body=
${response.json()}
...
...
@@ -700,8 +700,8 @@ 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
File
Pnfd}
Create Session
pnfd
${NFVO_SCHEMA}
://
${NFVO_HOST}
:
${NFVO_PORT}
headers={"Accept": "
${ACCEPT_PLAIN}
", "Content-Type": "
application/zip
", "Authorization": "
${AUTHORIZATION}
"}
verify=False
${body}
=
Get Binary File
${content
Zip
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 @
9b8ec7fe
...
...
@@ -64,7 +64,8 @@ ${NFVO_RANGE_OK} 1
${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
${contentZipNsd} files/nsd.zip
${contentFileNsd} files/nsd.zip
${creatingNsdInfoId} 71241932-994a-46e2-ad6c-1740674dda44
${BAD_AUTHORIZATION} Bear sometoken
${original_etag} 1234
...
...
@@ -82,7 +83,8 @@ ${erroneous_pnfdInfoId} erroneous_pnfdInfoId
${enabledPnfdInfoId} 40853bda-8a8f-4f63-9130-cef439f65348
${erroneous_pnfdId} erroneousPnfdId
${onboardingStatePnfdId} 8ed2bf1f-f6ae-4d18-b478-bfab02fd4cd2
${contentFilePnfd} files/pnfdContent.zip
${contentZipPnfd} files/pnfd.zip
${contentFilePnfd} files/pnfd.yml
${creatingPnfdId} 2e4ce0ef-3ea8-49f9-92dd-8771866015bb
${userDefinedDataSet} some
...
...
SOL005/NSDManagement-API/files/nsd.yml
0 → 100644
View file @
9b8ec7fe
nsd
:
-id
:
nsd_id
-name
:
nsd_name
\ No newline at end of file
SOL005/NSDManagement-API/files/nsd.zip
0 → 100644
View file @
9b8ec7fe
File added
SOL005/NSDManagement-API/files/pnfd.yml
0 → 100644
View file @
9b8ec7fe
pnfd
:
-id
:
pnfd_id
-name
:
pnfd_name
\ No newline at end of file
SOL005/NSDManagement-API/files/pnfd.zip
0 → 100644
View file @
9b8ec7fe
File added
SOL005/NSDManagement-API/files/pnfdContent.zip
deleted
100644 → 0
View file @
21fc5ae0
File deleted
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
9b8ec7fe
...
...
@@ -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/v
nfPackage
.zip
${body}
=
Get Binary File
${contentZipV
nfPackage
}
${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/v
nfPackage
.zip
${body}
=
Get Binary File
${contentZipV
nfPackage
}
${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}
...
...
SOL005/VNFPackageManagement-API/environment/variables.txt
View file @
9b8ec7fe
...
...
@@ -49,6 +49,8 @@ ${disabledVnfPackageId} 87a2c9d3-00ea-4032-8c67-a5106d001868
${vnfPackageId} 788106a2-d692-44f3-a86d-384f0ce35e42
${instantiatedVnfPackageId} 0b79bab50daca910b000d4f1a2b675d604257e42
${contentZipVnfPackage} files/vnfPackage.zip
${ACCEPT_PLAIN} text/plain
${ACCEPT_ZIP} application/zip
${CONTENT_TYPE_PLAIN} text/plain
...
...
SOL005/VNFPackageManagement-API/files/vnfPackage.zip
0 → 100644
View file @
9b8ec7fe
File added
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