Commit b3c7c4d9 authored by sinatra's avatar sinatra
Browse files

Merge branch 'feature/refactoring' into 'master'

added workflow

See merge request stf/stf-557/api-tests!7
parents 583f1904 95981c70
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true


*** Test Cases ***
*** Test Cases ***
Cancel a VNF LCM Operation - STARTING
Cancel a VNF LCM Operation - STARTING
    [Documentation]    Test ID: 7.3.1.2.1
    [Documentation]    Test ID: 7.3.1.25
    ...    Test title: Cancel a VNF LCM Operation
    ...    Test title: Cancel a VNF LCM Operation
    ...    Test objective: The objective is to test the workflow for Cancelling a VNF LCM Operation
    ...    Test objective: The objective is to test the workflow for Cancelling a VNF LCM Operation
    ...    Pre-conditions: The VNF lifecycle management operation occurrence is in STARTING state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
    ...    Pre-conditions: The VNF lifecycle management operation occurrence is in STARTING state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
    ...    Reference: section 5.3.10 - SOL003 v2.4.1
    ...    Reference: section 5.4.17 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    Post-Conditions: The VNF lifecycle management operation occurrence is in ROLLED_BACK state
    ...    Post-Conditions: The VNF lifecycle management operation occurrence is in ROLLED_BACK state
+2 −2
Original line number Original line Diff line number Diff line
@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true


*** Test Cases ***
*** Test Cases ***
Operate a VNF Instance
Operate a VNF Instance
    [Documentation]    Test ID: 7.3.5.4.1
    [Documentation]    Test ID: 7.3.1.24
    ...    Test title: Change the external connectivity of a VNF instance
    ...    Test title: Change the external connectivity of a VNF instance
    ...    Test objective: The objective is to change the external connectivity of a VNF instance.
    ...    Test objective: The objective is to change the external connectivity of a VNF instance.
    ...    Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
    ...    Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
    ...    Reference: section 5.3.3 - SOL003 v2.4.1
    ...    Reference: section 5.4.11 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM. Change the external connectivity of a VNF instance is supported for the VNF (as capability in the VNFD)
    ...    Applicability: NFVO is able to receive notifications from VNFM. Change the external connectivity of a VNF instance is supported for the VNF (as capability in the VNFD)
    ...    Post-Conditions: VNF instance still in INSTANTIATED state and external connectivity of the VNF is changed
    ...    Post-Conditions: VNF instance still in INSTANTIATED state and external connectivity of the VNF is changed
+4 −4
Original line number Original line Diff line number Diff line
@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true


*** Test Cases ***
*** Test Cases ***
Create VNF Instance Resource
Create VNF Instance Resource
    [Documentation]    Test ID: 5.3.1.1
    [Documentation]    Test ID: 7.3.1.20
    ...    Test title: Create VNF Instance workflow
    ...    Test title: Create VNF Instance workflow
    ...    Test objective: The objective is to test the workflow for the creation of a new VNF instance resource.
    ...    Test objective: The objective is to test the workflow for the creation of a new VNF instance resource.
    ...    Pre-conditions: NFVO is subscribed to VNF Identifier Creation notifications (Test ID: 5.4.20.2)
    ...    Pre-conditions: NFVO is subscribed to VNF Identifier Creation notifications (Test ID: 5.4.20.2)
    ...    Reference: section 5.4.2 - SOL003 v2.4.1
    ...    Reference: section 5.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    Post-Conditions: The VNF instance resource has been created in "NOT_INSTANTIATED" state.
    ...    Post-Conditions: The VNF instance resource has been created in "NOT_INSTANTIATED" state.
@@ -28,14 +28,14 @@ Create VNF Instance Resource
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location 
    Check HTTP Response Header Contains    Location 
    Check Operation Notification For VNF Instance Creation
    Check Operation Notification For VNF Instance Creation
    Check Postcondition VNF Instance Created  NOT_INSTANTIATED
    Check Postcondition VNF Instance Created status is  NOT_INSTANTIATED


*** Keywords ***
*** Keywords ***


Initialize System
Initialize System
    Create Sessions
    Create Sessions


Check Postcondition VNF Instance Created
Check Postcondition VNF Instance Created status is
    [Arguments]    ${status}
    [Arguments]    ${status}
    Check VNF Instance    ${vnfInstanceId}
    Check VNF Instance    ${vnfInstanceId}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ Suite Teardown Terminate All Processes kill=true


*** Test Cases ***
*** Test Cases ***
Delete VNF Instance Resource
Delete VNF Instance Resource
    [Documentation]    Test ID: 5.3.2.1
    [Documentation]    Test ID: 7.3.1.21
    ...    Test title: Delete VNF Instance workflow
    ...    Test title: Delete VNF Instance workflow
    ...    Test objective: The objective is to test the workflow for the deleteion of an existing VNF instance resource
    ...    Test objective: The objective is to test the workflow for the deleteion of an existing VNF instance resource
    ...    Pre-conditions: The VNF Instance resource is in NOT_INSTANTIATED state. NFVO is subscribed to VNF Identifier Creation notifications (Test ID: 5.4.20.2)
    ...    Pre-conditions: The VNF Instance resource is in NOT_INSTANTIATED state. NFVO is subscribed to VNF Identifier Creation notifications (Test ID: 5.4.20.2)
+2 −2
Original line number Original line Diff line number Diff line
@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true


*** Test Cases ***
*** Test Cases ***
Fail VNF LCM Operation
Fail VNF LCM Operation
    [Documentation]    Test ID: 5.x.x.x
    [Documentation]    Test ID: 7.3.1.22
    ...    Test title: Fail a VNF LCM Operation
    ...    Test title: Fail a VNF LCM Operation
    ...    Test objective: The objective is to test the workflow for a Fail VNF LCM Operation
    ...    Test objective: The objective is to test the workflow for a Fail VNF LCM Operation
    ...    Pre-conditions: The VNF lifecycle management operation occurrence is in FAILED_TEMP state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
    ...    Pre-conditions: The VNF lifecycle management operation occurrence is in FAILED_TEMP state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
    ...    Reference: section 5.3.10 - SOL003 v2.4.1
    ...    Reference: section 5.4.16 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    Post-Conditions: The VNF lifecycle management operation occurrence is in FAILED state
    ...    Post-Conditions: The VNF lifecycle management operation occurrence is in FAILED state
Loading