Commit 36c1e9ef authored by sinatra's avatar sinatra
Browse files

Merge branch 'feature/refactoring' into 'master'

removed setup from SOL3

See merge request stf/stf-557/api-tests!6
parents 62570f70 38b7f343
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -6,21 +6,20 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library    DependencyLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Documentation    This task resource represents the "Cancel operation" operation. The client can use this resource to cancel an ongoing VNF lifecycle operation.
Suite Setup    Check resource existance

*** Test Cases ***
Post Cancel operation task
    [Documentation]    Test ID: 7.3.1.16.1
    ...    Test title: POST Cancel operation task
    ...    Test objective: The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed or rolled back, i.e. the related "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
    ...    Pre-conditions: none
    ...    Pre-conditions: the related "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
    ...    Reference:  section 5.4.17.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null    
    POST Cancel operation task
    Check HTTP Response Status Code Is    202
    Check resource FAILED_TEMP
    
Post Cancel operation task Conflict
    [Documentation]    Test ID: 7.3.1.16.2
@@ -31,7 +30,6 @@ Post Cancel operation task Conflict
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null  
    Depends on test  Check resource FAILED_TEMP
    POST Cancel operation task
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
@@ -40,15 +38,15 @@ Post Cancel operation task Not Found
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
     [Documentation]    Test ID: 7.3.1.16.2
    ...    Test title: POST Cancel operation task
    ...    Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the operation is not supported
    ...    Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the resource is not found
    ...    Pre-conditions: 
    ...    Reference:  section 5.4.17.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null  
    [Setup]    Check Fail not supported
    POST Cancel operation task
    Check HTTP Response Status Code Is    404
    
GET Cancel operation task - Method not implemented
    [Documentation]    Test ID: 7.3.1.16.3
    ...    Test title: GET Cancel operation task - Method not implemented
+0 −1
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ Resource VnfLcmMntOperationKeywords.robot
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Suite Setup    Check resource existance

*** Test Cases ***
POST Change external VNF connectivity 
+3 −6
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ Resource VnfLcmMntOperationKeywords.robot
Library     OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Suite Setup    Check resource existance

*** Test Cases ***
POST Change deployment flavour of a vnfInstance
@@ -18,7 +17,7 @@ POST Change deployment flavour of a vnfInstance
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null  
    POST Change VNF deployment flavour   ${vnfInstanceId}
    POST Change VNF deployment flavour   
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id

@@ -31,8 +30,7 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    [Setup]    Check resource not instantiated   
    POST Change VNF deployment flavour   ${instantiatedVnfInstanceId}
    POST Change VNF deployment flavour   
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails

@@ -47,8 +45,7 @@ Change deployment flavour of a vnfInstance Not Found
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    [Setup]    Check change flavour not supported
    POST Change VNF deployment flavour   ${notFoundVnfInstanceId}
    POST Change VNF deployment flavour  
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
   
+0 −8
Original line number Diff line number Diff line
@@ -6,11 +6,6 @@ Library DependencyLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Resource    VnfLcmMntOperationKeywords.robot
Documentation    This task resource represents the "Fail operation" operation. 
...    The client can use this resource to mark a VNF lifecycle management operation occurrence as "finally failed", 
...    i.e. change the state of the related VNF LCM operation occurrence resource to "FAILED", if it is not assumed that a subsequent retry or rollback will succeed. 
...    Once the operation is marked as "finally failed", it cannot be retried or rolled back anymore.
Suite Setup    Check resource existance

*** Test Cases ***
Post Fail operation task  
@@ -22,7 +17,6 @@ Post Fail operation task
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    Depends on test    Check resource FAILED_TEMP
    Post Fail operation
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
@@ -37,7 +31,6 @@ Post Fail operation task Conflict (Not-FAILED_TEMP)
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none     
    Depends on test failure  Check resource FAILED_TEMP
    Post Fail operation
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
@@ -52,7 +45,6 @@ Post Fail operation task Not Found
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none  
    [Setup]    Check Fail not supported
    Post Fail operation
    Check HTTP Response Status Code Is    404

+0 −3
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ Library OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Resource    VnfLcmMntOperationKeywords.robot
Suite Setup    Check resource existance

*** Test Cases ***
POST Heal a vnfInstance
@@ -32,7 +31,6 @@ Heal a vnfInstance Conflict (Not-Instantiated)
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: 
    [Setup]    Check resource not instantiated
    POST Terminate VNF
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails 
@@ -49,7 +47,6 @@ Heal a vnfInstance Not Found
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: 
    [Setup]    Check heal not supported
    POST Terminate VNF
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails 
Loading