Commit 961362d6 authored by Mudassar Khan's avatar Mudassar Khan Committed by Giacomo Bernini
Browse files

implement cancel operations task - Starting as per Tacker feedback

parent f305872d
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -121,6 +121,19 @@ Post Cancel operation task with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails

Post Cancel operation task - STARTING
    [Documentation]    Test ID: 6.3.5.16.10
    ...    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 002 [2] v5.1.1
    ...    Config ID: Config_prod_VE
    ...    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

*** Keywords ***
Check resource existence
    Set Headers    {"Accept":"${ACCEPT}"}
+5 −1
Original line number Diff line number Diff line
@@ -2489,3 +2489,7 @@ DELETE notification endpoint
    ${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