Commit 8c8e261c authored by sinatra's avatar sinatra
Browse files

Merge branch 'feature/refactoring' into 'master'

Feature/refactoring

See merge request stf/stf-557/api-tests!17
parents 36f80e4f dde071d8
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@ Library OperatingSystem


*** Test Cases ***
*** Test Cases ***
POST Alarms - Method not implemented
POST Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.2.1
    [Documentation]    Test ID: 6.3.4.1.1
    ...    Test title: POST Alarms - Method not implemented
    ...    Test title: POST Alarms - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: 
@@ -20,7 +20,7 @@ POST Alarms - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


Get information about multiple alarms 
Get information about multiple alarms 
    [Documentation]    Test ID: 6.3.4.2.2
    [Documentation]    Test ID: 6.3.4.1.2
    ...    Test title: Get information about multiple alarms
    ...    Test title: Get information about multiple alarms
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: 
@@ -33,7 +33,7 @@ Get information about multiple alarms
    Check HTTP Response Body Json Schema Is    alarms
    Check HTTP Response Body Json Schema Is    alarms


Get information about multiple alarms with filters 
Get information about multiple alarms with filters 
    [Documentation]    Test ID: 6.3.4.2.3
    [Documentation]    Test ID: 6.3.4.1.3
    ...    Test title: Get information about multiple alarms - with filters
    ...    Test title: Get information about multiple alarms - with filters
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: 
@@ -46,7 +46,7 @@ Get information about multiple alarms with filters
    Check HTTP Response Body Json Schema Is    alarms
    Check HTTP Response Body Json Schema Is    alarms


Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters
Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters
    [Documentation]    Test ID: 6.3.4.2.4
    [Documentation]    Test ID: 6.3.4.1.4
    ...    Test title: Get information about multiple alarms - with Invalid attribute-based filtering parameters
    ...    Test title: Get information about multiple alarms - with Invalid attribute-based filtering parameters
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: 
@@ -59,7 +59,7 @@ Get information about multiple alarms Bad Request Invalid attribute-based filter
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
    
PUT Alarms - Method not implemented
PUT Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.2.5
    [Documentation]    Test ID: 6.3.4.1.5
    ...    Test title: PUT Alarms - Method not implemented
    ...    Test title: PUT Alarms - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: 
@@ -71,7 +71,7 @@ PUT Alarms - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Alarms - Method not implemented
PATCH Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.2.6
    [Documentation]    Test ID: 6.3.4.1.6
    ...    Test title: PATCH Alarms - Method not implemented
    ...    Test title: PATCH Alarms - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: 
@@ -83,7 +83,7 @@ PATCH Alarms - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


DELETE Alarms - Method not implemented
DELETE Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.2.7
    [Documentation]    Test ID: 6.3.4.1.7
    ...    Test title: DELETE Alarms - Method not implemented
    ...    Test title: DELETE Alarms - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: 
+12 −12
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@ Library JSONSchemaLibrary schemas/
Suite Setup    Check resource existance
Suite Setup    Check resource existance


*** Test Cases ***
*** Test Cases ***
Change deployment flavour of a vnfInstance
POST Change deployment flavour of a vnfInstance
    [Documentation]    Test ID: 6.3.5.6.1
    [Documentation]    Test ID: 6.3.5.6.1
    ...    Test title: POST Change deployment flavour of a vnfInstance
    ...    Test title: POST Change deployment flavour of a vnfInstance
    ...    Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour
    ...    Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour
@@ -21,9 +21,9 @@ Change deployment flavour of a vnfInstance
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
    Check Operation Occurrence Id


Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
POST Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
    [Documentation]    Test ID: 6.3.5.6.2
    [Documentation]    Test ID: 6.3.5.6.2
    ...    Test title: POST Change deployment flavour of a vnfInstance
    ...    Test title: POST Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
    ...    Test objective: The objective is to test that POST method can't trigger a change in VNF deployment flavour because of a conflict with the state of the VNF instance resource. 
    ...    Test objective: The objective is to test that POST method can't trigger a change in VNF deployment flavour because of a conflict with the state of the VNF instance resource. 
    ...    Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
    ...    Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
    ...    Reference:  section 5.4.7.3.1 - SOL002 v2.4.1
    ...    Reference:  section 5.4.7.3.1 - SOL002 v2.4.1
@@ -35,9 +35,9 @@ Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails


    
    
Change deployment flavour of a vnfInstance Not Found
POST Change deployment flavour of a vnfInstance Not Found
    [Documentation]    Test ID: 6.3.5.6.3
    [Documentation]    Test ID: 6.3.5.6.3
    ...    Test title: POST Change deployment flavour of a vnfInstance
    ...    Test title: POST Change deployment flavour of a vnfInstance Not Found
    ...    Test objective: The objective is to test that POST method can't trigger a change in VNF deployment flavour because the VNF instance resource is not found. 
    ...    Test objective: The objective is to test that POST method can't trigger a change in VNF deployment flavour because the VNF instance resource is not found. 
    ...    Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
    ...    Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
    ...    Reference:  section 5.4.7.3.1 - SOL002 v2.4.1
    ...    Reference:  section 5.4.7.3.1 - SOL002 v2.4.1
