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

[fix][SOL003][VNF-LCM][ v5.2.1] [7.3.1.16.11 Test-ID] Implement Post Cancel...

[fix][SOL003][VNF-LCM][ v5.2.1] [7.3.1.16.11 Test-ID] Implement Post Cancel Operation task - STARTING as per tacker feedback
parent a81eac90
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -131,3 +131,16 @@ Cancel operation task - Unauthorized
    POST Cancel operation task - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails

Post Cancel operation task - STARTING
    [Documentation]    Test ID: 7.3.1.16.11
    ...    Test title: POST Cancel operation task
    ...    Test objective: The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed, i.e. the "VNF LCM operation occurrence" is in "STARTING" state.
    ...    Pre-conditions: The "VNF LCM operation occurrence" is in "STARTING" state.
    ...    Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: the resource is in ROLLED_BACK state
    POST Cancel operation task
    Check HTTP Response Status Code Is    202
    Check operation resource state is ROLLED_BACK
 No newline at end of file
+6 −1
Original line number Diff line number Diff line
@@ -3424,3 +3424,8 @@ POST Scale vnfInstance Scale Vertical Oscontainer
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}

Check operation resource state is ROLLED_BACK
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId} 
    String    response body instantiationState    ROLLED_BACK   
 No newline at end of file