Commit 38b7f343 authored by aureliano sinatra's avatar aureliano sinatra
Browse files

removed setup from SOL5

parent 90004c2b
Loading
Loading
Loading
Loading
+4 −6
Original line number Original line Diff line number Diff line
@@ -6,21 +6,20 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library    DependencyLibrary
Library    DependencyLibrary
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
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 ***
*** Test Cases ***
Post Cancel operation task
Post Cancel operation task
    [Documentation]    Test ID: 7.3.1.16.1
    [Documentation]    Test ID: 7.3.1.16.1
    ...    Test title: POST Cancel operation task
    ...    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.
    ...    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
    ...    Reference:  section 5.4.17.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null    
    ...    Post-Conditions: in response header Location should not be null    
    POST Cancel operation task
    POST Cancel operation task
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check resource 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
@@ -31,7 +30,6 @@ Post Cancel operation task Conflict
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null  
    ...    Post-Conditions: in response header Location should not be null  
    Depends on test  Check resource FAILED_TEMP
    POST Cancel operation task
    POST Cancel operation task
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
    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
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
     [Documentation]    Test ID: 7.3.1.16.2
     [Documentation]    Test ID: 7.3.1.16.2
    ...    Test title: POST Cancel operation task
    ...    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: 
    ...    Pre-conditions: 
    ...    Reference:  section 5.4.17.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.17.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: in response header Location should not be null  
    ...    Post-Conditions: in response header Location should not be null  
    [Setup]    Check Fail not supported
    POST Cancel operation task
    POST Cancel operation task
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    
GET Cancel operation task - Method not implemented
GET Cancel operation task - Method not implemented
    [Documentation]    Test ID: 7.3.1.16.3
    [Documentation]    Test ID: 7.3.1.16.3
    ...    Test title: GET Cancel operation task - Method not implemented
    ...    Test title: GET Cancel operation task - Method not implemented
+0 −1
Original line number Original line Diff line number Diff line
@@ -6,7 +6,6 @@ Resource VnfLcmMntOperationKeywords.robot
Library    OperatingSystem
Library    OperatingSystem
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
Suite Setup    Check resource existance


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


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


@@ -31,8 +30,7 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none  
    ...    Post-Conditions: none  
    [Setup]    Check resource not instantiated   
    POST Change VNF deployment flavour   
    POST Change VNF deployment flavour   ${instantiatedVnfInstanceId}
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
    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
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none  
    ...    Post-Conditions: none  
    [Setup]    Check change flavour not supported
    POST Change VNF deployment flavour  
    POST Change VNF deployment flavour   ${notFoundVnfInstanceId}
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
   
   
+0 −8
Original line number Original line Diff line number Diff line
@@ -6,11 +6,6 @@ Library DependencyLibrary
Library    JSONLibrary
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/
Resource    VnfLcmMntOperationKeywords.robot
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 ***
*** Test Cases ***
Post Fail operation task  
Post Fail operation task  
@@ -22,7 +17,6 @@ Post Fail operation task
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none 
    ...    Post-Conditions: none 
    Depends on test    Check resource FAILED_TEMP
    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
@@ -37,7 +31,6 @@ Post Fail operation task Conflict (Not-FAILED_TEMP)
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none     
    ...    Post-Conditions: none     
    Depends on test failure  Check resource FAILED_TEMP
    Post Fail operation
    Post Fail operation
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
@@ -52,7 +45,6 @@ Post Fail operation task Not Found
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none  
    ...    Post-Conditions: none  
    [Setup]    Check Fail not supported
    Post Fail operation
    Post Fail operation
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404


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


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