Commit ea14b56b authored by sinatra's avatar sinatra
Browse files

Merge branch 'feature/refactoring' into 'master'

correction to SOL3 and SOL5

See merge request stf/stf-557/api-tests!12
parents 9c18b26d 3dbdf5cd
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ POST Change external VNF connectivity
    ...    Post-Conditions: in response header Location shall not be null         
    ...    Post-Conditions: in response header Location shall not be null         
    POST Change External VNF Connectivity
    POST Change External VNF Connectivity
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id
    Check Operation Occurrence Id existence
        
        
GET Change external VNF connectivity - Method not implemented
GET Change external VNF connectivity - Method not implemented
    [Documentation]    Test ID: 7.3.1.10.2
    [Documentation]    Test ID: 7.3.1.10.2
+0 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,6 @@ Heal a vnfInstance Conflict (Not-Instantiated)


    
    
Heal a vnfInstance Not Found
Heal a vnfInstance Not Found
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    [Documentation]    Test ID: 7.3.1.8.3
    [Documentation]    Test ID: 7.3.1.8.3
    ...    Test title: POST Heal a vnfInstance (Not-Instantiated)
    ...    Test title: POST Heal a vnfInstance (Not-Instantiated)
    ...    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. 
+4 −5
Original line number Original line Diff line number Diff line
@@ -68,7 +68,7 @@ PATCH Individual VNFInstance Precondition failed
     [Documentation]    Test ID: 7.3.1.2.5
     [Documentation]    Test ID: 7.3.1.2.5
    ...    Test title: PATCH Individual VNFInstance Precondition failed
    ...    Test title: PATCH Individual VNFInstance Precondition failed
    ...    Test objective: The objective is to create a new VNF instance resource
    ...    Test objective: The objective is to create a new VNF instance resource
    ...    Pre-conditions:  A precondition given in an HTTP request header is not fulfilled. Typically, this is due to an ETag mismatch, indicating that the resource was modified by another entity
    ...    Pre-conditions:  ETag mismatch
    ...    Reference: section 5.4.3.3.4 - SOL003 v2.4.1
    ...    Reference: section 5.4.3.3.4 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: 
@@ -80,7 +80,7 @@ PATCH Individual VNFInstance Precondition failed
PATCH Individual VNFInstance Conflict
PATCH Individual VNFInstance Conflict
     [Documentation]    Test ID: 7.3.1.2.6
     [Documentation]    Test ID: 7.3.1.2.6
    ...    Test title: PATCH Individual VNFInstance Precondition failed
    ...    Test title: PATCH Individual VNFInstance Precondition failed
    ...    Test objective: The objective is to create a new VNF instance resource
    ...    Test objective: The objective is to test the conflict while modifying a VNF instance resource
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: section 5.4.3.3.4 - SOL003 v2.4.1
    ...    Reference: section 5.4.3.3.4 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
@@ -89,7 +89,6 @@ PATCH Individual VNFInstance Conflict
    PATCH individual vnfInstance
    PATCH individual vnfInstance
    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
    #[Teardown]    #We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished


DELETE Individual VNFInstance
DELETE Individual VNFInstance
     [Documentation]    Test ID: 7.3.1.2.7
     [Documentation]    Test ID: 7.3.1.2.7
@@ -105,8 +104,8 @@ DELETE Individual VNFInstance


DELETE Individual VNFInstance Conflict
DELETE Individual VNFInstance Conflict
     [Documentation]    Test ID: 7.3.1.2.8
     [Documentation]    Test ID: 7.3.1.2.8
    ...    Test title: DELETE Individual VNFInstance
    ...    Test title: DELETE Individual VNFInstance Conflict
    ...    Test objective: The objective is to verify that The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource. 
    ...    Test objective: The objective is to verify that the deletion cannot be executed currently, due to a conflict with the state of the VNF instance resource. 
    ...    Pre-conditions: VNF instance resource is in INSTANTIATED state
    ...    Pre-conditions: VNF instance resource is in INSTANTIATED state
    ...    Reference: section 5.4.3.3.5 - SOL003 v2.4.1
    ...    Reference: section 5.4.3.3.5 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
