Commit 21fc5ae0 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

fixed pnfd file usage

parent cd760d55
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -701,7 +701,7 @@ Get PNFD Content with conflict due to onboarding state
Send PUT Request to upload PNFD Content as zip file
Send PUT Request to upload PNFD Content as zip file
    Log    Trying to perform a PUT. This method upload the content of a PNFD
    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
    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  ${contentZipFile}
    ${body}=  Get Binary File  ${contentFilePnfd}
    ${response}=    Put Request     pnfd     ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content     data=${body}
    ${response}=    Put Request     pnfd     ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content     data=${body}
    Should Be Empty     ${response.text}
    Should Be Empty     ${response.text}
    ${response}=    Create Dictionary   status=${response.status_code}
    ${response}=    Create Dictionary   status=${response.status_code}
+0 −1
Original line number Original line Diff line number Diff line
@@ -65,7 +65,6 @@ ${range} bytes=0-1023
${erroneousRange}    bytes=100000-1000000    # Requesting a out of range number of bytes
${erroneousRange}    bytes=100000-1000000    # Requesting a out of range number of bytes
${onboardingStateNsdInfoId}    b992a851-08b1-45a8-9282-a5f7a7df04a6
${onboardingStateNsdInfoId}    b992a851-08b1-45a8-9282-a5f7a7df04a6
${contentZipFile}    files/nsdContent.zip
${contentZipFile}    files/nsdContent.zip
${contentPlainFile}    files/nsdContent.yaml
${creatingNsdInfoId}    71241932-994a-46e2-ad6c-1740674dda44
${creatingNsdInfoId}    71241932-994a-46e2-ad6c-1740674dda44
${BAD_AUTHORIZATION}    Bear sometoken
${BAD_AUTHORIZATION}    Bear sometoken
${original_etag}    1234
${original_etag}    1234