Commit fb9a409b authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

upd

parent de702c89
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -499,9 +499,9 @@ 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
    Set Headers    {"Accept": "${ACCEPT_ZIP}"}
    Set Headers    {"Content-Type": "${ACCEPT_ZIP}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    ${body}=  Get Binary File     files/vnfPackage.zip
    ${body}=  Get Binary File     ${contentZipVnfPackage}
    PUT    ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${newVnfPackageId}/package_content    ${body}
    ${response}=    Output    response body
    Should Be Empty    ${response} 
@@ -517,10 +517,10 @@ 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
    Set Headers    {"Accept": "${ACCEPT_ZIP}"}
    Set Headers    {"Content-Type": "${ACCEPT_ZIP}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    ${body}=  Get Binary File  files/vnfPackage.zip
    PUT    ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${creatingVnfPackageId}/nsd_content    ${body}
    ${body}=  Get Binary File  ${contentZipVnfPackage}
    PUT    ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${creatingVnfPackageId}/package_content    ${body}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}