Commit 9b8ec7fe authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

updated NSD, VNFD, PNFD files and zip management

parent 21fc5ae0
......@@ -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 ${contentZipFile}
${body}= Get Binary File ${contentZipNsd}
${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 ${contentZipFile}
${body}= Get Binary File ${contentZipNsd}
${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 ${contentZipFile}
${body}= Get Binary File ${contentZipNsd}
${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 ${contentFilePnfd}
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 ${contentZipPnfd}
${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}
......
......@@ -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
......
nsd:
-id: nsd_id
-name: nsd_name
\ No newline at end of file
pnfd:
-id: pnfd_id
-name: pnfd_name
\ No newline at end of file
......@@ -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/vnfPackage.zip
${body}= Get Binary File ${contentZipVnfPackage}
${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/vnfPackage.zip
${body}= Get Binary File ${contentZipVnfPackage}
${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}
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment