diff --git a/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot b/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot index 43a4c7ecddb368de5edc55f1927504b5762e487c..5098d591b4a4350d1203ae4cac5ff32cdb7534c8 100644 --- a/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/CancelOperationTask.robot @@ -9,39 +9,92 @@ Library JSONSchemaLibrary schemas/ *** Test Cases *** Post Cancel operation task + [Documentation] Test ID: 5.3.2.14.1 + ... Test title: Post Cancel operation task + ... Test objective: The objective is to test that POST method cancel an LCM operation + ... Pre-conditions: NS instance status equal to STARTING, PROCESSING or ROLLING_BACK + ... Reference: section 6.4.15.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test Check resource FAILED_TEMP POST Cancel operation task Check HTTP Response Status Code Is 202 Post Cancel operation task Not Found + [Documentation] Test ID: 5.3.2.14.2 + ... Test title: Post Cancel operation task Not Found + ... Test objective: The objective is to test that POST method fail if LCM operation not found + ... Pre-conditions: none + ... Reference: section 6.4.15.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none [Setup] Check Cancel not supported POST Cancel operation task Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails Post Cancel operation task Conflict + [Documentation] Test ID: 5.3.2.14.3 + ... Test title: Post Cancel operation task Conflict + ... Test objective: The objective is to test that POST method fail if a status conflict exist on LCM operation + ... Pre-conditions: none + ... Reference: section 6.4.15.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test failure Check resource FAILED_TEMP POST Cancel operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails + +GET Cancel operation task - Method not implemented + [Documentation] Test ID: 5.3.2.14.4 + ... Test title: GET Cancel operation task - Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.15.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Cancel operation task + Check HTTP Response Status Code Is 405 PUT Cancel operation task - Method not implemented + [Documentation] Test ID: 5.3.2.14.5 + ... Test title: PUT Cancel operation task - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.15.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Cancel operation task Check HTTP Response Status Code Is 405 PATCH Cancel operation task - Method not implemented + [Documentation] Test ID: 5.3.2.14.6 + ... Test title: PATCH Cancel operation task - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.15.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Cancel operation task Check HTTP Response Status Code Is 405 DELETE Cancel operation task - Method not implemented + [Documentation] Test ID: 5.3.2.14.7 + ... Test title: DELETE Cancel operation task - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.15.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Cancel operation task Check HTTP Response Status Code Is 405 -GET Cancel operation task - Method not implemented - GET Cancel operation task - Check HTTP Response Status Code Is 405 - - - - \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot b/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot index 6734bf0787d697a848e11e73ff5593ff0af31916..f36f78bc9d82514c680eb2fb5652f2d2be7d87f7 100644 --- a/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/ContinueOperationTask.robot @@ -9,37 +9,93 @@ Library JSONSchemaLibrary schemas/ *** Test Cases *** Post Continue operation task + [Documentation] Test ID: 5.3.2.12.1 + ... Test title: Post Continue operation task + ... Test objective: The objective is to test that POST method trigger a continue on the LCM operation + ... Pre-conditions: NS instance status equal to FAILED_TEMP + ... Reference: section 6.4.13.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test Check resource FAILED_TEMP POST Continue operation task Check HTTP Response Status Code Is 202 Post Continue operation task Not Found + [Documentation] Test ID: 5.3.2.12.2 + ... Test title: Post Continue operation task Not Found + ... Test objective: The objective is to test that POST method fail if operation is not found + ... Pre-conditions: none + ... Reference: section 6.4.13.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none [Setup] Check Continue not supported POST Continue operation task Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails Post Continue operation task Conflict + [Documentation] Test ID: 5.3.2.12.3 + ... Test title: Post Continue operation task Conflict + ... Test objective: The objective is to test that POST method fail in case of operation status conflict + ... Pre-conditions: none + ... Reference: section 6.4.13.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test failure Check resource FAILED_TEMP POST Continue operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails +GET Continue operation task - Method not implemented + [Documentation] Test ID: 5.3.2.12.4 + ... Test title: GET Continue operation task - Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.13.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Continue operation task + Check HTTP Response Status Code Is 405 + PUT Continue operation task - Method not implemented + [Documentation] Test ID: 5.3.2.13.5 + ... Test title: PUT Continue operation task - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.13.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Continue operation task Check HTTP Response Status Code Is 405 PATCH Continue operation task - Method not implemented + [Documentation] Test ID: 5.3.2.13.5 + ... Test title: PATCH Continue operation task - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.14.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Continue operation task Check HTTP Response Status Code Is 405 DELETE Continue operation task - Method not implemented + [Documentation] Test ID: 5.3.2.13.5 + ... Test title: DELETE Continue operation task - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.14.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Continue operation task Check HTTP Response Status Code Is 405 -GET Continue operation task - Method not implemented - GET Continue operation task - Check HTTP Response Status Code Is 405 - \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/FailOperationTask.robot b/SOL005/NSLifecycleManagement-API/FailOperationTask.robot index b86573d3c83c5023af15a5982a07029a932bc513..3853ed3e7312e243b0bf350baed3b8e45d3cb350 100644 --- a/SOL005/NSLifecycleManagement-API/FailOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/FailOperationTask.robot @@ -9,38 +9,92 @@ Library JSONSchemaLibrary schemas/ *** Test Cases *** Post Fail operation task + [Documentation] Test ID: 5.3.2.13.1 + ... Test title: Post Fail operation task + ... Test objective: The objective is to test that POST method trigger a state change to "finally failed" on the LCM operation + ... Pre-conditions: NS instance status equal to FAILED_TEMP + ... Reference: section 6.4.14.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test Check resource FAILED_TEMP POST Fail operation task Check HTTP Response Status Code Is 202 Post Fail operation task Not Found + [Documentation] Test ID: 5.3.2.13.2 + ... Test title: Post Fail operation task Not Found + ... Test objective: The objective is to test that POST method fail if the LCM operation is not found + ... Pre-conditions: none + ... Reference: section 6.4.14.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none [Setup] Check Fail not supported POST Fail operation task Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails Post Fail operation task Conflict + [Documentation] Test ID: 5.3.2.13.3 + ... Test title: Post Fail operation task Conflict + ... Test objective: The objective is to test that POST method fail in case of status conflict on the LCM operation + ... Pre-conditions: none + ... Reference: section 6.4.14.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test failure Check resource FAILED_TEMP POST Fail operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails + +GET Fail operation task - Method not implemented + [Documentation] Test ID: 5.3.2.13.4 + ... Test title: GET Fail operation task - Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.14.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Fail operation task + Check HTTP Response Status Code Is 405 PUT Fail operation task - Method not implemented + [Documentation] Test ID: 5.3.2.13.5 + ... Test title: PUT Fail operation task - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.14.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Fail operation task Check HTTP Response Status Code Is 405 PATCH Fail operation task - Method not implemented + [Documentation] Test ID: 5.3.2.13.6 + ... Test title: PATCH Fail operation task - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.14.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Fail operation task Check HTTP Response Status Code Is 405 DELETE Fail operation task - Method not implemented + [Documentation] Test ID: 5.3.2.13.7 + ... Test title: DELETE Fail operation task - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.14.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Fail operation task Check HTTP Response Status Code Is 405 -GET Fail operation task - Method not implemented - GET Fail operation task - Check HTTP Response Status Code Is 405 - - - \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/HealNSTask.robot b/SOL005/NSLifecycleManagement-API/HealNSTask.robot index 3a5e3f00927a60056a14235cc8fe5f7d7d3e2ed7..442089bde0cdd0b37d434c60e95aa0617cf75369 100644 --- a/SOL005/NSLifecycleManagement-API/HealNSTask.robot +++ b/SOL005/NSLifecycleManagement-API/HealNSTask.robot @@ -8,12 +8,28 @@ Library JSONSchemaLibrary schemas/ Suite Setup Check resource existance *** Test Cases *** -Heal a NSInstance +POST Heal a NSInstance + [Documentation] Test ID: 5.3.2.6.1 + ... Test title: POST Heal a NSInstance + ... Test objective: The objective is to test that POST method allow to create a Heal NS instance + ... Pre-conditions: none + ... Reference: section 6.4.7.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The Heal NS instance is created on the NFVO POST Heal NSInstance Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location -Heal a NSInstance Conflict +POST Heal a NSInstance Conflict + [Documentation] Test ID: 5.3.2.6.2 + ... Test title: POST Heal a NSInstance Conflict + ... Test objective: The objective is to test that POST method fail if NS instance is not in NOT_INSTANTIATE state + ... Pre-conditions: none + ... Reference: section 6.4.7.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The Heal NS instance is not created on the NFVO [Setup] Check resource not_instantiated POST Heal NSInstance Check HTTP Response Status Code Is 409 @@ -21,18 +37,50 @@ Heal a NSInstance Conflict Check HTTP Response Body Json Schema Is ProblemDetails GET Heal NSInstance- Method not implemented + [Documentation] Test ID: 5.3.2.6.3 + ... Test title: GET Heal NSInstance- Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.7.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET Heal NSInstance Check HTTP Response Status Code Is 405 PUT Heal NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.6.4 + ... Test title: PUT Heal NSInstance - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.7.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Heal NSInstance Check HTTP Response Status Code Is 405 PATCH Heal NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.6.4 + ... Test title: PATCH Heal NSInstance - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.7.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Heal NSInstance Check HTTP Response Status Code Is 405 DELETE Heal NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.6.4 + ... Test title: DELETE Heal NSInstance - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.7.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Heal NSInstance Check HTTP Response Status Code Is 405 diff --git a/SOL005/NSLifecycleManagement-API/IndividualNSInstance.robot b/SOL005/NSLifecycleManagement-API/IndividualNSInstance.robot index 16850e75e4816e4cfedaa02c533c08f6df50e770..e994731fc116f531cd70580569848192748cb80e 100644 --- a/SOL005/NSLifecycleManagement-API/IndividualNSInstance.robot +++ b/SOL005/NSLifecycleManagement-API/IndividualNSInstance.robot @@ -8,29 +8,77 @@ Library JSONSchemaLibrary schemas/ Suite Setup Check resource existance *** Test Cases *** -Post Individual VNFInstance - Method not implemented +Post Individual NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.2.1 + ... Test title: Post Individual NSInstance - Method not implemented + ... Test objective: The objective is to test that POST method is not allowed to create a new NS instance + ... Pre-conditions: none + ... Reference: section 6.4.3.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not created on the NFVO POST IndividualNSInstance Check HTTP Response Status Code Is 405 Get Information about an individual NS Instance + [Documentation] Test ID: 5.3.2.2.2 + ... Test title: Get Information about an individual NS Instance + ... Test objective: The objective is to test that GET method allow to query an NS instance + ... Pre-conditions: none + ... Reference: section 6.4.3.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET IndividualNSInstance Check HTTP Response Status Code Is 200 Check HTTP Response Header ContentType is ${CONTENT_TYPE} Check HTTP Response Body Json Schema Is NsInstance PUT Individual NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.2.3 + ... Test title: PUT Individual NSInstance - Method not implemented + ... Test objective: The objective is to test that PUT method is not allowed to create a new NS instance + ... Pre-conditions: none + ... Reference: section 6.4.3.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not modified on the NFVO PUT IndividualNSInstance Check HTTP Response Status Code Is 405 PATCH Individual NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.2.4 + ... Test title: PATCH Individual NSInstance - Method not implemented + ... Test objective: The objective is to test that PATCH method is not allowed to create a new NS instance + ... Pre-conditions: none + ... Reference: section 6.4.3.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not modified on the NFVO PATCH IndividualNSInstance Check HTTP Response Status Code Is 405 DELETE Individual NSInstance + [Documentation] Test ID: 5.3.2.2.5 + ... Test title: DELETE Individual NSInstance + ... Test objective: The objective is to test that DELETE method is allowed to delete a NS instance + ... Pre-conditions: none. + ... Reference: section 6.4.3.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is deleted from the NFVO DELETE IndividualNSInstance Check HTTP Response Status Code Is 204 DELETE Individual NSInstance Conflict + [Documentation] Test ID: 5.3.2.2.5 + ... Test title: DELETE Individual NSInstance Conflict + ... Test objective: The objective is to test that DELETE method is allowed to delete a NS instance + ... Pre-conditions: At least one running instance of a NS + ... Reference: section 6.4.3.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is deleted from the NFVO [Setup] Check resource instantiated DELETE IndividualNSInstance Check HTTP Response Status Code Is 409 diff --git a/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot b/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot index b51d2b148442f8ffa8682ad223bb5568e0093767..1321eef1f1dad98473d64571ef05db865668fd3b 100644 --- a/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot +++ b/SOL005/NSLifecycleManagement-API/IndividualNSLCMOccurences.robot @@ -8,26 +8,68 @@ Library JSONSchemaLibrary schemas/ *** Test Cases *** Post Individual NS LCM occurences - Method not implemented + [Documentation] Test ID: 5.3.2.9.1 + ... Test title: Post Individual NS LCM occurences - Method not implemented + ... Test objective: The objective is to test that POST method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.10.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none POST Individual NS LCM OP Occurence Check HTTP Response Status Code Is 405 +Get stauts 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 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 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... 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 + [Documentation] Test ID: 5.3.2.9.3 + ... Test title: PUT stauts 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 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none 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 + [Documentation] Test ID: 5.3.2.9.4 + ... Test title: PATCH stauts 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 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none 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 + [Documentation] Test ID: 5.3.2.9.5 + ... Test title: DELETE stauts 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 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Individual NS LCM OP Occurence Check HTTP Response Status Code Is 405 -Get stauts information about Individual NS LCM OP OCC - 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 + \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/IndividualSubscription.robot b/SOL005/NSLifecycleManagement-API/IndividualSubscription.robot index 6d734b9068d1695d7aa5ed37c0d09e897f6bebef..063e1506feba5b48138e53092a79f30ca0b4f579 100644 --- a/SOL005/NSLifecycleManagement-API/IndividualSubscription.robot +++ b/SOL005/NSLifecycleManagement-API/IndividualSubscription.robot @@ -10,22 +10,62 @@ Suite Setup Check subscription existance *** Test Cases *** Post Individual Subscription - Method not implemented + [Documentation] Test ID: 5.3.2.16.1 + ... Test title: Post Individual Subscription - Method not implemented + ... Test objective: The objective is to test that POST method is not allowed to create a new NS lifecycle management subscription + ... Pre-conditions: none + ... Reference: section 6.4.17.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS lifecycle management subscription is not created on the NFVO POST Individual Subscription Check HTTP Response Status Code Is 405 Get Information about an individual subscription + [Documentation] Test ID: 5.3.2.16.2 + ... Test title: Get Information about an individual subscription + ... Test objective: The objective is to test the retrieval of NS lifecycle management subscription and perform a JSON schema validation of the returned subscription data structure + ... Pre-conditions: none + ... Reference: section 6.4.17.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET Individual subscription Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is subscription PUT an individual subscription - Method not implemented + [Documentation] Test ID: 5.3.2.16.3 + ... Test title: PUT an individual subscription - Method not implemented + ... Test objective: The objective is to test that PUT method is not allowed to modify a NS lifecycle management subscription + ... Pre-conditions: none + ... Reference: section 6.4.17.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS lifecycle management subscription is not modified by the operation PUT Individual Subscription Check HTTP Response Status Code Is 405 PATCH an individual subscription - Method not implemented + [Documentation] Test ID: 5.3.2.16.4 + ... Test title: PATCH an individual subscription - Method not implemented + ... Test objective: The objective is to test that PATCH method is not allowed to modify a new NS lifecycle management subscription + ... Pre-conditions: none + ... Reference: section 6.4.17.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS lifecycle management subscription is not modified by the operation PATCH Individual Subscription Check HTTP Response Status Code Is 405 DELETE an individual subscription + [Documentation] Test ID: 5.3.2.16.5 + ... Test title: DELETE an individual subscription + ... Test objective: The objective is to test the deletion of an individual NS lifecycle management subscription + ... Pre-conditions: At least one lifecycle management subscription is available in the NFVO + ... Reference: section 6.4.17.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS lifecycle management subscription is not available anymore on NFVO DELETE Individual Subscription Check HTTP Response Status Code Is 204 \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/InstantiateNSTask.robot b/SOL005/NSLifecycleManagement-API/InstantiateNSTask.robot index a297dfe3ce17c05a05728a8611d95eff78a7c775..9d4a26a65bcf54b1a8c9e62931e893f88a5c9620 100644 --- a/SOL005/NSLifecycleManagement-API/InstantiateNSTask.robot +++ b/SOL005/NSLifecycleManagement-API/InstantiateNSTask.robot @@ -8,29 +8,77 @@ Library JSONSchemaLibrary schemas/ Suite Setup Check resource existance *** Test Cases *** -Instantiate a nsInstance +Post Instantiate a nsInstance + [Documentation] Test ID: 5.3.2.3.1 + ... Test title: Post Instantiate a nsInstance + ... Test objective: The objective is to test that POST method allow to create a new NS instance + ... Pre-conditions: none + ... Reference: section 6.4.4.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is created on the NFVO POST Instatiate nsInstance Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location -Instantiate a nsInstance Conflict +Post Instantiate a nsInstance Conflict + [Documentation] Test ID: 5.3.2.3.2 + ... Test title: Post Instantiate a nsInstance Conflict + ... Test objective: The objective is to test that the operation can't be performed due to a conflict with the state of resource + ... Pre-conditions: none + ... Reference: section 6.4.4.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not instantiated on the NFVO [Setup] Check resource instantiated POST Instatiate nsInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails GET Instantiate NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.3.3 + ... Test title: GET Instantiate NSInstance - Method not implemented + ... Test objective: The objective is to test that the operation can't be performed due because method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.4.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none. GET Instantiate NSInstance Check HTTP Response Status Code Is 405 PUT Instantiate NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.3.4 + ... Test title: PUT Instantiate NSInstance - Method not implemented + ... Test objective: The objective is to test that the operation can't be performed due because method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.4.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not modified on the NFVO PUT Instantiate NSInstance Check HTTP Response Status Code Is 405 PATCH Instantiate NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.3.5 + ... Test title: PATCH Instantiate NSInstance - Method not implemented + ... Test objective: The objective is to test that the operation can't be performed due because method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.4.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not modified on the NFVO PATCH Instantiate NSInstance Check HTTP Response Status Code Is 405 DELETE Instantiate NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.3.6 + ... Test title: DELETE Instantiate NSInstance - Method not implemented + ... Test objective: The objective is to test that the operation can't be performed due because method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.4.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not deleted from the NFVO DELETE Instantiate NSInstance Check HTTP Response Status Code Is 405 \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/NSInstances.robot b/SOL005/NSLifecycleManagement-API/NSInstances.robot index c74944d1f3c10812d226105b9c75bd15be3ac648..19e842bb563d94145dc68abe2d961348eb484a65 100644 --- a/SOL005/NSLifecycleManagement-API/NSInstances.robot +++ b/SOL005/NSLifecycleManagement-API/NSInstances.robot @@ -7,35 +7,91 @@ Library JSONLibrary Library JSONSchemaLibrary schemas/ *** Test Cases *** -Create a new NsInstance +POST Create a new NsInstance + [Documentation] Test ID: 5.3.2.1.1 + ... Test title: POST Create a new NsInstance + ... Test objective: The objective is to test the creation of a new Ns Instances and perform a JSON schema validation of the collected instance data structure + ... Pre-conditions: none. + ... Reference: section 6.4.2.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none. + ... Post-Conditions: A Ns instance is instantiated. POST New nsInstance Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location Check HTTP Response Body Json Schema Is NsInstance Get information about multiple NS instances + [Documentation] Test ID: 5.3.2.1.2 + ... Test title: Get information about multiple NS instances + ... Test objective: The objective is to test the retrieval of all the available NS Instances and perform a JSON schema and content validation of the collected instance data structure + ... Pre-conditions: A Ns instance is instantiated. + ... Reference: section 6.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none. + ... Post-Conditions: A Ns instance is instantiated. GET NsInstances Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is NsInstances Get information about multiple NS instances Bad Request Invalid attribute-based filtering parameters + [Documentation] Test ID: 5.3.2.1.3 + ... Test title: Get information about multiple NS instances Bad Request Invalid attribute-based filtering parameters + ... Test objective: The objective is to test the retrieval of all the available NS Instances using attribute-based filter and perform a JSON schema and content validation of the collected instance data structure + ... Pre-conditions: A Ns instance is instantiated. + ... Reference: section 6.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none. + ... Post-Conditions: none. GET NsInstance Invalid Attribute-Based filtering parameter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails Get information about multiple NS instances Bad Request Invalid attribute selector + [Documentation] Test ID: 5.3.2.1.4 + ... Test title: Get information about multiple NS instances Bad Request Invalid attribute selector + ... Test objective: The objective is to test the retrieval of all the available NS Instances using attribute-based filter and perform a JSON schema and content validation of the collected instance data structure + ... Pre-conditions: A Ns instance is instantiated. + ... Reference: section 6.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none. + ... Post-Conditions: none. GET NsInstance Invalid Attribute Selector Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails PUT NSInstances - Method not implemented + [Documentation] Test ID: 5.3.2.1.5 + ... Test title: PUT Individual NS instance - Method not implemented + ... Test objective: The objective is to test that PUT method is not allowed to modify a NS instance + ... Pre-conditions: none + ... Reference: section 6.4.2.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not modified by the operation PUT NSInstances Check HTTP Response Status Code Is 405 PATCH NSInstances - Method not implemented + [Documentation] Test ID: 5.3.2.1.6 + ... Test title: PUT NSInstances - Method not implemented + ... Test objective: The objective is to test that PATCH method is not allowed to modify a NS instance + ... Pre-conditions: none + ... Reference: section 6.4.2.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not modified by the operation PATCH NSInstances Check HTTP Response Status Code Is 405 DELETE NSInstances - Method not implemented + [Documentation] Test ID: 5.3.2.1.7 + ... Test title: DELETE NSInstances - Method not implemented + ... Test objective: The objective is to test that DELETE method is not allowed to modify a list of NS instance + ... Pre-conditions: none + ... Reference: section 6.4.2.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS instance is not modified by the operation DELETE NSInstances Check HTTP Response Status Code Is 405 \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot b/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot index 5a15ef38a2ace4e5ee26f63baa526506e84e3cb3..250ac9bf8a7f626d21402df2be13b5ca694bf8f0 100644 --- a/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot +++ b/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot @@ -8,33 +8,93 @@ Library JSONSchemaLibrary schemas/ *** Test Cases *** Post NS LCM occurences - Method not implemented + [Documentation] Test ID: 5.3.2.8.1 + ... Test title: Post NS LCM occurences - Method not implemented + ... Test objective: The objective is to test that POST method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.9.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Terminate NSInstance + Check HTTP Response Status Code Is 202 + Check HTTP Response Header Contains Location POST NS LCM OP Occurences Check HTTP Response Status Code Is 405 -PUT stauts information about multiple NS LCM OP OCC - Method not implemented - PUT NS LCM OP Occurences - Check HTTP Response Status Code Is 405 - -PATCH stauts information about multiple NS LCM OP OCC - Method not implemented - PATCH NS LCM OP Occurences - Check HTTP Response Status Code Is 405 - -DELETE stauts information about multiple NS LCM OP OCC - Method not implemented - DELETE NS LCM OP Occurences - Check HTTP Response Status Code Is 405 - -Get stauts information about multiple NS LCM OP OCC +Get status information about multiple NS LCM OP OCC + [Documentation] Test ID: 5.3.2.8.2 + ... Test title: Get status information about multiple NS LCM OP OCC + ... Test objective: The objective is to test that GET method return a list of LCM occurrences of the NS + ... Pre-conditions: none + ... Reference: section 6.4.9.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET NS LCN OP Occurences Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is NsLcmOpOccs -Get stauts information about multiple NS LCM OP OCC Bad Request Invalid attribute-based filtering parameters +Get status information about multiple NS LCM OP OCC Bad Request Invalid attribute-based filtering parameters + [Documentation] Test ID: 5.3.2.8.3 + ... Test title: Get status information about multiple NS LCM OP OCC Bad Request Invalid attribute-based filtering parameters + ... Test objective: The objective is to test that GET method fail because the query parameter is not existing + ... Pre-conditions: none + ... Reference: section 6.4.9.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET NS LCN OP Occurences Invalid attribute-based filtering parameters Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails -Get stauts information about multiple NS LCM OP OCC Bad Request Invalid attribute selector +Get status information about multiple NS LCM OP OCC Bad Request Invalid attribute selector + [Documentation] Test ID: 5.3.2.8.4 + ... Test title: Get status information about multiple NS LCM OP OCC Bad Request Invalid attribute selector + ... Test objective: The objective is to test that GET method fail because the attributes selector is not existing + ... Pre-conditions: none + ... Reference: section 6.4.9.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET NS LCN OP Occurences Invalid attribute selector Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails - \ No newline at end of file + + +PUT status information about multiple NS LCM OP OCC - Method not implemented + [Documentation] Test ID: 5.3.2.8.5 + ... Test title: PUT status information about multiple 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.9.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PUT NS LCM OP Occurences + Check HTTP Response Status Code Is 405 + +PATCH status information about multiple NS LCM OP OCC - Method not implemented + [Documentation] Test ID: 5.3.2.8.6 + ... Test title: PATCH status information about multiple 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.9.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PATCH NS LCM OP Occurences + Check HTTP Response Status Code Is 405 + +DELETE status information about multiple NS LCM OP OCC - Method not implemented + [Documentation] Test ID: 5.3.2.8.7 + ... Test title: DELETE status information about multiple 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.9.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + DELETE NS LCM OP Occurences + Check HTTP Response Status Code Is 405 + diff --git a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot index c837de307a2f9b83a5290ba6d8e2cfc2ffef1b13..fd5d8b9005722190f496beb80d0ca0864ec4dfbc 100644 --- a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot +++ b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot @@ -882,3 +882,88 @@ DELETE Individual subscription Delete ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} + +POST Operation occurrence + log The POST method delivers a notification from the server to the client. + ${json}= Get File schemas/NsLcmOperationOccurrenceNotification.schema.json + ${BODY}= evaluate json.loads('''${json}''') json + Log Creating mock request and response to handle NSLcmOperationOccurrenceNotification + &{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} + &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + Log Cleaning the endpoint + Clear Requests ${callback_endpoint} + +POST Id creation + log The POST method delivers a notification from the server to the client. + ${json}= Get File schemas/NsIdentifierCreationNotification.schema.json + ${BODY}= evaluate json.loads('''${json}''') json + Log Creating mock request and response to handle NsIdentifierCreationNotification + &{req}= Create Mock Request Matcher POST ${callback_endpoint}} body_type="JSON_SCHEMA" body=${BODY} + &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + Log Cleaning the endpoint + Clear Requests ${callback_endpoint} + +POST Id deletion + log The POST method delivers a notification from the server to the client. + ${json}= Get File schemas/NsIdentifierDeletionNotification.schema.json + ${BODY}= evaluate json.loads('''${json}''') json + Log Creating mock request and response to handle NsIdentifierDeletionNotification + &{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} + &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + Log Cleaning the endpoint + Clear Requests ${callback_endpoint} + +GET Notification endpoint + log The GET method allows the server to test the notification endpoint + &{req}= Create Mock Request Matcher GET ${callback_endpoint} + &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Verify Mock Expectation ${req} + Clear Requests ${callback_endpoint} + +PUT notification + Log PUT Method not implemented + &{req}= Create Mock Request Matcher PUT ${callback_endpoint} + &{rsp}= Create Mock Response status_code=405 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + Log Cleaning the endpoint + Clear Requests ${callback_endpoint} + +PATCH subscriptions + Log PATCH Method not implemented + &{req}= Create Mock Request Matcher PATCH ${callback_endpoint} + &{rsp}= Create Mock Response status_code=405 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + Log Cleaning the endpoint + Clear Requests ${callback_endpoint} + +DELETE subscriptions + Log DELETE Method not implemented + &{req}= Create Mock Request Matcher DELETE ${callback_endpoint} + &{rsp}= Create Mock Response status_code=405 + Create Mock Expectation ${req} ${rsp} + Sleep ${sleep_interval} + Log Verifying results + Verify Mock Expectation ${req} + Log Cleaning the endpoint + Clear Requests ${callback_endpoint} + \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/NotificationEndpoint.robot b/SOL005/NSLifecycleManagement-API/NotificationEndpoint.robot index 9f4c79bfe38afc8556f233e6bce8a5789e50987b..18bf7b6d9425b0458d61f7fe7f2e8fa4b021f5cf 100644 --- a/SOL005/NSLifecycleManagement-API/NotificationEndpoint.robot +++ b/SOL005/NSLifecycleManagement-API/NotificationEndpoint.robot @@ -9,87 +9,77 @@ Library OperatingSystem *** Test Cases *** -Deliver a notification - Operation Occurence - log The POST method delivers a notification from the server to the client. - ${json}= Get File schemas/NsLcmOperationOccurrenceNotification.schema.json - ${BODY}= evaluate json.loads('''${json}''') json - Log Creating mock request and response to handle NSLcmOperationOccurrenceNotification - &{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} - &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 - Create Mock Expectation ${req} ${rsp} - Sleep ${sleep_interval} - Log Verifying results - Verify Mock Expectation ${req} - Log Cleaning the endpoint - Clear Requests ${callback_endpoint} +POST Deliver a notification - Operation Occurence + [Documentation] Test ID: 5.3.2.17.1 + ... Test title: POST Deliver a notification - Operation Occurence + ... Test objective: The objective is to test that POST method trigger a notification about lifecycle changes triggered by a NS LCM operation occurrence + ... Pre-conditions: none + ... Reference: section 6.4.18.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Operation occurrence +POST Deliver a notification - Id Creation + [Documentation] Test ID: 5.3.2.17.2 + ... Test title: POST Deliver a notification - Id Creation + ... Test objective: The objective is to test that POST method trigger a notification about the creation of a NS identifier and the related NS instance resource + ... Pre-conditions: none + ... Reference: section 6.4.18.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Id creation +POST Deliver a notification - Id deletion + [Documentation] Test ID: 5.3.2.17.3 + ... Test title: POST Deliver a notification - Id deletion + ... Test objective: The objective is to test that POST method trigger a notification about the deletion of a NS identifier and the related NS instance resource + ... Pre-conditions: none + ... Reference: section 6.4.18.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Id deletion -Deliver a notification - Id Creation - log The POST method delivers a notification from the server to the client. - ${json}= Get File schemas/NsIdentifierCreationNotification.schema.json - ${BODY}= evaluate json.loads('''${json}''') json - Log Creating mock request and response to handle NsIdentifierCreationNotification - &{req}= Create Mock Request Matcher POST ${callback_endpoint}} body_type="JSON_SCHEMA" body=${BODY} - &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 - Create Mock Expectation ${req} ${rsp} - Sleep ${sleep_interval} - Log Verifying results - Verify Mock Expectation ${req} - Log Cleaning the endpoint - Clear Requests ${callback_endpoint} - -Deliver a notification - Id deletion - log The POST method delivers a notification from the server to the client. - ${json}= Get File schemas/NsIdentifierDeletionNotification.schema.json - ${BODY}= evaluate json.loads('''${json}''') json - Log Creating mock request and response to handle NsIdentifierDeletionNotification - &{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} - &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 - Create Mock Expectation ${req} ${rsp} - Sleep ${sleep_interval} - Log Verifying results - Verify Mock Expectation ${req} - Log Cleaning the endpoint - Clear Requests ${callback_endpoint} - -Test a notification end point - log The GET method allows the server to test the notification endpoint - &{req}= Create Mock Request Matcher GET ${callback_endpoint} - &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 - Create Mock Expectation ${req} ${rsp} - Sleep ${sleep_interval} - Verify Mock Expectation ${req} - Clear Requests ${callback_endpoint} +GET a notification end point + [Documentation] Test ID: 5.3.2.17.4 + ... Test title: GET a notification end point + ... Test objective: The objective is to test that GET method successfully test the notification endpoint + ... Pre-conditions: none + ... Reference: section 6.4.18.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET notification endpoint PUT notification - Method not implemented - Log PUT Method not implemented - &{req}= Create Mock Request Matcher PUT ${callback_endpoint} - &{rsp}= Create Mock Response status_code=405 - Create Mock Expectation ${req} ${rsp} - Sleep ${sleep_interval} - Log Verifying results - Verify Mock Expectation ${req} - Log Cleaning the endpoint - Clear Requests ${callback_endpoint} + [Documentation] Test ID: 5.3.2.17.5 + ... Test title: PUT notification - Method not implemented + ... Test objective: The objective is to test that the PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.18.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PUT notification PATCH subscriptions - Method not implemented - Log PATCH Method not implemented - &{req}= Create Mock Request Matcher PATCH ${callback_endpoint} - &{rsp}= Create Mock Response status_code=405 - Create Mock Expectation ${req} ${rsp} - Sleep ${sleep_interval} - Log Verifying results - Verify Mock Expectation ${req} - Log Cleaning the endpoint - Clear Requests ${callback_endpoint} - + [Documentation] Test ID: 5.3.2.17.6 + ... Test title: PATCH subscriptions - Method not implemented + ... Test objective: The objective is to test that the PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.18.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PATCH subscriptions DELETE subscriptions - Method not implemented - Log DELETE Method not implemented - &{req}= Create Mock Request Matcher DELETE ${callback_endpoint} - &{rsp}= Create Mock Response status_code=405 - Create Mock Expectation ${req} ${rsp} - Sleep ${sleep_interval} - Log Verifying results - Verify Mock Expectation ${req} - Log Cleaning the endpoint - Clear Requests ${callback_endpoint} + [Documentation] Test ID: 5.3.2.17.7 + ... Test title: DELETE subscriptions - Method not implemented + ... Test objective: The objective is to test that the DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.18.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + DELETE subscriptions diff --git a/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot b/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot index 99210715b8e08e8a3a8f69780af8b2b0d2607aeb..217d5f361e93f376286c369e29acb8bafcc516ad 100644 --- a/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/RetryOperationTask.robot @@ -9,38 +9,96 @@ Library JSONSchemaLibrary schemas/ *** Test Cases *** Post Retry operation task + [Documentation] Test ID: 5.3.2.10.1 + ... Test title: Post Retry operation task + ... Test objective: The objective is to test that POST method trigger a retry of NS lifecycle operation in case of temporary failure + ... Pre-conditions: NS instance status equal to FAILED_TEMP + ... Reference: section 6.4.11.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test Check resource FAILED_TEMP POST Retry operation task Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location Post Retry operation task Not Found + [Documentation] Test ID: 5.3.2.10.2 + ... Test title: Post Retry operation task Not Found + ... Test objective: The objective is to test that POST method fail in case of NS lifecycle operation not found + ... Pre-conditions: none + ... Reference: section 6.4.11.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none [Setup] Check retry not supported POST Retry operation task Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails Post Retry operation task Conflict + [Documentation] Test ID: 5.3.2.10.3 + ... Test title: Post Retry operation task Conflict + ... Test objective: The objective is to test that POST method fail in case of NS lifecycle operation status conflict + ... Pre-conditions: none + ... Reference: section 6.4.11.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test failure Check resource FAILED_TEMP POST Retry operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails + +GET Retry operation task - Method not implemented + [Documentation] Test ID: 5.3.2.10.4 + ... Test title: GET Retry operation task - Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.11.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Retry operation task + Check HTTP Response Status Code Is 405 PUT Retry operation task - Method not implemented + [Documentation] Test ID: 5.3.2.10.5 + ... Test title: PUT Retry operation task - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.11.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Retry operation task Check HTTP Response Status Code Is 405 PATCH Retry operation task - Method not implemented + [Documentation] Test ID: 5.3.2.10.6 + ... Test title: PATCH Retry operation task - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.11.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Retry operation task Check HTTP Response Status Code Is 405 DELETE Retry operation task - Method not implemented + [Documentation] Test ID: 5.3.2.10.7 + ... Test title: DELETE Retry operation task - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.11.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Retry operation task Check HTTP Response Status Code Is 405 -GET Retry operation task - Method not implemented - GET Retry operation task - Check HTTP Response Status Code Is 405 + \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot b/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot index f0765aa355418d3035675935531a1232f672c43b..a94b61ddb3cb2720fa9dde171d035c2a0750752d 100644 --- a/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot +++ b/SOL005/NSLifecycleManagement-API/RollbackOperationTask.robot @@ -9,38 +9,96 @@ Library JSONSchemaLibrary schemas/ *** Test Cases *** Post Rollback operation task + [Documentation] Test ID: 5.3.2.11.1 + ... Test title: Post Rollback operation task + ... Test objective: The objective is to test that POST method trigger a rollback on the LCM operation + ... Pre-conditions: NS instance status equal to FAILED_TEMP + ... Reference: section 6.4.12.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test Check resource FAILED_TEMP POST Rollback operation task Check HTTP Response Status Code Is 202 Post Rollback operation task Not Found + [Documentation] Test ID: 5.3.2.11.2 + ... Test title: Post Rollback operation task Not Found + ... Test objective: The objective is to test that POST method fail if operation is not found + ... Pre-conditions: none + ... Reference: section 6.4.12.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none [Setup] Check Rollback not supported POST Rollback operation task Check HTTP Response Status Code Is 404 Check HTTP Response Body Json Schema Is ProblemDetails Post Rollback operation task Conflict + [Documentation] Test ID: 5.3.2.11.3 + ... Test title: Post Rollback operation task Conflict + ... Test objective: The objective is to test that POST method fail in case of operation status conflict + ... Pre-conditions: none + ... Reference: section 6.4.12.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends on test failure Check resource FAILED_TEMP POST Rollback operation task Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails + +GET Rollback operation task - Method not implemented + [Documentation] Test ID: 5.3.2.11.4 + ... Test title: GET Rollback operation task - Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.12.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Rollback operation task + Check HTTP Response Status Code Is 405 PUT Rollback operation task - Method not implemented + [Documentation] Test ID: 5.3.2.11.5 + ... Test title: PUT Rollback operation task - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.12.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Rollback operation task Check HTTP Response Status Code Is 405 PATCH Rollback operation task - Method not implemented + [Documentation] Test ID: 5.3.2.11.6 + ... Test title: PATCH Rollback operation task - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.12.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Rollback operation task Check HTTP Response Status Code Is 405 DELETE Rollback operation task - Method not implemented + [Documentation] Test ID: 5.3.2.11.7 + ... Test title: DELETE Rollback operation task - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.12.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Rollback operation task Check HTTP Response Status Code Is 405 -GET Rollback operation task - Method not implemented - GET Rollback operation task - Check HTTP Response Status Code Is 405 + \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot b/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot index 6c2320d92cb7beb32babbe443147b6d641362758..7c297851e5bfa51522816f98673dd345518a72ed 100644 --- a/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot +++ b/SOL005/NSLifecycleManagement-API/ScaleNSTask.robot @@ -8,30 +8,78 @@ Library JSONSchemaLibrary schemas/ Suite Setup Check resource existance *** Test Cases *** -Scale a nsInstance +POST Scale a nsInstance + [Documentation] Test ID: 5.3.2.4.1 + ... Test title: POST Scale a nsInstance + ... Test objective: The objective is to test that POST method allow to create a Scale NS instance + ... Pre-conditions: none + ... Reference: section 6.4.5.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The Scale NS instance is created on the NFVO POST scale nsInstance Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location -Instantiate a nsInstance Conflict +POST Instantiate a nsInstance Conflict + [Documentation] Test ID: 5.3.2.4.2 + ... Test title: POST Instantiate a nsInstance Conflict + ... Test objective: The objective is to test that POST method allow to create a Scale NS instance + ... Pre-conditions: none + ... Reference: section 6.4.5.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The Scale NS instance is not created on the NFVO [Setup] Check resource not_instantiated POST scale nsInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails GET Scale NSInstance- Method not implemented + [Documentation] Test ID: 5.3.2.4.3 + ... Test title: GET Scale NSInstance- Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.5.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET scale NSInstance Check HTTP Response Status Code Is 405 PUT Scale NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.4.4 + ... Test title: PUT Scale NSInstance - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.5.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT scale NSInstance Check HTTP Response Status Code Is 405 PATCH Scale NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.4.5 + ... Test title: PATCH Scale NSInstance - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.5.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH scale NSInstance Check HTTP Response Status Code Is 405 DELETE Scale NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.4.6 + ... Test title: DELETE Scale NSInstance - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.5.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE scale NSInstance Check HTTP Response Status Code Is 405 diff --git a/SOL005/NSLifecycleManagement-API/Subscriptions.robot b/SOL005/NSLifecycleManagement-API/Subscriptions.robot index f9a87961bd093e1ee540d5128b170e5654939048..38196cee6a24ab83e8bcf58b8ce841905d3f0835 100644 --- a/SOL005/NSLifecycleManagement-API/Subscriptions.robot +++ b/SOL005/NSLifecycleManagement-API/Subscriptions.robot @@ -7,42 +7,106 @@ Library JSONLibrary Library JSONSchemaLibrary schemas/ *** Test Cases *** -Create a new subscription +POST Create a new subscription + [Documentation] Test ID: 5.3.2.15.1 + ... Test title: POST Create a new subscription + ... Test objective: The objective is to test that POST method create a subscription + ... Pre-conditions: none + ... Reference: section 6.4.16.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none POST subscriptions Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location Check HTTP Response Body Json Schema Is subscription -Create a new Subscription - DUPLICATION +POST Create a new Subscription - DUPLICATION + [Documentation] Test ID: 5.3.2.15.2 + ... Test title: POST Create a new subscription - DUPLICATION + ... Test objective: The objective is to test that POST method create a duplicate subscription + ... Pre-conditions: none + ... Reference: section 6.4.16.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none POST subscriptions DUPLICATION Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location Check HTTP Response Body Json Schema Is subscription -Create a new Subscription - NO-DUPLICATION +POST Create a new Subscription - NO-DUPLICATION + [Documentation] Test ID: 5.3.2.15.3 + ... Test title: POST Create a new subscription - NO-DUPLICATION + ... Test objective: The objective is to test that POST method create a duplicate subscription + ... Pre-conditions: none + ... Reference: section 6.4.16.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none POST subscriptions NO DUPLICATION - Check HTTP Response Status Code Is 201 + Check HTTP Response Status Code Is 303 Check HTTP Response Header Contains Location GET Subscriptions + [Documentation] Test ID: 5.3.2.15.4 + ... Test title: GET Subscriptions + ... Test objective: The objective is to test that GET method retrive the list of existing subscriptions + ... Pre-conditions: none + ... Reference: section 6.4.16.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET Subscriptions Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is subscriptions GET Subscription - Filter + [Documentation] Test ID: 5.3.2.15.5 + ... Test title: GET Subscription - Filter + ... Test objective: The objective is to test that GET method retrive the list of existing subscriptions + ... Pre-conditions: none + ... Reference: section 6.4.16.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET Subscriptions with filter Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is subscriptions PUT subscriptions - Method not implemented + [Documentation] Test ID: 5.3.2.15.6 + ... Test title: PUT subscriptions - Method not implemented + ... Test objective: The objective is to test that PUT method is not allowed to modify a NS lifecycle management subscription + ... Pre-conditions: none + ... Reference: section 6.4.16.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS lifecycle management subscription is not modified by the operation PUT subscriptions Check HTTP Response Status Code Is 405 PATCH subscriptions - Method not implemented + [Documentation] Test ID: 5.3.2.15.7 + ... Test title: PATCH subscriptions - Method not implemented + ... Test objective: The objective is to test that PUT method is not allowed to modify a NS lifecycle management subscription + ... Pre-conditions: none + ... Reference: section 6.4.16.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS lifecycle management subscription is not modified by the operation PATCH subscriptions Check HTTP Response Status Code Is 405 DELETE subscriptions - Method not implemented + [Documentation] Test ID: 5.3.2.15.6 + ... Test title: DELETE subscriptions - Method not implemented + ... Test objective: The objective is to test that DELETE method is not allowed to modify a NS lifecycle management subscription + ... Pre-conditions: none + ... Reference: section 6.4.16.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The NS lifecycle management subscription is not deleted by the operation DELETE subscriptions Check HTTP Response Status Code Is 405 \ No newline at end of file diff --git a/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot b/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot index 29f8bc60125b87769d038f6608ba2e5224dfec38..39e7905e3921f234cbaf414143a3d6c33c3ea73b 100644 --- a/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot +++ b/SOL005/NSLifecycleManagement-API/TerminateNSTask.robot @@ -8,30 +8,78 @@ Library JSONSchemaLibrary schemas/ Suite Setup Check resource existance *** Test Cases *** -Terminate a NSInstance +POST Terminate a NSInstance + [Documentation] Test ID: 5.3.2.7.1 + ... Test title: POST Terminate a NSInstance + ... Test objective: The objective is to test that POST method allow to terminate the NS + ... Pre-conditions: NS instance in INSTANTIATED state + ... Reference: section 6.4.8.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: NS instance has NOT_INSTANTIATED state POST Terminate NSInstance Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location -Terminate a NSInstance Conflict +POST Terminate a NSInstance Conflict + [Documentation] Test ID: 5.3.2.7.2 + ... Test title: POST Terminate a NSInstance Conflict + ... Test objective: The objective is to test that POST method can't terminate the NS because the resource is not in INSTANTIATED state + ... Pre-conditions: none + ... Reference: section 6.4.8.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none [Setup] Check resource not_instantiated POST Terminate NSInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails GET Terminate NSInstance- Method not implemented + [Documentation] Test ID: 5.3.2.7.3 + ... Test title: GET Terminate NSInstance- Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.8.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET Terminate NSInstance Check HTTP Response Status Code Is 405 PUT Terminate NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.7.4 + ... Test title: PUT Terminate NSInstance - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.8.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Terminate NSInstance Check HTTP Response Status Code Is 405 PATCH Terminate NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.7.5 + ... Test title: PATCH Terminate NSInstance - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.8.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Terminate NSInstance Check HTTP Response Status Code Is 405 DELETE Terminate NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.7.5 + ... Test title: DELETE Terminate NSInstance - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.8.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Terminate NSInstance Check HTTP Response Status Code Is 405 diff --git a/SOL005/NSLifecycleManagement-API/UpdateNSTask.robot b/SOL005/NSLifecycleManagement-API/UpdateNSTask.robot index f1f397ab74a36f7bdf50097c359743042b62f78e..74a22d17eea03eca872391ce3ae8ec3f7b9acc4c 100644 --- a/SOL005/NSLifecycleManagement-API/UpdateNSTask.robot +++ b/SOL005/NSLifecycleManagement-API/UpdateNSTask.robot @@ -8,30 +8,78 @@ Library JSONSchemaLibrary schemas/ Suite Setup Check resource existance *** Test Cases *** -Update a NSInstance +POST Update a NSInstance + [Documentation] Test ID: 5.3.2.5.1 + ... Test title: POST Update a NSInstance + ... Test objective: The objective is to test that POST method allow to update a Scale NS instance + ... Pre-conditions: an existing Scale Instance + ... Reference: section 6.4.6.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The Scale NS instance is updated on the NFVO POST Update NSInstance Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location -Update a NSInstance Conflict +POST Update a NSInstance Conflict + [Documentation] Test ID: 5.3.2.5.2 + ... Test title: POST Update a NSInstance Conflict + ... Test objective: The objective is to test that POST method fail if a scale Instance is not existing or is not in NOT_INSTANTIATED state + ... Pre-conditions: an existing Scale Instance + ... Reference: section 6.4.6.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: The Scale NS instance is not updated on the NFVO [Setup] Check resource not_instantiated POST Update NSInstance Check HTTP Response Status Code Is 409 Check HTTP Response Body Json Schema Is ProblemDetails GET Update NSInstance- Method not implemented + [Documentation] Test ID: 5.3.2.5.3 + ... Test title: GET Update NSInstance- Method not implemented + ... Test objective: The objective is to test that GET method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.6.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none GET Update NSInstance Check HTTP Response Status Code Is 405 PUT Update NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.5.4 + ... Test title: PUT Update NSInstance - Method not implemented + ... Test objective: The objective is to test that PUT method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.6.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PUT Update NSInstance Check HTTP Response Status Code Is 405 PATCH Update NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.5.5 + ... Test title: PATCH Update NSInstance - Method not implemented + ... Test objective: The objective is to test that PATCH method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.6.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none PATCH Update NSInstance Check HTTP Response Status Code Is 405 DELETE Update NSInstance - Method not implemented + [Documentation] Test ID: 5.3.2.5.6 + ... Test title: DELETE Update NSInstance - Method not implemented + ... Test objective: The objective is to test that DELETE method is not implemented + ... Pre-conditions: none + ... Reference: section 6.4.6.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none DELETE Update NSInstance Check HTTP Response Status Code Is 405