Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!58Master
Showing
with 52 additions and 33 deletions
......@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
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 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)
... Reference: section 5.3.10 - SOL003 v2.4.1
... Reference: section 5.4.17 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: NFVO is able to receive notifications from VNFM
... Post-Conditions: The VNF lifecycle management operation occurrence is in ROLLED_BACK state
......
......@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
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 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)
... Reference: section 5.3.3 - SOL003 v2.4.1
... Reference: section 5.4.11 - SOL003 v2.4.1
... 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)
... Post-Conditions: VNF instance still in INSTANTIATED state and external connectivity of the VNF is changed
......
......@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
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 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)
... Reference: section 5.4.2 - SOL003 v2.4.1
... Reference: section 5.3.1 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: NFVO is able to receive notifications from VNFM
... 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 Header Contains Location
Check Operation Notification For VNF Instance Creation
Check Postcondition VNF Instance Created NOT_INSTANTIATED
Check Postcondition VNF Instance Created status is NOT_INSTANTIATED
*** Keywords ***
Initialize System
Create Sessions
Check Postcondition VNF Instance Created
Check Postcondition VNF Instance Created status is
[Arguments] ${status}
Check VNF Instance ${vnfInstanceId}
Check HTTP Response Status Code Is 200
......
......@@ -16,7 +16,7 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
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 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)
......
......@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
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 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)
... Reference: section 5.3.10 - SOL003 v2.4.1
... Reference: section 5.4.16 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: NFVO is able to receive notifications from VNFM
... Post-Conditions: The VNF lifecycle management operation occurrence is in FAILED state
......
......@@ -16,11 +16,11 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Heal a VNF Instance
[Documentation] Test ID: 5.x.y.x
[Documentation] Test ID: 7.3.1.22
... Test title: Heal a VNF Instance
... Test objective: The objective is to heal a VNF instance.
... 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.9 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability: NFVO is able to receive notifications from VNFM. Heal a VNF instance is supported for the VNF (as capability in the VNFD)
... Post-Conditions: VNF instance still in INSTANTIATED state
......
......@@ -18,7 +18,7 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
*** Test Cases ***
VNF Instantiation
[Documentation] Test ID: 5.4.4.1
[Documentation] Test ID: 7.3.1.23
... Test title: VNF Instantiation worflow
... Test objective: The objective is to test the workflow for the instantiation of a VNF instance
... Pre-conditions: VNF instance resources is already created (Test ID: 5.4.2.1). NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
......
......@@ -16,7 +16,7 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Operate a VNF Instance
[Documentation] Test ID: 7.3.2.3.1
[Documentation] Test ID: 7.3.1.27
... Test title: Operate a VNF Instance
... Test objective: The objective is to change the operational state of a VNF instance.
... Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
......
......@@ -14,7 +14,7 @@ Library Process
*** Test Cases ***
Retry VNF LCM Operation - Successful
[Documentation] Test ID: 5.x.x.x
[Documentation] Test ID: 7.3.1.28
... Test title: Retry VNF LCM Operation - Successful
... Test objective: The objective is to test the workflow for a Retry VNF LCM Operation and the operation is successful
... 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)
......
......@@ -16,7 +16,7 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Roll back a VNF LCM Operation - Successful
[Documentation] Test ID: 5.x.x.x
[Documentation] Test ID: 7.3.1.29
... Test title: Roll back VNF LCM Operation - Successful
... Test objective: The objective is to test the workflow for a Rolling Back a VNF LCM Operation and the operation is successful
... 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)
......@@ -33,7 +33,7 @@ Roll back a VNF LCM Operation - Successful
Check Postcondition VNF Roll Back Successful
Retry VNF LCM Operation - Unsuccessful
[Documentation] Test ID: 5.x.x.x
[Documentation] Test ID: 7.3.1.30
... Test title: Retry VNF LCM Operation - Unsuccessful
... Test objective: The objective is to test the workflow for a Retry VNF LCM Operation and the operation is not successful
... 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)
......
......@@ -75,11 +75,11 @@ PUT Scale VNFInstance - Method not implemented
Check HTTP Response Status Code Is 405
PATCH Scale VNFInstance - Method not implemented
[Documentation] Test ID: 7.3.1.4.4
[Documentation] Test ID: 7.3.1.4.6
... Test title: PATCH Scale VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions:
... Reference: section 5.4.5.3.2 - SOL003 v2.4.1
... Reference: section 5.4.5.3.4 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions:
......@@ -87,11 +87,11 @@ PATCH Scale VNFInstance - Method not implemented
Check HTTP Response Status Code Is 405
DELETE Scale VNFInstance - Method not implemented
[Documentation] Test ID: 7.3.1.4.4
[Documentation] Test ID: 7.3.1.4.7
... Test title: DELETE Scale VNFInstance - Method not implemented
... Test objective: The objective is to verify that the method is not implemented
... Pre-conditions:
... Reference: section 5.4.5.3.2 - SOL003 v2.4.1
... Reference: section 5.4.5.3.5 - SOL003 v2.4.1
... Config ID: Config_prod_VNFM
... Applicability:
... Post-Conditions:
......
......@@ -10,13 +10,11 @@ Library BuiltIn
Library Collections
Library JSONLibrary
Library Process
Suite Setup Initialize System
Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
VNF Instance Scale To Level
[Documentation] Test ID: 5.4.6.1
[Documentation] Test ID: 7.3.1.31
... Test title: VNF Instance Scale To Level worflow
... Test objective: The objective is to test the workflow for the scale to level of a VNF instance
... Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.4.4.1). NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
......
......@@ -14,7 +14,7 @@ Library Process
*** Test Cases ***
VNF Instance Scale Out
[Documentation] Test ID: 5.4.5.1
[Documentation] Test ID: 7.3.1.32
... Test title: VNF Instance Scale Out worflow
... Test objective: The objective is to test the workflow for the scaling out a VNF instance
... Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.4.4.1). NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
......
......@@ -10,13 +10,11 @@ Library BuiltIn
Library Collections
Library JSONLibrary
Library Process
Suite Setup Initialize System
Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Terminate a VNF Instance
[Documentation] Test ID: 5.x.y.x
[Documentation] Test ID: 7.3.1.33
... Test title: Terminate a VNF Instance
... Test objective: The objective is to terminate a VNF instance.
... Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
......
......@@ -19,7 +19,7 @@ Post Cancel operation task
... Post-Conditions: NS instance status equal to FAILED_TEMP
POST Cancel operation task
Check HTTP Response Status Code Is 202
Check resource FAILED_TEMP
Check resource has a temporary failure
Post Cancel operation task Not Found
[Documentation] Test ID: 5.3.2.14.2
......
......@@ -19,7 +19,7 @@ Post Continue operation task
... Post-Conditions: NS instance status not equal to FAILED_TEMP
POST Continue operation task
Check HTTP Response Status Code Is 202
Check resource not FAILED_TEMP
Check resource has not a temporary failure
Post Continue operation task Not Found
[Documentation] Test ID: 5.3.2.12.2
......
......@@ -10,6 +10,14 @@ Library JSONSchemaLibrary schemas/
*** Test Cases ***
NS Instance Creation
[Documentation] Test ID: 5.3.2.18
... Test title: NS Instance Creation
... Test objective: The objective is to test the workflow for Creating a NS instance
... Pre-conditions: none
... Reference: section 6.4.2 - SOL003 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: The NS lifecycle management operation occurrence is in NOT_ISTANTIATED state
POST New nsInstance
Check HTTP Response Status Code Is 201
Check HTTP Response Header Contains Location
......
......@@ -5,10 +5,17 @@ Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Suite Setup Check resource existance
*** Test Cases ***
NS Instance Deletion
[Documentation] Test ID: 5.3.2.19
... Test title: NS Instance Deletion
... Test objective: The objective is to test the workflow for Deleting a NS instance
... Pre-conditions: the resource is in NOT_INSTANTIATED state
... Reference: section 6.4.2 - SOL003 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Check resource not_instantiated
DELETE IndividualNSInstance
Check HTTP Response Status Code Is 204
......
......@@ -19,7 +19,7 @@ Post Fail operation task
... Post-Conditions: none
POST Fail operation task
Check HTTP Response Status Code Is 202
Check resource not FAILED_TEMP
Check resource is finally failed
Post Fail operation task Not Found
......
......@@ -10,6 +10,14 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Heal Flow of NS lifecycle management operations
[Documentation] Test ID: 5.3.2.20
... Test title: Heal Flow of NS lifecycle management operations
... Test objective: The objective is to test the workflow for Healing a NS instance
... Pre-conditions: the resource is in INSTANTIATED state
... Reference: section 6.4.7 - SOL003 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Check resource instantiated
POST Heal NSInstance
Check HTTP Response Status Code Is 202
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment