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 66 additions and 14 deletions
......@@ -19,9 +19,9 @@ Post Individual NS LCM occurences - Method not implemented
POST Individual NS LCM OP Occurence
Check HTTP Response Status Code Is 405
Get stauts information about Individual NS LCM OP OCC
Get status information about Individual NS LCM OP OCC
[Documentation] Test ID: 5.3.2.9.2
... Test title: Get stauts information about Individual NS LCM OP OCC
... Test title: Get status information about Individual NS LCM OP OCC
... Test objective: The objective is to test that GET method return the LCM occurrence of the NS
... Pre-conditions: none
... Reference: section 6.4.10.3.2 - SOL005 v2.4.1
......@@ -30,12 +30,11 @@ Get stauts information about Individual NS LCM OP OCC
... Post-Conditions: none
GET Individual NS LCN OP Occurence
Check HTTP Response Status Code Is 200
Check HTTP Response Header ContentType is ${CONTENT_TYPE}
Check HTTP Response Body Json Schema Is NsLcmOpOcc
PUT stauts information about Individual NS LCM OP OCC - Method not implemented
PUT status information about Individual NS LCM OP OCC - Method not implemented
[Documentation] Test ID: 5.3.2.9.3
... Test title: PUT stauts information about Individual NS LCM OP OCC - Method not implemented
... Test title: PUT status information about Individual NS LCM OP OCC - Method not implemented
... Test objective: The objective is to test that PUT method is not implemented
... Pre-conditions: none
... Reference: section 6.4.10.3.3 - SOL005 v2.4.1
......@@ -45,9 +44,9 @@ PUT stauts information about Individual NS LCM OP OCC - Method not implemented
PUT Individual NS LCM OP Occurence
Check HTTP Response Status Code Is 405
PATCH stauts information about Individual NS LCM OP OCC - Method not implemented
PATCH status information about Individual NS LCM OP OCC - Method not implemented
[Documentation] Test ID: 5.3.2.9.4
... Test title: PATCH stauts information about Individual NS LCM OP OCC - Method not implemented
... Test title: PATCH status information about Individual NS LCM OP OCC - Method not implemented
... Test objective: The objective is to test that PATCH method is not implemented
... Pre-conditions: none
... Reference: section 6.4.10.3.4 - SOL005 v2.4.1
......@@ -57,9 +56,9 @@ PATCH stauts information about Individual NS LCM OP OCC - Method not implemented
PATCH Individual NS LCM OP Occurence
Check HTTP Response Status Code Is 405
DELETE stauts information about Individual NS LCM OP OCC - Method not implemented
DELETE status information about Individual NS LCM OP OCC - Method not implemented
[Documentation] Test ID: 5.3.2.9.5
... Test title: DELETE stauts information about Individual NS LCM OP OCC - Method not implemented
... Test title: DELETE status information about Individual NS LCM OP OCC - Method not implemented
... Test objective: The objective is to test that DELETE method is not implemented
... Pre-conditions: none
... Reference: section 6.4.10.3.5 - SOL005 v2.4.1
......
......@@ -10,6 +10,14 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Instantiate Flow of NS lifecycle management operations
[Documentation] Test ID: 5.3.2.21
... Test title: Instantiate Flow of NS lifecycle management operations
... Test objective: The objective is to test the workflow for Instantiate a NS instance
... Pre-conditions: the resource is in NOT_INSTANTIATED state
... Reference: section 6.4.4 - SOL003 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: the resource is in INSTANTIATED state
Check resource existance
Check resource not_instantiated
POST Instatiate nsInstance
......
......@@ -114,6 +114,27 @@ Check resource not_instantiated
Get ${apiRoot}/${apiName}/${apiVersion}/ns_instances/${nsInstanceId}
String response body instantiationState NOT_INSTANTIATED
Check resource has a temporary failure
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/ns_instances/${nsInstanceId}
String response body instantiationState FAILED_TEMP
Check resource has not a temporary failure
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/ns_instances/${nsInstanceId}
String response body instantiationState != FAILED_TEMP
Check resource is finally failed
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/${apiVersion}/ns_instances/${nsInstanceId}
String response body instantiationState FINALLY_FAILED
Launch another LCM operation
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE}"}
......
......@@ -20,7 +20,7 @@ Post Retry operation task
POST Retry operation task
Check HTTP Response Status Code Is 202
Check HTTP Response Header Contains Location
Check resource not FAILED_TEMP
Check resource has not a temporary failure
Post Retry operation task Not Found
[Documentation] Test ID: 5.3.2.10.2
......
......@@ -19,7 +19,7 @@ Post Rollback operation task
... Post-Conditions: NS instance status not equal to FAILED_TEMP
POST Rollback operation task
Check HTTP Response Status Code Is 202
Check resource has not a temporary failure
Post Rollback operation task Not Found
[Documentation] Test ID: 5.3.2.11.2
......
......@@ -20,7 +20,8 @@ POST Scale a nsInstance
POST scale nsInstance
Check HTTP Response Status Code Is 202
Check HTTP Response Header Contains Location
Check resource existance
POST Instantiate a nsInstance Conflict
[Documentation] Test ID: 5.3.2.4.2
... Test title: POST Instantiate a nsInstance Conflict
......
......@@ -10,6 +10,14 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Scale Flow of NS lifecycle management operations
[Documentation] Test ID: 5.3.2.22
... Test title: Instantiate Flow of NS lifecycle management operations
... Test objective: The objective is to test the workflow for Instantiate a NS instance
... Pre-conditions: the resource is in NOT_INSTANTIATED state
... Reference: section 6.4.5 - SOL003 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: the resource is in INSTANTIATED state
Check resource existance
Check resource instantiated
POST scale nsInstance
......
......@@ -5,7 +5,6 @@ Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}
Library OperatingSystem
Library JSONLibrary
Library JSONSchemaLibrary schemas/
Suite Setup Check resource existance
*** Test Cases ***
POST Terminate a NSInstance
......@@ -20,7 +19,7 @@ POST Terminate a NSInstance
POST Terminate NSInstance
Check HTTP Response Status Code Is 202
Check HTTP Response Header Contains Location
Check resource NOT_INSTANTIATED
Check resource not_instantiated
POST Terminate a NSInstance Conflict
[Documentation] Test ID: 5.3.2.7.2
......
......@@ -10,6 +10,14 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Terminate Flow of NS lifecycle management operations
[Documentation] Test ID: 5.3.2.23
... Test title: Terminate Flow of NS lifecycle management operations
... Test objective: The objective is to test the workflow for Terminate a NS instance
... Pre-conditions: the resource is in INSTANTIATED state
... Reference: section 6.4.8 - SOL003 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: the resource is in NOT_INSTANTIATED state
Check resource existance
Check resource instantiated
POST Terminate NSInstance
......
......@@ -10,6 +10,14 @@ Suite Teardown Terminate All Processes kill=true
*** Test Cases ***
Update Flow of NS lifecycle management operations
[Documentation] Test ID: 5.3.2.24
... Test title: Update Flow of NS lifecycle management operations
... Test objective: The objective is to test the workflow for Update a NS instance
... Pre-conditions: the resource is in INSTANTIATED state
... Reference: section 6.4.6 - SOL003 v2.4.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: the resource is in INSTANTIATED state
Check resource existance
Check resource instantiated
POST Update NSInstance
......
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