Commit 071d0055 authored by Ayesha Ayub's avatar Ayesha Ayub
Browse files

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

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


+7 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,13 @@ Check HTTP Response Status Code Is
    Should Be Equal As Strings   ${response['status']}    ${expected_status}
    Should Be Equal As Strings   ${response['status']}    ${expected_status}
    Log    Status code validated 
    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
Check Operation Occurrence IdS
    ${vnfLcmOpOccId}=    Get Value From Json    ${response['headers']}    $..Location
    ${vnfLcmOpOccId}=    Get Value From Json    ${response['headers']}    $..Location
    Should Not Be Empty    ${vnfLcmOpOccId}
    Should Not Be Empty    ${vnfLcmOpOccId}
+1 −0
Original line number Original line Diff line number Diff line
@@ -103,6 +103,7 @@ ${stopType} FORCEFUL


${terminationType}    GRACEFUL
${terminationType}    GRACEFUL


${HEADER_TEST_SUPPORTED}    0


${scaleInfo}
${scaleInfo}
${element}
${element}