Commit 2544092e authored by Eisha Ayaz's avatar Eisha Ayaz Committed by Giacomo Bernini
Browse files

[keywords][SOL003][VNF-LCM][ v5.2.1] [7.3.1.x.x Test-IDs] Fix Location Header...

[keywords][SOL003][VNF-LCM][ v5.2.1] [7.3.1.x.x Test-IDs] Fix Location Header identifier across LCM APIs
parent 051448cb
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
@@ -58,6 +58,17 @@ Check HTTP Response Body Json Schema Is
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK

Check Postcondition Resource Returned in Location Header Is Available
    Log    Going to check postcondition
    GET    ${response['headers']['Location']}
    Integer    response status    200
    Log    Received a 200 OK as expected
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    Validate Json    schemas/vnfInstance.schema.json    ${result}
    Log    Validated vnfInstance schema

Check resource Instantiated
    Check VNF Instance    ${vnfInstanceId}
    Check HTTP Response Status Code Is    200
@@ -126,6 +137,17 @@ Check Individual VNF LCM operation occurrence operationState is
    Should Be Equal as Strings  ${opOccResponse['body']['operationState']}    ${status}
    Log    operationState validated

Check Operation Occurrence Resource Available
    Log    Fetching resource pointed by Location header
    GET    ${response['headers']['Location']}
    Integer    response status    200
    ${contentType}=    Output    response headers Content-Type
    Should Contain    ${contentType}    application/json
    ${result}=    Output    response body
    Validate Json    schemas/vnfLcmOpOcc.schema.json    ${result}
    Log    Operation Occurrence resource validated


Send VNF Scale Out Request
    Log    Trying to scale a vnf Instance
    Set Headers    {"Accept":"${ACCEPT}"}
@@ -2580,6 +2602,17 @@ Check HTTP Location Header Contains URI of Created Resource
    ${URI}=    Get Value From Json    ${response['headers']}    $..Location
    Should Not Be Empty    ${URI}

Check Postcondition VNF Snapshot Resource Returned in Location Header Is Available
    Log   Going to check post condition
    Get    ${response['headers']['Location']}
    Integer   response status 200
    Log   Received a 200 OK as expected
    ${contentType}=   Output   response headers Content-Type
    Should Contain   ${contentType}   application/json
    ${result}=   Output   response body
    Validate Json   schemas/VnfSnapshotInfo.schema.json   ${result}
    Log   Validated subscription schema  
    
POST Create VNF Snapshot Task
    Log    Trying to request a snapshot of a VNF instance
    Set Headers  {"Accept":"${ACCEPT}"}