Commit ba0c81c8 authored by Ayesha Ayub's avatar Ayesha Ayub Committed by Giacomo Bernini
Browse files

add ETag and Last-Modified response headers in SOL003 VNF Fault Management API

parent 7c92fb2e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -61,6 +61,13 @@ Check HTTP Response Header Contains
    Should Contain     ${response['headers']}    ${HEADER_TOCHECK}
    Log    Header is present    
    
Check HTTP Response Header Contains ETag and Last-Modified
    Pass Execution If    ${HEADER_TEST_SUPPORTED} == 0    Headers testing not supported. Skipping the Test.
    Log    ${response['headers']}
    Should Contain    ${response['headers']}    Etag
    Should Contain    ${response['headers']}    Last-Modified
    Log    Etag and Last-Modified Headers are present
        
Check HTTP Response Body Json Schema Is
    [Arguments]    ${input}
    Run Keyword If    '${input}' == 'ProblemDetails'    Should Contain    ${response['headers']['Content-Type']}    application/problem+json
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ Get information about an fault management individual alarm
    ...    Applicability: none
    ...    Post-Conditions:  none 
    GET Fault Management Individual Alarm
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarm

@@ -56,6 +57,7 @@ PATCH Fault Management Individual Alarm
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH Fault Management Individual Alarm
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is  alarmModification