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

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

parent 5729ec3b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ GET individual VNF Performance Job
    ...    Applicability: none
    ...    Post-Conditions: none
    GET individual VNF Performance Job
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   PmJob
    Check HTTP Response Body Pm Job Identifier matches the requested Pm Job
@@ -99,6 +100,7 @@ PATCH Individual VNF Performance Job
    ...    Applicability: none
    ...    Post-Conditions: 
    Send Patch request for individual VNF Performance Job
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    PMJobModifications
    
@@ -271,3 +273,10 @@ Check HTTP Response Body Json Schema Is
    ${schema} =    Catenate    SEPARATOR=    ${input}	.schema.json
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK

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
 No newline at end of file
+9 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ GET Individual Threshold
    ...    Post-Conditions: none
    GET individual VNF Performance Threshold
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Body Json Schema Is   Threshold
    Check HTTP Response Body Threshold Identifier matches the requested Threshold

@@ -99,6 +100,7 @@ PATCH Individual Threshold
    ...    Applicability: none
    ...    Post-Conditions: 
    Send Patch request for individual VNF Performance Threshold
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ThresholdModifications

@@ -260,3 +262,10 @@ Check HTTP Response Body Json Schema Is
    ${schema} =    Catenate    SEPARATOR=    ${input}    .schema.json
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK

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    
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ ${callback_endpoint_fwd} /endpoint/check
${notification_request}    []
${notification_response}    []

${HEADER_TEST_SUPPORTED}    0

${POS_FILTER}     objectInstanceIds=${objectInstanceIds}
${NEG_FILTER}     criteriaPmJob=erroneousAttributeName