@@ -50,8 +50,8 @@ Change deployment flavour of a vnfInstance Not Found
   
   
    
    
GET Change deployment flavour VNFInstance - Method not implemented
GET Change deployment flavour VNFInstance - Method not implemented
    [Documentation]    Test ID: 6.3.5.16.4
    [Documentation]    Test ID: 6.3.5.6.4
    ...    Test title: GET Cancel operation task - Method not implemented
    ...    Test title: GET Change deployment flavour VNFInstance - Method not implemented
    ...    Test objective: The objective is to test that GET method is not implemented
    ...    Test objective: The objective is to test that GET method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.7.3.2 - SOL002 v2.4.1
    ...    Reference:  section 5.4.7.3.2 - SOL002 v2.4.1
@@ -62,8 +62,8 @@ GET Change deployment flavour VNFInstance - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PUT Change deployment flavour VNFInstance - Method not implemented
PUT Change deployment flavour VNFInstance - Method not implemented
    [Documentation]    Test ID: 6.3.5.16.5
    [Documentation]    Test ID: 6.3.5.6.5
    ...    Test title: PUT Cancel operation task - Method not implemented
    ...    Test title: PUT Change deployment flavour VNFInstance - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.7.3.3 - SOL002 v2.4.1
    ...    Reference:  section 5.4.7.3.3 - SOL002 v2.4.1
@@ -74,7 +74,7 @@ PUT Change deployment flavour VNFInstance - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Change deployment flavour VNFInstance - Method not implemented
PATCH Change deployment flavour VNFInstance - Method not implemented
    [Documentation]    Test ID: 6.3.5.16.6
    [Documentation]    Test ID: 6.3.5.6.6
    ...    Test title: PATCH Cancel operation task - Method not implemented
    ...    Test title: PATCH Cancel operation task - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -86,8 +86,8 @@ PATCH Change deployment flavour VNFInstance - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
DELETE Change deployment flavour VNFInstance - Method not implemented
DELETE Change deployment flavour VNFInstance - Method not implemented
    [Documentation]    Test ID: 6.3.5.16.7
    [Documentation]    Test ID: 6.3.5.6.7
    ...    Test title: DELETE Cancel operation task - Method not implemented
    ...    Test title: DELETE Change deployment flavour VNFInstance - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.7.3.5 - SOL002 v2.4.1
    ...    Reference:  section 5.4.7.3.5 - SOL002 v2.4.1
+8 −8
Original line number Original line Diff line number Diff line
@@ -7,9 +7,9 @@ Library JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/


*** Test Cases ***
*** Test Cases ***
Post Fail operation task  
POST Fail operation task  
    [Documentation]    Test ID: 6.3.5.15.1
    [Documentation]    Test ID: 6.3.5.15.1
    ...    Test title: Post Fail operation task
    ...    Test title: POST Fail operation task
    ...    Test objective: The objective is to test that POST method mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    Test objective: The objective is to test that POST method mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
    ...    Reference:  section 5.4.16.3.1 - SOL002 v2.4.1
    ...    Reference:  section 5.4.16.3.1 - SOL002 v2.4.1
@@ -21,10 +21,10 @@ Post Fail operation task
    Check Operation Occurrence Id
    Check Operation Occurrence Id
    Check operation resource state is FINALLY_FAILED
    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
    [Documentation]    Test ID: 6.3.5.15.2
    [Documentation]    Test ID: 6.3.5.15.2
    ...    Test title: Post Fail operation task
    ...    Test title: POST Fail operation task Conflict (Not-FAILED_TEMP)
    ...    Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is not in "FAILED_TEMP" state.
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is not in "FAILED_TEMP" state.
    ...    Reference:  section 5.4.16.3.1 - SOL002 v2.4.1
    ...    Reference:  section 5.4.16.3.1 - SOL002 v2.4.1
@@ -35,10 +35,10 @@ Post Fail operation task Conflict (Not-FAILED_TEMP)
    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


Post Fail operation task Not Found
POST Fail 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: 6.3.5.15.3
    [Documentation]    Test ID: 6.3.5.15.3
    ...    Test title: Post Fail operation task
    ...    Test title: POST Fail operation task Not Found
    ...    Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation because the operation is not supported
    ...    Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation because the operation is not supported
    ...    Pre-conditions: 
    ...    Pre-conditions: 
    ...    Reference:  section 5.4.16.3.1 - SOL002 v2.4.1
    ...    Reference:  section 5.4.16.3.1 - SOL002 v2.4.1
@@ -74,7 +74,7 @@ PUT Fail operation task - Method not implemented


PATCH Fail operation task - Method not implemented
PATCH Fail operation task - Method not implemented
     [Documentation]    Test ID: 6.3.5.15.6
     [Documentation]    Test ID: 6.3.5.15.6
    ...    Test title: GET Fail operation task- Method not implemented
    ...    Test title: PATCH Fail operation task - Method not implemented
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.16.3.4 - SOL002 v2.4.1
    ...    Reference:  section 5.4.16.3.4 - SOL002 v2.4.1
