Commit bb98bb85 authored by Mike-no's avatar Mike-no Committed by Giacomo Bernini
Browse files

fix ETag in Send PATCH to enable Individual Network Service Descriptor with...

fix ETag in Send PATCH to enable Individual Network Service Descriptor with HTTP Conditional Request not supported and Send PATCH to update Individual PNF Descriptor with HTTP Conditional Request Not Supported Precondition Failure methods
parent 730c68ab
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -266,10 +266,10 @@ Send PATCH to enable Individual Network Service Descriptor with HTTP Etag precon

Send PATCH to enable Individual Network Service Descriptor with HTTP Conditional Request not supported
    Pass Execution If    ${PRODUCER_SUPPORT_COND_REQ} == 1    NVFO allows conditional requests, skipping test
    Log    Trying to perform a PATCH. As prerequisite the nsdInfo shall be modified by another entity
    Log    Trying to perform a PATCH. As prerequisite the nsdInfo shall be in disabled operational state
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
    Set Headers    {"If-Match": "${wrong_etag}"}
    Set Headers    {"If-Match": "${original_etag}"}
    ${body}=    Get File    jsons/NsdInfoModificationEnable.json
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    REST.PATCH    ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoId}    ${body}
@@ -628,10 +628,10 @@ Send PATCH to update Individual PNF Descriptor with HTTP Etag precondition failu

Send PATCH to update Individual PNF Descriptor with HTTP Conditional Request Not Supported Precondition Failure
    Pass Execution If    ${PRODUCER_SUPPORT_COND_REQ} == 1    NVFO allows conditional requests, skipping test
    Log    Trying to perform a PATCH. As prerequisite the pnfdInfo shall be modified by another entity
    Log    Trying to perform a PATCH.
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
    Set Headers    {"If-Match": "${wrong_etag}"}
    Set Headers    {"If-Match": "${original_etag}"}
    ${body}=    Get File    jsons/PnfdInfoModification.json
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    REST.PATCH    ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}    ${body}