From a969c4ac7371175e1c3ac07f343b6240d9907db4 Mon Sep 17 00:00:00 2001 From: Abbas Ahmad Date: Mon, 24 Jun 2019 16:06:09 +0200 Subject: [PATCH] SOL5 Fault management --- SOL003/VNFFaultManagement-API/Alarms.robot | 4 +- SOL005/NSFaultManagement-API/Alarms.robot | 129 +++++++------- .../IndividualAlarm.robot | 128 +++++++------- .../IndividualSubscription.robot | 87 +++++---- .../NSFMOperationKeywords.robot | 55 +++--- .../NSFaultManagement-API/Subscriptions.robot | 166 +++++++++--------- 6 files changed, 280 insertions(+), 289 deletions(-) diff --git a/SOL003/VNFFaultManagement-API/Alarms.robot b/SOL003/VNFFaultManagement-API/Alarms.robot index e25b6b33..8eee9130 100644 --- a/SOL003/VNFFaultManagement-API/Alarms.robot +++ b/SOL003/VNFFaultManagement-API/Alarms.robot @@ -49,8 +49,8 @@ Get information about multiple alarms with filters Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters [Documentation] Test ID: 7.3.5.1.4 - ... Test title: The objective is to try to retrieve information about the alarm list and perform a JSON schema and content validation of the returned problem details data structure, and verify that the retrieved information matches the issued attribute-based filters - ... Test objective: The objective is to retrieve information about the alarm list + ... Test title: Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters + ... Test objective: The objective is to try to retrieve information about the alarm list with invalid filters and perform a JSON schema and content validation of the returned problem details data structure ... Pre-conditions: none ... Reference: section 7.4.2.3.2 - SOL003 v2.4.1 ... Config ID: Config_prod_VNFM diff --git a/SOL005/NSFaultManagement-API/Alarms.robot b/SOL005/NSFaultManagement-API/Alarms.robot index 18354e9a..9877c434 100644 --- a/SOL005/NSFaultManagement-API/Alarms.robot +++ b/SOL005/NSFaultManagement-API/Alarms.robot @@ -8,94 +8,91 @@ Library OperatingSystem *** Test Cases *** POST Alarms - Method not implemented - [Documentation] Test ID: 8.4.2.1 + [Documentation] Test ID: 5.3.3.1.1 ... Test title:POST Alarms - Method not implemented - ... Test objective: The objective is to post alarms - ... Pre-conditions: - ... Reference: section 8.4.2 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do POST Alarms + ... Test objective: The objective is to test that Post method is not allowed to create Fault management alarms on NFV + ... Pre-conditions: none + ... Reference: section 8.4.2.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Alarms Check HTTP Response Status Code Is 405 -Get information about multiple alarms - [Documentation] Test ID: 8.4.2.2-1 +Get information about multiple alarms + [Documentation] Test ID: 5.3.3.1.2 ... Test title: Get information about multiple alarms - ... Test objective: The objective is to retrieve information about the alarm list - ... Pre-conditions: - ... Reference: section 8.4.2 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Alarms + ... Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure + ... Pre-conditions: none + ... Reference: section 8.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Alarms Check HTTP Response Status Code Is 200 - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is alarms.schema.json + Check HTTP Response Body Json Schema Is alarms - -Get information about multiple alarms with filters - [Documentation] Test ID: 8.4.2.2-2 +Get information about multiple alarms with filters + [Documentation] Test ID: 5.3.3.1.3 ... Test title: Get information about multiple alarms with filters - ... Test objective: The objective is to retrieve information about the alarm list with filters - ... Pre-conditions: - ... Reference: section 8.4.2 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Alarms With Filters + ... Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure, and verify that the retrieved information matches the issued attribute-based filters + ... Pre-conditions: none + ... Reference: section 8.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Alarms With Filters Check HTTP Response Status Code Is 200 - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is alarms.schema.json + Check HTTP Response Body Json Schema Is alarms - Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters - [Documentation] Test ID: 8.4.2.2-3 - ... Test title: Get information about multiple alarms - with Invalid attribute-based filtering parameters - ... Test objective: The objective is to retrieve information about the alarm list - ... Pre-conditions: - ... Reference: section 8.4.2 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Alarms With Invalid Filters + [Documentation] Test ID: 5.3.3.1.4 + ... Test title: Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters + ... Test objective: The objective is to try to retrieve information about the alarm list with invalid filters and perform a JSON schema and content validation of the returned problem details data structure + ... Pre-conditions: none + ... Reference: section 8.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Alarms With Invalid Filters Check HTTP Response Status Code Is 400 - Check HTTP Response Body Json Schema Is ProblemDetails.schema.json + Check HTTP Response Body Json Schema Is ProblemDetails PUT Alarms - Method not implemented - [Documentation] Test ID: 8.4.2.3 + [Documentation] Test ID: 5.3.3.1.5 ... Test title: PUT Alarms - Method not implemented - ... Test objective: The objective is to put alarms - ... Pre-conditions: - ... Reference: section 8.4.2 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do PUT Alarms + ... Test objective: The objective is to test that PUT method is not allowed for Fault management alarms on NFV + ... Pre-conditions: none + ... Reference: section 8.4.2.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PUT Alarms Check HTTP Response Status Code Is 405 PATCH Alarms - Method not implemented - [Documentation] Test ID: 8.4.2.4 + [Documentation] Test ID: 5.3.3.1.6 ... Test title: PATCH Alarms - Method not implemented - ... Test objective: The objective is to post alarms - ... Pre-conditions: - ... Reference: section 8.4.2 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do PATCH Alarms + ... Test objective: The objective is to test that PATCH method is not allowed for Fault management alarms on NFV + ... Pre-conditions: none + ... Reference: section 8.4.2.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PATCH Alarms Check HTTP Response Status Code Is 405 DELETE Alarms - Method not implemented - [Documentation] Test ID: 8.4.2.5 + [Documentation] Test ID: 5.3.3.1.7 ... Test title: DELETE Alarms - Method not implemented - ... Test objective: The objective is to DELETE alarms - ... Pre-conditions: - ... Reference: section 8.4.2 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do DELETE Alarms + ... Test objective: The objective is to test that DELETE method is not allowed for Fault management alarms on NFV + ... Pre-conditions: none + ... Reference: section 8.4.2.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + DELETE Alarms Check HTTP Response Status Code Is 405 + diff --git a/SOL005/NSFaultManagement-API/IndividualAlarm.robot b/SOL005/NSFaultManagement-API/IndividualAlarm.robot index 479d648c..86496e34 100644 --- a/SOL005/NSFaultManagement-API/IndividualAlarm.robot +++ b/SOL005/NSFaultManagement-API/IndividualAlarm.robot @@ -10,107 +10,105 @@ Library DependencyLibrary *** Test Cases *** POST Individual Alarm - Method not implemented - [Documentation] Test ID: 8.4.3.1 + [Documentation] Test ID: 5.3.3.2.1 ... Test title:POST Individual Alarm - Method not implemented - ... Test objective: The objective is to post alarms - ... Pre-conditions: - ... Reference: section 8.4.3 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do POST Individual Alarm + ... Test objective: The objective is to test that POST method is not allowed for Fault management individual alarm on NFV + ... Pre-conditions: none + ... Reference: section 8.4.3.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Individual Alarm Check HTTP Response Status Code Is 405 GET information about Individual Alarm - [Documentation] Test ID: 8.4.3.2-1 + [Documentation] Test ID: 5.3.3.2.2 ... Test title: GET information about Individual Alarm - ... Test objective: The objective is to read an individual alarm. + ... Test objective: The objective is to retrieve information about individual alarm and perform a JSON schema and content validation of the returned alarm data structure ... Pre-conditions: The related alarm exists - ... Reference: section 8.4.3 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Individual Alarm + ... Reference: section 8.4.3.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Individual Alarm Check HTTP Response Status Code Is 200 - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is alarm.schema.json + Check HTTP Response Body Json Schema Is alarm GET information about Invalid Individual Alarm - [Documentation] Test ID: 8.4.3.2-2 + [Documentation] Test ID: 5.3.3.2.3 ... Test title: GET information about Invalid Individual Alarm - ... Test objective: The objective is to read an Invalid individual alarm. + ... Test objective: The objective is to try to read an Invalid individual alarm and get 404 not found response code ... Pre-conditions: The related alarm does not exists - ... Reference: section 8.4.3 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Invalid Individual Alarm + ... Reference: section 8.4.3.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Invalid Individual Alarm Check HTTP Response Status Code Is 404 PUT Individual Alarm - Method not implemented - [Documentation] Test ID: 8.4.3.3 + [Documentation] Test ID: 5.3.3.2.4 ... Test title:PUT Individual Alarm - Method not implemented - ... Test objective: The objective is to put an individual alarm - ... Pre-conditions: - ... Reference: section 8.4.3 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do PUT Individual Alarm + ... Test objective: The objective is to test that PUT method is not allowed for Fault management individual alarm on NFV + ... Pre-conditions: none + ... Reference: section 8.4.3.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PUT Individual Alarm Check HTTP Response Status Code Is 405 PATCH Alarm - [Documentation] Test ID: 8.4.3.4-1 + [Documentation] Test ID: 5.3.3.2.5 ... Test title: Modify an individual alarm resource - ... Test objective: The objective is to Modify an individual alarm resource + ... Test objective: The objective is to Modify an individual alarm resource and perform a JSON schema and content validation of the returned alarm modifications data structure ... Pre-conditions: The related alarm exists - ... Reference: section 8.4.3 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do PATCH Individual Alarm - Check HTTP Response Status Code Is 200 - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is alarmModifications.schema.json + ... Reference: section 8.4.3.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PATCH Individual Alarm + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarmModifications PATCH Alarm - Conflict - [Documentation] Test ID: 8.4.3.4-2 + [Documentation] Test ID: 5.3.3.2.6 ... Test title: Modify an individual alarm resource - Conflict - ... Test objective: The objective is to Modify an individual alarm resource + ... Test objective: The objective is to test that we cannot Modify an individual alarm resource if the alarm is already in the state that is requested to be set ... Pre-conditions: The related alarm exists - ... Reference: section 8.4.3 - SOL002 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: The alarm resource is not modified + ... Reference: section 8.4.3.3.4 - SOL002 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none Depends On Test PATCH Alarm # If the previous test scceeded, it means that the alarm is in ackownledged state - Do PATCH Individual Alarm + PATCH Individual Alarm Check HTTP Response Status Code Is 409 - Check HTTP Response Body Json Schema Is ProblemDetails.schema.json + Check HTTP Response Body Json Schema Is ProblemDetails PATCH Alarm - Precondition failed - [Documentation] Test ID: 8.4.3.4-3 + [Documentation] Test ID: 5.3.3.2.7 ... Test title: Modify an individual alarm resource - Precondition failed - ... Test objective: The objective is to Modify an individual alarm resource + ... Test objective: The objective is to test that we cannot Modify an individual alarm resource if the resource was modified by another entity ... Pre-conditions: The related alarm exists - ... Reference: section 8.4.3 - SOL005 v2.4.1 - ... Config ID: Config_prod_VNFM - ... Applicability: + ... Reference: section 8.4.3.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none ... Post-Conditions: The alarm resource is not modified Depends On Test PATCH Alarm # If the previous test scceeded, it means that Etag has been modified - Do PATCH Individual Alarm Conflict + PATCH Individual Alarm Conflict Check HTTP Response Status Code Is 412 - Check HTTP Response Body Json Schema Is ProblemDetails.schema.json + Check HTTP Response Body Json Schema Is ProblemDetails DELETE Individual Alarm - Method not implemented - [Documentation] Test ID: 8.4.3.5 + [Documentation] Test ID: 5.3.3.2.8 ... Test title:DELETE Individual Alarm - Method not implemented - ... Test objective: The objective is to Delete an individual alarms - ... Pre-conditions: - ... Reference: section 8.4.3 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do DELETE Individual Alarm + ... Test objective: The objective is to test that DELETE method is not allowed for Fault management individual alarm on NFV + ... Pre-conditions: none + ... Reference: section 8.4.3.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + DELETE Individual Alarm Check HTTP Response Status Code Is 405 diff --git a/SOL005/NSFaultManagement-API/IndividualSubscription.robot b/SOL005/NSFaultManagement-API/IndividualSubscription.robot index 1f49c0ca..fad3b45e 100644 --- a/SOL005/NSFaultManagement-API/IndividualSubscription.robot +++ b/SOL005/NSFaultManagement-API/IndividualSubscription.robot @@ -11,64 +11,63 @@ Suite Setup Check Individual Subscription existance *** Test Cases *** Post Individual Subscription - Method not implemented - [Documentation] Test ID: 8.4.5.1 - ... Test title:POST Individual subscription - Method not implemented - ... Test objective: The objective is to POST an individual subscription - ... Pre-conditions: - ... Reference: section 8.4.5 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do POST Individual Subscription + [Documentation] Test ID: 5.3.3.4.1 + ... Test title:Post Individual Subscription - Method not implemented + ... Test objective: The objective is to test that POST method is not allowed for Fault management subscription on NFV + ... Pre-conditions:none + ... Reference: section 8.4.5.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Individual Subscription Check HTTP Response Status Code Is 405 Get Information about an individual subscription - [Documentation] Test ID: 8.4.5.2 - ... Test title: Retrieve the alarm subscription - ... Test objective: The objective is to read an individual subscription for NFVO alarms subscribed by the client + [Documentation] Test ID: 5.3.3.4.2 + ... Test title: Get Information about an individual subscription + ... Test objective: The objective is to read an individual subscription for NFVO alarms subscribed by the client and perform a JSON schema and content validation of the returned fault management individual subscription data structure ... Pre-conditions: The subscription with the given id exists - ... Reference: section 8.4.5 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Individual Subscription + ... Reference: section 8.4.5.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 Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is FmSubscription.schema.json - + Check HTTP Response Body Json Schema Is FmSubscription + PUT an individual subscription - Method not implemented - [Documentation] Test ID: 8.4.5.3 - ... Test title:PUT Individual subscription - Method not implemented - ... Test objective: The objective is to PUT an individual subscription - ... Pre-conditions: - ... Reference: section 8.4.5 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do PUT Individual Subscription + [Documentation] Test ID: 5.3.3.4.3 + ... Test title:PUT an individual subscription - Method not implemented + ... Test objective: The objective is to test that PUT method is not allowed for Fault management subscription on NFV + ... Pre-conditions: none + ... Reference: section 8.4.5.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PUT Individual Subscription Check HTTP Response Status Code Is 405 PATCH an individual subscription - Method not implemented - [Documentation] Test ID: 8.4.5.4 - ... Test title:PATCH Individual subscription - Method not implemented - ... Test objective: The objective is to PATCH an individual subscription - ... Pre-conditions: - ... Reference: section 8.4.5 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do PATCH Individual Subscription + [Documentation] Test ID: 5.3.3.4.4 + ... Test title:PATCH an individual subscription - Method not implemented + ... Test objective: The objective is to test that PATCH method is not allowed for Fault management subscription on NFV + ... Pre-conditions: none + ... Reference: section 8.4.5.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PATCH Individual Subscription Check HTTP Response Status Code Is 405 DELETE an individual subscription - [Documentation] Test ID: 8.4.5.5 + [Documentation] Test ID: 5.3.3.4.5 ... Test title:DELETE an individual subscription ... Test objective: The objective is to DELETE an individual subscription ... Pre-conditions: The Subsbcription already exists - ... Reference: section 8.4.5 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do DELETE Individual Subscription + ... Reference: section 8.4.5.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + DELETE Individual Subscription Check HTTP Response Status Code Is 204 \ No newline at end of file diff --git a/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot b/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot index 27fe2485..2210d668 100644 --- a/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot +++ b/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot @@ -32,7 +32,8 @@ Check HTTP Response Header Contains Log Header is present Check HTTP Response Body Json Schema Is - [Arguments] ${schema} + [Arguments] ${input} + ${schema} = Catenate ${input} .schema.json Validate Json ${schema} ${response[0]['body']} Log Json Schema Validation OK @@ -50,7 +51,7 @@ Clean Endpoint Log Cleaning the endpoint Clear Requests ${callback_endpoint} -Do POST Alarms +POST Alarms log Trying to perform a POST. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -58,7 +59,7 @@ Do POST Alarms ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PATCH Alarms +PATCH Alarms log Trying to perform a PATCH. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -66,7 +67,7 @@ Do PATCH Alarms ${outputResponse} = Output response Set Global Variable @{response} ${outputResponse} -Do PUT Alarms +PUT Alarms log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -74,7 +75,7 @@ Do PUT Alarms ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do DELETE Alarms +DELETE Alarms log Trying to perform a DELETE. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -82,7 +83,7 @@ Do DELETE Alarms ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Alarms +GET Alarms Log Query NFVO The GET method queries information about multiple alarms. Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -91,7 +92,7 @@ Do GET Alarms ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Alarms With Filters +GET Alarms With Filters Log Query NFVO The GET method queries information about multiple alarms with filters. Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -100,7 +101,7 @@ Do GET Alarms With Filters ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Alarms With Invalid Filters +GET Alarms With Invalid Filters Log Query NFVO The GET method queries information about multiple alarms with filters. Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -109,7 +110,7 @@ Do GET Alarms With Invalid Filters ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do POST Individual Alarm +POST Individual Alarm log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -117,7 +118,7 @@ Do POST Individual Alarm ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do DELETE Individual Alarm +DELETE Individual Alarm log Trying to perform a DELETE. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -125,7 +126,7 @@ Do DELETE Individual Alarm ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PUT Individual Alarm +PUT Individual Alarm log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -133,7 +134,7 @@ Do PUT Individual Alarm ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Individual Alarm +GET Individual Alarm Log Query NFVO The GET method queries information about an alarm. Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} @@ -143,7 +144,7 @@ Do GET Individual Alarm ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Invalid Individual Alarm +GET Invalid Individual Alarm Log Query NFVO The GET method queries information about an invalid alarm. Should return does not exist Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} @@ -153,7 +154,7 @@ Do GET Invalid Individual Alarm ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PATCH Individual Alarm +PATCH Individual Alarm log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} @@ -163,7 +164,7 @@ Do PATCH Individual Alarm ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PATCH Individual Alarm Conflict +PATCH Individual Alarm Conflict log Trying to perform a PATCH. This method modifies an individual alarm resource Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"} @@ -174,7 +175,7 @@ Do PATCH Individual Alarm Conflict ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do POST Subscription +POST Subscription Log Create subscription instance by POST to ${apiRoot}/${apiName}/${apiVersion}/subscriptions Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} @@ -184,7 +185,7 @@ Do POST Subscription ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Subscriptions +GET Subscriptions Log Get the list of active subscriptions Set Headers {"Accept": "${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} @@ -192,7 +193,7 @@ Do GET Subscriptions ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Subscriptions with filter +GET Subscriptions with filter Log Get the list of active subscriptions using a filter Set Headers {"Accept": "${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} @@ -200,7 +201,7 @@ Do GET Subscriptions with filter ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Subscriptions with Invalid filter +GET Subscriptions with Invalid filter Log Get the list of active subscriptions using an invalid filter Set Headers {"Accept": "${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} @@ -208,7 +209,7 @@ Do GET Subscriptions with Invalid filter ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PUT Subscriptions +PUT Subscriptions log Trying to perform a PUT Subscriptions. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -216,7 +217,7 @@ Do PUT Subscriptions ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PATCH Subscriptions +PATCH Subscriptions log Trying to perform a PATCH Subscriptions. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -224,7 +225,7 @@ Do PATCH Subscriptions ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do DELETE Subscriptions +DELETE Subscriptions log Trying to perform a DELETE Subscriptions. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -232,7 +233,7 @@ Do DELETE Subscriptions ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do POST Individual Subscription +POST Individual Subscription log Trying to perform a POST. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -240,7 +241,7 @@ Do POST Individual Subscription ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do GET Individual Subscription +GET Individual Subscription log Trying to get information about an individual subscription Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -248,7 +249,7 @@ Do GET Individual Subscription ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PUT Individual Subscription +PUT Individual Subscription log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -256,7 +257,7 @@ Do PUT Individual Subscription ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do PATCH Individual Subscription +PATCH Individual Subscription log Trying to perform a PATCH. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} @@ -264,7 +265,7 @@ Do PATCH Individual Subscription ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} -Do DELETE Individual Subscription +DELETE Individual Subscription log Trying to perform a DELETE. Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} diff --git a/SOL005/NSFaultManagement-API/Subscriptions.robot b/SOL005/NSFaultManagement-API/Subscriptions.robot index 8b1c1675..a12e5c95 100644 --- a/SOL005/NSFaultManagement-API/Subscriptions.robot +++ b/SOL005/NSFaultManagement-API/Subscriptions.robot @@ -8,128 +8,124 @@ Library JSONLibrary Library JSONSchemaLibrary schemas/ *** Test Cases *** -Create a new subscription - [Documentation] Test ID: 8.4.4.1 +Create a new alarm subscription + [Documentation] Test ID: 5.3.3.3.1 ... Test title: Create a new alarm subscription - ... Test objective: The objective is to create a new subscription. + ... Test objective: The objective is to create a new Fault management alarm subscriptions and perform a JSON schema and content validation of the returned fault management alarms subscription data structure ... Pre-conditions: no subscription with the same filter and callbackUri exists - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do POST Subscription + ... Reference: section 8.4.4.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + POST Subscription Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is FmSubscription.schema.json + Check HTTP Response Body Json Schema Is FmSubscription -Create a new Subscription - DUPLICATION - [Documentation] Test ID: 8.4.4.1-2 +Create a new alarm subscription - DUPLICATION + [Documentation] Test ID: 5.3.3.3.2 ... Test title: Create a new alarm subscription - DUPLICATION - ... Test objective: The objective is to create a new subscription. + ... Test objective: The objective is to create a new subscription with the NFV allowing duplication and perform a JSON schema and content validation of the returned fault management alarms subscription data structure.. ... Pre-conditions: subscription with the same filter and callbackUri exists - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: + ... Reference: section 8.4.4.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO ... Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists - ... Post-Conditions: + ... Post-Conditions: none Depends On Test Create a new subscription Pass Execution If ${NFVO_DUPLICATION} == 0 NVFO is not permitting duplication. Skipping the test - Do POST Subscription + POST Subscription Check HTTP Response Status Code Is 201 Check HTTP Response Header Contains Location - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is FmSubscription.schema.json + Check HTTP Response Body Json Schema Is FmSubscription -Create a new Subscription - NO-DUPLICATION - [Documentation] Test ID: 8.4.4.1-3 +Create a new alarm subscription - NO DUPLICATION + [Documentation] Test ID: 5.3.3.3.3 ... Test title: Create a new alarm subscription - NO DUPLICATION - ... Test objective: The objective is to create a new subscription. + ... Test objective: The objective is to create a new subscription with the NFV not allowing duplication and perform a JSON schema and content validation of the returned fault management alarms subscription data structure. ... Pre-conditions: subscription with the same filter and callbackUri exists - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: + ... Reference: section 8.4.4.3.1 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO ... Applicability: the NFVO decides to not create a duplicate subscription resource - ... Post-Conditions: + ... Post-Conditions: none Depends On Test Create a new subscription Pass Execution If ${NFVO_DUPLICATION} == 1 NFVO permits duplication. Skipping the test - Do POST Subscription + POST Subscription Check HTTP Response Status Code Is 303 Check HTTP Response Header Contains Location - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is FmSubscription.schema.json + Check HTTP Response Body Json Schema Is FmSubscription -GET Subscriptions - [Documentation] Test ID: 8.4.4.2 +Retrieve a list of alarm subscriptions + [Documentation] Test ID: 5.3.3.3.4 ... Test title: Retrieve a list of alarm subscriptions - ... Test objective: The objective is to retrieve the list of active subscriptions - ... Pre-conditions: - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Subscriptions + ... Test objective: The objective is to retrieve the list of active subscriptions and perform a JSON schema and content validation of the returned fault management alarms subscription data structure. + ... Pre-conditions: none + ... Reference: section 8.4.4.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 FmSubscriptions.schema.json + Check HTTP Response Body Json Schema Is FmSubscriptions -GET Subscription - Filter - [Documentation] Test ID: 8.4.4.2-1 - ... Test title: Retrieve a list of alarm subscriptions - ... Test objective: The objective is to retrieve the list of active subscriptions with filter - ... Pre-conditions: - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Subscriptions with filter +Retrieve a list of alarm subscriptions - Filter + [Documentation] Test ID: 5.3.3.3.5 + ... Test title: Retrieve a list of alarm subscriptions - Filter + ... Test objective: The objective is to retrieve the list of active subscriptions with filter and perform a JSON schema and content validation of the returned fault management alarms subscription data structure. + ... Pre-conditions: none + ... Reference: section 8.4.4.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 FmSubscriptions.schema.json + Check HTTP Response Body Json Schema Is FmSubscriptions GET subscriptions - Bad Request Invalid attribute-based filtering parameters - [Documentation] Test ID: 8.4.4.2-2 - ... Test title: Retrieve a list of alarm subscriptions - ... Test objective: The objective is to retrieve the list of active subscriptions with Invalid attribute-based filtering parameters - ... Pre-conditions: - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do GET Subscriptions with Invalid filter + [Documentation] Test ID: 5.3.3.3.6 + ... Test title: GET subscriptions - Bad Request Invalid attribute-based filtering parameters + ... Test objective:The objective is to retrieve the list of active subscriptions with Invalid attribute-based filtering parameters and perform a JSON schema and content validation of the returned problem details data structure. + ... Pre-conditions: none + ... Reference: section 8.4.4.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + GET Subscriptions with Invalid filter Check HTTP Response Status Code Is 400 - Check HTTP Response Header ContentType is ${CONTENT_TYPE} - Check HTTP Response Body Json Schema Is ProblemDetails.schema.json + Check HTTP Response Body Json Schema Is ProblemDetails PUT subscriptions - Method not implemented - [Documentation] Test ID: 8.4.4.3 + [Documentation] Test ID: 5.3.3.3.7 ... Test title:PUT subscriptions - Method not implemented - ... Test objective: The objective is to PUT subscriptions - ... Pre-conditions: - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do Put Subscriptions + ... Test objective: The objective is to test that PUT method is not allowed to for Fault management subscriptions on NFV + ... Pre-conditions: none + ... Reference: section 8.4.4.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + Put Subscriptions Check HTTP Response Status Code Is 405 PATCH subscriptions - Method not implemented - [Documentation] Test ID: 8.4.4.4 - ... Test title:PUT subscriptions - Method not implemented - ... Test objective: The objective is to PATCH subscriptions - ... Pre-conditions: - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do PATCH Subscriptions + [Documentation] Test ID: 5.3.3.3.8 + ... Test title:PATCH subscriptions - Method not implemented + ... Test objective: The objective is to test that PATCH method is not allowed to for Fault management subscriptions on NFV + ... Pre-conditions: none + ... Reference: section 8.4.4.3.4 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + PATCH Subscriptions Check HTTP Response Status Code Is 405 DELETE subscriptions - Method not implemented - [Documentation] Test ID: 8.4.4.5 + [Documentation] Test ID: 5.3.3.3.9 ... Test title:DELETE subscriptions - Method not implemented - ... Test objective: The objective is to DELETE subscriptions - ... Pre-conditions: - ... Reference: section 8.4.4 - SOL005 v2.4.1 - ... Config ID: - ... Applicability: - ... Post-Conditions: - Do DELETE Subscriptions + ... Test objective: The objective is to test that DELETE method is not allowed to for Fault management subscriptions on NFV + ... Pre-conditions: none + ... Reference: section 8.4.4.3.5 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: none + ... Post-Conditions: none + DELETE Subscriptions Check HTTP Response Status Code Is 405 \ No newline at end of file -- GitLab