From 95981c70650deb208ea96b3e45d9046fc546e666 Mon Sep 17 00:00:00 2001 From: aureliano sinatra <sinaure@gmail.com> Date: Fri, 19 Jul 2019 15:38:16 +0200 Subject: [PATCH] added workflow --- .../CancelOperationWorkflow.robot | 4 ++-- ...hangeExternalVNFConnectivityWorkflow.robot | 4 ++-- .../CreateVNFWorkflow.robot | 8 +++---- .../DeleteVNFWorkflow.robot | 2 +- .../FailOperationWorkflow.robot | 4 ++-- .../HealVNFWorkflow.robot | 4 ++-- .../InstantiateVNFTaskWorkflow.robot | 2 +- .../OperateVNFWorkflow.robot | 2 +- .../RetryOperationWorkflow.robot | 2 +- .../RollBackOperationWorkflow.robot | 4 ++-- .../ScaleVNFTask.robot | 8 +++---- .../ScaleVNFToLevelWorkflow.robot | 4 +--- .../ScaleVNFWorkflow.robot | 2 +- .../TerminatelVNFWorkflow.robot | 4 +--- .../CancelOperationTask.robot | 2 +- .../ContinueOperationTask.robot | 2 +- .../CreateNSInstanceWorkflow.robot | 8 +++++++ .../DeleteNSInstanceWorkflow.robot | 9 +++++++- .../FailOperationTask.robot | 2 +- .../HealNSTaskWorkflow.robot | 8 +++++++ .../IndividualNSLCMOccurences.robot | 17 +++++++-------- .../InstanciateNSTaskWorkflow.robot | 8 +++++++ .../NSLCMOperationKeywords.robot | 21 +++++++++++++++++++ .../RetryOperationTask.robot | 2 +- .../RollbackOperationTask.robot | 2 +- .../ScaleNSTask.robot | 3 ++- .../ScaleNSTaskWorkflow.robot | 8 +++++++ .../TerminateNSTask.robot | 3 +-- .../TerminateNSTaskWorkflow.robot | 8 +++++++ .../UpdateNSTaskWorkflow.robot | 8 +++++++ 30 files changed, 118 insertions(+), 47 deletions(-) diff --git a/SOL003/VNFLifecycleManagement-API/CancelOperationWorkflow.robot b/SOL003/VNFLifecycleManagement-API/CancelOperationWorkflow.robot index 76543397..9e2c4fb6 100644 --- a/SOL003/VNFLifecycleManagement-API/CancelOperationWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/CancelOperationWorkflow.robot @@ -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 diff --git a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityWorkflow.robot b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityWorkflow.robot index 6df7f084..8cf3a3e4 100644 --- a/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/ChangeExternalVNFConnectivityWorkflow.robot @@ -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 diff --git a/SOL003/VNFLifecycleManagement-API/CreateVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/CreateVNFWorkflow.robot index e9f0ebdd..a57cf83c 100644 --- a/SOL003/VNFLifecycleManagement-API/CreateVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/CreateVNFWorkflow.robot @@ -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 diff --git a/SOL003/VNFLifecycleManagement-API/DeleteVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/DeleteVNFWorkflow.robot index cd750fec..9eb68cd4 100644 --- a/SOL003/VNFLifecycleManagement-API/DeleteVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/DeleteVNFWorkflow.robot @@ -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) diff --git a/SOL003/VNFLifecycleManagement-API/FailOperationWorkflow.robot b/SOL003/VNFLifecycleManagement-API/FailOperationWorkflow.robot index 3134564f..dc3473e9 100644 --- a/SOL003/VNFLifecycleManagement-API/FailOperationWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/FailOperationWorkflow.robot @@ -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 diff --git a/SOL003/VNFLifecycleManagement-API/HealVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/HealVNFWorkflow.robot index cfdf607d..cbeefeba 100644 --- a/SOL003/VNFLifecycleManagement-API/HealVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/HealVNFWorkflow.robot @@ -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 diff --git a/SOL003/VNFLifecycleManagement-API/InstantiateVNFTaskWorkflow.robot b/SOL003/VNFLifecycleManagement-API/InstantiateVNFTaskWorkflow.robot index 978bdcc9..b5b91206 100644 --- a/SOL003/VNFLifecycleManagement-API/InstantiateVNFTaskWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/InstantiateVNFTaskWorkflow.robot @@ -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) diff --git a/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot index ca838cb2..ce64b4f3 100644 --- a/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/OperateVNFWorkflow.robot @@ -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) diff --git a/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot b/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot index ddcda353..e2dabd1f 100644 --- a/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/RetryOperationWorkflow.robot @@ -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) diff --git a/SOL003/VNFLifecycleManagement-API/RollBackOperationWorkflow.robot b/SOL003/VNFLifecycleManagement-API/RollBackOperationWorkflow.robot index d6652173..d1ba66d3 100644 --- a/SOL003/VNFLifecycleManagement-API/RollBackOperationWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/RollBackOperationWorkflow.robot @@ -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) diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot index 0d57c9fc..e8e23884 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot @@ -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: diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelWorkflow.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelWorkflow.robot index 6c168d34..40a71265 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFToLevelWorkflow.robot @@ -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) diff --git a/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot index 0198e5aa..bc24732a 100644 --- a/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/ScaleVNFWorkflow.robot @@ -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) diff --git a/SOL003/VNFLifecycleManagement-API/TerminatelVNFWorkflow.robot b/SOL003/VNFLifecycleManagement-API/TerminatelVNFWorkflow.robot index 02b8ce42..65c811cb 100644 --- a/SOL003/VNFLifecycleManagement-API/TerminatelVNFWorkflow.robot +++ b/SOL003/VNFLifecycleManagement-API/TerminatelVNFWorkflow.robot @@ -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) diff --git a/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot b/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot index 53ef3f9b..6ae9e02f 100644 --- a/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot b/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot index 80e0c93f..c4bccbd0 100644 --- a/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/CreateNSInstanceWorkflow.robot b/SOL005/NSLifecycleManagement-API/CreateNSInstanceWorkflow.robot index 2f05ae3c..c2d82ff3 100644 --- a/SOL005/NSLifecycleManagement-API/CreateNSInstanceWorkflow.robot +++ b/SOL005/NSLifecycleManagement-API/CreateNSInstanceWorkflow.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/DeleteNSInstanceWorkflow.robot b/SOL005/NSLifecycleManagement-API/DeleteNSInstanceWorkflow.robot index dc855c0c..c813e737 100644 --- a/SOL005/NSLifecycleManagement-API/DeleteNSInstanceWorkflow.robot +++ b/SOL005/NSLifecycleManagement-API/DeleteNSInstanceWorkflow.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/FailOperationTask.robot b/SOL005/NSLifecycleManagement-API/FailOperationTask.robot index 1f8a95d1..305f1c6f 100644 --- a/SOL005/NSLifecycleManagement-API/FailOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/FailOperationTask.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/HealNSTaskWorkflow.robot b/SOL005/NSLifecycleManagement-API/HealNSTaskWorkflow.robot index c3aee5c2..8ee8dac1 100644 --- a/SOL005/NSLifecycleManagement-API/HealNSTaskWorkflow.robot +++ b/SOL005/NSLifecycleManagement-API/HealNSTaskWorkflow.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot b/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot index 1321eef1..33661f45 100644 --- a/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot +++ b/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/InstanciateNSTaskWorkflow.robot b/SOL005/NSLifecycleManagement-API/InstanciateNSTaskWorkflow.robot index 26c16255..f86496c3 100644 --- a/SOL005/NSLifecycleManagement-API/InstanciateNSTaskWorkflow.robot +++ b/SOL005/NSLifecycleManagement-API/InstanciateNSTaskWorkflow.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot index a22b6449..fd1b42ed 100644 --- a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot +++ b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot @@ -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}"} diff --git a/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot b/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot index 7ac47b1f..9d0996ee 100644 --- a/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot b/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot index 9f2598eb..1d2c490d 100644 --- a/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot b/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot index 02f83863..edb5c645 100644 --- a/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot +++ b/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/ScaleNSTaskWorkflow.robot b/SOL005/NSLifecycleManagement-API/ScaleNSTaskWorkflow.robot index 82d25055..1dc390f8 100644 --- a/SOL005/NSLifecycleManagement-API/ScaleNSTaskWorkflow.robot +++ b/SOL005/NSLifecycleManagement-API/ScaleNSTaskWorkflow.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot b/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot index 8cd3f471..3c86f346 100644 --- a/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot +++ b/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/TerminateNSTaskWorkflow.robot b/SOL005/NSLifecycleManagement-API/TerminateNSTaskWorkflow.robot index ee1882e6..53c95290 100644 --- a/SOL005/NSLifecycleManagement-API/TerminateNSTaskWorkflow.robot +++ b/SOL005/NSLifecycleManagement-API/TerminateNSTaskWorkflow.robot @@ -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 diff --git a/SOL005/NSLifecycleManagement-API/UpdateNSTaskWorkflow.robot b/SOL005/NSLifecycleManagement-API/UpdateNSTaskWorkflow.robot index d4e480ed..7553a86f 100644 --- a/SOL005/NSLifecycleManagement-API/UpdateNSTaskWorkflow.robot +++ b/SOL005/NSLifecycleManagement-API/UpdateNSTaskWorkflow.robot @@ -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 -- GitLab