Commit b9582779 authored by Mudassar Khan's avatar Mudassar Khan
Browse files

add interconnected test cases number 13 and 14

parent dbfb654f
Loading
Loading
Loading
Loading
+45 −1
Original line number Diff line number Diff line
@@ -263,6 +263,34 @@ VNF Instance Scale Out
    Check Operation Notification For Scale    COMPLETED
    Check Postcondition VNF    SCALE_OUT

Post Retry operation task
    [Documentation]    Test ID: 7.3.1.13.1
    ...    Test title: Post Retry operation task
    ...    Test objective: The objective is to test that POST method The POST method initiates retrying a VNF lifecycle operation if the operation is in FAILED_TEMP state
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is in "FAILEDGET status information about multiple VNF LCM Operation OCC_TEMP" state.
    ...    Reference: Clause 5.4.14.4.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    Post Retry operation
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location
    Check Individual VNF LCM operation occurrence operationState is    STARTING

Post Rollback operation task
    [Documentation]    Test ID: 7.3.1.14.1
    ...    Test title: Post Rollback operation task
    ...    Test objective: The objective is to test that POST method initiates rollback on a VNF lifecycle operation
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
    ...    Reference: Clause 5.4.15.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    Post Rollback operation
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location
    Check Individual VNF LCM operation occurrence operationState is    STARTING

VNF Instance Scale In
    Send VNF Scale In Request
    Check HTTP Response Status Code Is    202
@@ -820,3 +848,19 @@ Get Vnf Scale Info
    ${vnfInstance}=    Check VNF Instance    ${vnfid}
    ${scaleInfo}=    Get Value From Json    ${vnfInstance}    $..scaleStatus
    [Return]   ${scaleInfo} 

Post Retry operation
    Log    Retry a VNF lifecycle operation if that operation has experienced a temporary failure
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Log    Execute Query and validate response
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs/${globalVnfLcmOpOccId}/retry	
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}

Post Rollback operation
    Log    Rollback a VNF lifecycle operation if that operation has experienced a temporary failure
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Log    Execute Query and validate response
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs/${globalVnfLcmOpOccId}/rollback
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
 No newline at end of file
+22 −0
Original line number Diff line number Diff line
*** Settings ***
Suite Setup       Initialize System
Suite Teardown    Terminate All Processes    kill=true
Resource          environment/variables.txt    # Generic Parameters
Resource          IC_TC_Keywords.robot
Library           JSONLibrary

*** Test Cases ***
Test that POST method initiates retrying a VNF lifecycle operation if the operation is in FAILED_TEMP state
    [Documentation]    Test ID: 11.3.1.13.1
    ...    Test title: Test that POST method initiates retrying a VNF lifecycle operation if the operation is in FAILED_TEMP state
    ...    Test objective: The objective is to test the interconnected case of VNF is to retry a VNF lifecycle operation if the operation is in FAILED_TEMP state.
    ...    Pre-conditions: none
    ...    Reference: ETSI GS NFV-SOL 003 [1] v5.1.1
    ...    Config ID: Config_prod_NFVO, Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VNF Package
    POST Create a new vnfInstance
    VNF Instantiation
    GET status information about multiple VNF LCM Operation OCC
    Post Retry operation task
 No newline at end of file
+22 −0
Original line number Diff line number Diff line
*** Settings ***
Suite Setup       Initialize System
Suite Teardown    Terminate All Processes    kill=true
Resource          environment/variables.txt    # Generic Parameters
Resource          IC_TC_Keywords.robot
Library           JSONLibrary

*** Test Cases ***
Test that POST method initiates rollback on a VNF lifecycle operation
    [Documentation]    Test ID: 11.3.1.14.1
    ...    Test title: Test that POST method initiates rollback on a VNF lifecycle operation
    ...    Test objective: The objective is to test the interconnected case of VNF is to rollback a VNF lifecycle operation.
    ...    Pre-conditions: none
    ...    Reference: ETSI GS NFV-SOL 003 [1] v5.1.1
    ...    Config ID: Config_prod_NFVO, Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VNF Package
    POST Create a new vnfInstance
    VNF Instantiation
    GET status information about multiple VNF LCM Operation OCC
    Post Rollback operation task
 No newline at end of file
+1273 −0

File added.

Preview size limit exceeded, changes collapsed.