Commit 9c18b26d authored by sinatra's avatar sinatra
Browse files

Merge branch 'feature/refactoring' into 'master'

wording correction temp_failed

See merge request stf/stf-557/api-tests!11
parents ada35d80 8e540b96
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -20,7 +20,7 @@ Post Cancel operation task
    ...    Post-Conditions: none    
    ...    Post-Conditions: none    
    POST Cancel operation task
    POST Cancel operation task
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check resource has a temporary failure
    Check operation resource state is FAILED_TEMP
    
    
Post Cancel operation task Conflict
Post Cancel operation task Conflict
    [Documentation]    Test ID: 6.3.5.16.2
    [Documentation]    Test ID: 6.3.5.16.2
+1 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,7 @@ Post Fail operation task
    Post Fail operation
    Post Fail operation
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
    Check Operation Occurrence Id
    Check operation resource state is FINALLY_FAILED


Post Fail operation task Conflict (Not-FAILED_TEMP)
Post Fail operation task Conflict (Not-FAILED_TEMP)
    # TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
    # TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
+8 −3
Original line number Original line Diff line number Diff line
@@ -58,11 +58,16 @@ Check VNF Status
    Should Be Equal As Strings    ${current}    ${expected}
    Should Be Equal As Strings    ${current}    ${expected}
    Log    VNF Status in the correct status
    Log    VNF Status in the correct status


Check resource has a temporary failure
Check operation resource state is FAILED_TEMP
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId} 
    Get    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId} 
    String    response body instantiationState    FAILED_TEMP   
    String    response body instantiationState    FAILED_TEMP   


Check operation resource state is FINALLY_FAILED      
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId} 
    String    response body instantiationState    FINALLY_FAILED  
     
Check HTTP Response Header Contains
Check HTTP Response Header Contains
    [Arguments]    ${CONTENT_TYPE}
    [Arguments]    ${CONTENT_TYPE}
    Should Contain    ${response.headers}    ${CONTENT_TYPE}
    Should Contain    ${response.headers}    ${CONTENT_TYPE}
+1 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ Post Cancel operation task
    ...    Post-Conditions: VNF instance status equal to FAILED_TEMP     
    ...    Post-Conditions: VNF instance status equal to FAILED_TEMP     
    POST Cancel operation task
    POST Cancel operation task
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check resource has a temporary failure
    Check operation resource state is FAILED_TEMP
    
    
Post Cancel operation task Conflict
Post Cancel operation task Conflict
    [Documentation]    Test ID: 7.3.1.16.2
    [Documentation]    Test ID: 7.3.1.16.2
+2 −1
Original line number Original line Diff line number Diff line
@@ -16,10 +16,11 @@ Post Fail operation task
    ...    Reference:  section 5.4.16.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.16.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none 
    ...    Post-Conditions: VNF resource state is FINALLY_FAILED
    Post Fail operation
    Post Fail operation
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
    Check Operation Occurrence Id
    Check operation resource state is FINALLY_FAILED


Post Fail operation task Conflict (Not-FAILED_TEMP)
Post Fail operation task Conflict (Not-FAILED_TEMP)
    # TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
    # TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
Loading