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

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

parent 4c5ce08b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ Get Information about an individual VNF Instance
    ...    Applicability: none
    ...    Post-Conditions: none
    GET individual vnfInstance
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstance
    Check HTTP Response Body vnfInstance content against VNF Descriptor
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ GET Information about an individual VNF Snapshot - SUCCESSFUL
    ...    Applicability: none
    ...    Post-Conditions: none
    GET individual VNF Snapshot
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    VnfSnapshotInfo
        
@@ -62,6 +63,7 @@ PATCH Individual VNF Snapshot - Success
    ...    Applicability: none
    ...    Post-Conditions: VNF Snapshot modified
    PATCH individual VNF Snapshot
    Check HTTP Response Header Contains ETag and Last-Modified
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    VnfSnapshotInfoModifications

+7 −0
Original line number Diff line number Diff line
@@ -32,6 +32,13 @@ Check HTTP Response Status Code Is
    Should Be Equal As Strings   ${response['status']}    ${expected_status}
    Log    Status code validated 

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 Operation Occurrence IdS
    ${vnfLcmOpOccId}=    Get Value From Json    ${response['headers']}    $..Location
    Should Not Be Empty    ${vnfLcmOpOccId}
+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ ${stopType} FORCEFUL

${terminationType}    GRACEFUL

${HEADER_TEST_SUPPORTED}    0

${scaleInfo}
${element}