@@ -92,7 +92,7 @@ DELETE Fail operation task - Method not implemented
    ...    Reference:  section 5.4.16.3.5 - SOL002 v2.4.1
    ...    Reference:  section 5.4.16.3.5 - SOL002 v2.4.1
    ...    Config ID: Config_prod_VE
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: vnf instance not deleted
    Delete Fail operation
    Delete Fail operation
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


+7 −7
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@ Library JSONSchemaLibrary schemas/
Suite Setup    Check resource existance
Suite Setup    Check resource existance


*** Test Cases ***
*** Test Cases ***
Heal a vnfInstance
POST Heal a vnfInstance
     [Documentation]    Test ID: 6.3.5.8.1
     [Documentation]    Test ID: 6.3.5.8.1
    ...    Test title: POST Heal a vnfInstance
    ...    Test title: POST Heal a vnfInstance
    ...    Test objective: The objective is to test that POST method heal a VNF instance
    ...    Test objective: The objective is to test that POST method heal a VNF instance
@@ -21,7 +21,7 @@ Heal a vnfInstance
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
    Check Operation Occurrence Id
    
    
Heal a vnfInstance Conflict (Not-Instantiated)
POST Heal a vnfInstance Conflict (Not-Instantiated)
    # 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
   [Documentation]    Test ID: 6.3.5.8.2
   [Documentation]    Test ID: 6.3.5.8.2
    ...    Test title: POST Heal a vnfInstance (Not-Instantiated)
    ...    Test title: POST Heal a vnfInstance (Not-Instantiated)
@@ -36,9 +36,9 @@ Heal a vnfInstance Conflict (Not-Instantiated)
    Check HTTP Response Body Json Schema Is    ProblemDetails 
    Check HTTP Response Body Json Schema Is    ProblemDetails 


    
    
Heal a vnfInstance Not Found
POST Heal a vnfInstance Not Found
   [Documentation]    Test ID: 6.3.5.8.3
   [Documentation]    Test ID: 6.3.5.8.3
    ...    Test title: POST Heal a vnfInstance (Not-Instantiated)
    ...    Test title: POST Heal a vnfInstance Not Found
    ...    Test objective: The objective is to test that the operation cannot be executed because the VNF instance resource is not found. 
    ...    Test objective: The objective is to test that the operation cannot be executed because the VNF instance resource is not found. 
    ...    Pre-conditions: the VNF instance resource is not existing
    ...    Pre-conditions: the VNF instance resource is not existing
    ...    Reference:  section 5.4.9.3.1 - SOL002 v2.4.1
    ...    Reference:  section 5.4.9.3.1 - SOL002 v2.4.1
@@ -62,7 +62,7 @@ GET Heal VNFInstance - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PUT Heal VNFInstance - Method not implemented
PUT Heal VNFInstance - Method not implemented
    [Documentation]    Test ID: 6.3.5.8.4
    [Documentation]    Test ID: 6.3.5.8.5
    ...    Test title: PUT Heal a vnfInstance - Method not implemented
    ...    Test title: PUT Heal a vnfInstance - Method not implemented
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -74,7 +74,7 @@ PUT Heal VNFInstance - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Heal VNFInstance - Method not implemented
PATCH Heal VNFInstance - Method not implemented
    [Documentation]    Test ID: 6.3.5.8.5
    [Documentation]    Test ID: 6.3.5.8.6
    ...    Test title: PATCH Heal a vnfInstance - Method not implemented
    ...    Test title: PATCH Heal a vnfInstance - Method not implemented
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -86,7 +86,7 @@ PATCH Heal VNFInstance - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
DELETE Heal VNFInstance - Method not implemented
DELETE Heal VNFInstance - Method not implemented
    [Documentation]    Test ID: 6.3.5.8.6
    [Documentation]    Test ID: 6.3.5.8.7
    ...    Test title: DELETE Heal a vnfInstance - Method not implemented
    ...    Test title: DELETE Heal a vnfInstance - Method not implemented
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Test objective: The objective is to verify that the method is not implemented 
    ...    Pre-conditions: none
    ...    Pre-conditions: none
+2 −2
Original line number Original line Diff line number Diff line
@@ -6,9 +6,9 @@ Library JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    JSONSchemaLibrary    schemas/


*** Test Cases ***
*** Test Cases ***
Post Individual Subscription - Method not implemented
POST Individual Subscription - Method not implemented
    [Documentation]    Test ID: 6.3.5.18.1
    [Documentation]    Test ID: 6.3.5.18.1
    ...    Test title: Post Individual Subscription - Method not implemented
    ...    Test title: POST Individual Subscription - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference:  section 5.4.19.3.1 - SOL002 v2.4.1
    ...    Reference:  section 5.4.19.3.1 - SOL002 v2.4.1
Loading