+3 −5
Original line number Original line Diff line number Diff line
@@ -14,7 +14,7 @@ Suite Setup Check resource existance
Post Retry operation task  
Post Retry operation task  
    [Documentation]    Test ID: 7.3.1.13.1
    [Documentation]    Test ID: 7.3.1.13.1
    ...    Test title: Post Retry operation task
    ...    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 has experienced a temporary failure
    ...    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 "FAILED_TEMP" state.
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
    ...    Reference:  section 5.4.14.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.14.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
@@ -25,9 +25,8 @@ Post Retry operation task
    Check Operation Occurrence Id
    Check Operation Occurrence Id


Post Retry operation task Conflict (Not-FAILED_TEMP)
Post Retry operation task Conflict (Not-FAILED_TEMP)
    # TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
    [Documentation]    Test ID: 7.3.1.13.2
    [Documentation]    Test ID: 7.3.1.13.2
    ...    Test title: Post Retry operation task
    ...    Test title: Post Retry operation task Conflict (Not-FAILED_TEMP)
    ...    Test objective: The objective is to test that the retry operation cannot be executed currently, due to a conflict with the state of the VNF instance resource. (i.e. the VNF instance resource is not in FAILED_TEMP state)
    ...    Test objective: The objective is to test that the retry operation cannot be executed currently, due to a conflict with the state of the VNF instance resource. (i.e. the VNF instance resource is not in FAILED_TEMP state)
    ...    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.14.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.14.3.1 - SOL003 v2.4.1
@@ -40,9 +39,8 @@ Post Retry operation task Conflict (Not-FAILED_TEMP)




Post Retry operation task Not Found
Post Retry operation task Not Found
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    [Documentation]    Test ID: 7.3.1.13.3
    [Documentation]    Test ID: 7.3.1.13.3
    ...    Test title: Post Retry operation task
    ...    Test title: Post Retry operation task Not Found
    ...    Test objective: The objective is to test that the retry operation cannot be executed because the operation is not supported
    ...    Test objective: The objective is to test that the retry operation cannot be executed because the operation is not supported
    ...    Pre-conditions: 
    ...    Pre-conditions: 
    ...    Reference:  section 5.4.14.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.14.3.1 - SOL003 v2.4.1
+4 −5
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@ Suite Setup Check resource existance
Post Rollback operation task  
Post Rollback operation task  
    [Documentation]    Test ID: 7.3.1.14.1
    [Documentation]    Test ID: 7.3.1.14.1
    ...    Test title: Post Rollback operation task
    ...    Test title: Post Rollback operation task
    ...    Test objective: The objective is to test that POST method The POST method initiates rollback a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    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.
    ...    Pre-conditions: the "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
    ...    Reference:  section 5.4.15.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.15.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
@@ -26,8 +26,8 @@ Post Rollback operation task
Post Rollback operation task Conflict (Not-FAILED_TEMP)
Post Rollback 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: 7.3.1.14.2
    [Documentation]    Test ID: 7.3.1.14.2
    ...    Test title: Post Rollback operation task
    ...    Test title: Post Rollback operation task Conflict (Not-FAILED_TEMP)
    ...    Test objective: The objective is to test that POST method The POST method initiates rollback a VNF lifecycle operation if that operation has experienced a temporary failure
    ...    Test objective: The objective is to test that POST method initiates a rollback on a VNF lifecycle operation 
    ...    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.15.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.15.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
@@ -39,9 +39,8 @@ Post Rollback operation task Conflict (Not-FAILED_TEMP)




Post Rollback operation task Not Found
Post Rollback operation task Not Found
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    [Documentation]    Test ID: 7.3.1.14.3
    [Documentation]    Test ID: 7.3.1.14.3
    ...    Test title: Post Rollback operation task
    ...    Test title: Post Rollback operation task Not Found
    ...    Test objective: The objective is to test that the retry operation cannot be executed because the operation is not supported
    ...    Test objective: The objective is to test that the retry operation cannot be executed because the operation is not supported
    ...    Pre-conditions: 
    ...    Pre-conditions: 
    ...    Reference:  section 5.4.15.3.1 - SOL003 v2.4.1
    ...    Reference:  section 5.4.15.3.1 - SOL003 v2.4.1
Loading