Commit 76e2aa0f authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

updated tests on 412 for SOL005

parent 4af90173
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -94,7 +94,7 @@ PATCH Alarm - Precondition failed
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  none
    ...    Applicability:  none
    ...    Post-Conditions: 
    ...    Post-Conditions: 
    PATCH Individual Alarm Conflict
    PATCH Individual Alarm - ETag mismatch
    Check HTTP Response Status Code Is    412
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails


+2 −2
Original line number Original line Diff line number Diff line
@@ -197,11 +197,11 @@ PATCH Individual Alarm
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
    Set Global Variable    ${response}    ${outputResponse}
    Set Global Variable    ${response}    ${outputResponse}
   
   
PATCH Individual Alarm Conflict
PATCH Individual Alarm - ETag mismatch
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    log    Trying to perform a PATCH. This method modifies an individual alarm resource
    Set Headers  {"Accept":"${ACCEPT}"} 
    Set Headers  {"Accept":"${ACCEPT}"} 
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"} 
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"} 
    Set Headers    {"If-Match": "${Etag}"} 
    Set Headers    {"If-Match": "${invalid_etag}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${body}=    Get File    jsons/alarmModifications.json
    ${body}=    Get File    jsons/alarmModifications.json
    Patch    ${apiRoot}/${apiName}/${apiMajorVersion}/alarms/${alarmId}    ${body}
    Patch    ${apiRoot}/${apiName}/${apiMajorVersion}/alarms/${alarmId}    ${body}
+2 −0
Original line number Original line Diff line number Diff line
@@ -45,6 +45,8 @@ ${AlarmNotification} {}
${AlarmClearedNotification}    {}
${AlarmClearedNotification}    {}
${AlarmListRebuiltNotification}    {}
${AlarmListRebuiltNotification}    {}


${invalid_etag}=    invalid etag

${response}    {}
${response}    {}


${req_mock}    {}
${req_mock}    {}
+1 −1
Original line number Original line Diff line number Diff line
@@ -104,7 +104,7 @@ PATCH Individual NS Performance Job - Precondition failed
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The resource is not modified
    ...    Post-Conditions: The resource is not modified
    Send Patch request for individual NS Performance Job
    Send Patch request for individual NS Performance Job - Etag mismatch
    Check HTTP Response Status Code Is    412
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is     ProblemDetails
    Check HTTP Response Body Json Schema Is     ProblemDetails
    
    
+1 −1
Original line number Original line Diff line number Diff line
@@ -107,7 +107,7 @@ PATCH Individual Threshold - Precondition failed
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The NS performance Threshold is not modified by the operation
    ...    Post-Conditions: The NS performance Threshold is not modified by the operation
    Send Patch request for individual NS performance Threshold
    Send Patch request for individual NS performance Threshold - Etag mismatch 
    Check HTTP Response Status Code Is    412
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check Postcondition NS performance Threshold is Unmodified (Implicit)
    Check Postcondition NS performance Threshold is Unmodified (Implicit)
Loading