From 2fcdfa4ff12206935b314915a36ef52df98e28ec Mon Sep 17 00:00:00 2001 From: aureliano sinatra Date: Sun, 22 Sep 2019 01:02:01 +0200 Subject: [PATCH] added filters --- SOL002/VNFFaultManagement-API/Alarms.robot | 104 ++++++++++++++++-- .../Subscriptions.robot | 84 +++++++++++++- .../environment/variables.txt | 1 + .../VnfLcmOperationKeywords.robot | 57 +++++++++- SOL003/VNFFaultManagement-API/Alarms.robot | 58 +++++++++- .../FaultManagement-APIKeyword.robot | 62 ++++++++++- .../Subscriptions.robot | 58 +++++++++- .../Subscriptions.robot | 60 +++++++++- .../VNFInstances.robot | 52 +++++++++ .../VnfLcmMntOperationKeywords.robot | 87 ++++++++++++++- .../VnfLcmOperationOccurences.robot | 60 +++++++++- SOL005/NSFaultManagement-API/Alarms.robot | 53 +++++++++ .../NSFMOperationKeywords.robot | 57 +++++++++- .../NSFaultManagement-API/Subscriptions.robot | 58 +++++++++- .../NSInstances.robot | 59 +++++++++- .../NSLCMOccurences.robot | 53 ++++++++- .../NSLCMOperationKeywords.robot | 95 +++++++++++++++- .../Subscriptions.robot | 52 +++++++++ 18 files changed, 1066 insertions(+), 44 deletions(-) diff --git a/SOL002/VNFFaultManagement-API/Alarms.robot b/SOL002/VNFFaultManagement-API/Alarms.robot index 366a549d..2f5d428f 100644 --- a/SOL002/VNFFaultManagement-API/Alarms.robot +++ b/SOL002/VNFFaultManagement-API/Alarms.robot @@ -30,11 +30,11 @@ GET information about multiple alarms ... Post-Conditions: GET Alarms Task Check HTTP Response Status Code Is 200 - Check HTTP Response Body Json Schema Is alarms + Check HTTP Response Body Json Schema Is alarms -GET information about multiple alarms with filters +GET information about multiple alarms with attribute-based filter [Documentation] Test ID: 6.3.4.1.3 - ... Test title: GET information about multiple alarms - with filters + ... Test title: GET information about multiple alarms with attribute-based filter ... Test objective: The objective is to retrieve information about the alarm list ... Pre-conditions: ... Reference: section 7.4.2.3.3 - SOL002 v2.4.1 @@ -44,10 +44,10 @@ GET information about multiple alarms with filters GET Alarms Task with filter Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is alarms - -GET information about multiple alarms Bad Request Invalid attribute-based filtering parameters + +GET information about multiple alarms with invalid attribute-based filter [Documentation] Test ID: 6.3.4.1.4 - ... Test title: GET information about multiple alarms Bad Request Invalid attribute-based filtering parameters + ... Test title: GET information about multiple alarms with invalid attribute-based filter ... Test objective: The objective is to retrieve information about the alarm list ... Pre-conditions: ... Reference: section 7.4.2.3.4 - SOL002 v2.4.1 @@ -56,10 +56,63 @@ GET information about multiple alarms Bad Request Invalid attribute-based filter ... Post-Conditions: GET Alarms Task with invalid filter Check HTTP Response Status Code Is 400 - Check HTTP Response Body Json Schema Is ProblemDetails + Check HTTP Response Body Json Schema Is ProblemDetails + +GET information about multiple alarms with "all_fields" attribute selector + [Documentation] Test ID: 6.3.4.1.5 + ... Test title: GET information about multiple alarms with "all_fields" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.3 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET Alarms Task with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + +GET information about multiple alarms with exclude_default attribute selector + [Documentation] Test ID: 6.3.4.1.6 + ... Test title: GET information about multiple alarms with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.3 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET Alarms Task with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + + +GET information about multiple alarms with fields attribute selector + [Documentation] Test ID: 6.3.4.1.7 + ... Test title: GET information about multiple alarms with fields attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.3 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET Alarms Task with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + +GET information about multiple alarms with "exclude_fields" attribute selector + [Documentation] Test ID: 6.3.4.1.8 + ... Test title: GET information about multiple alarms with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.3 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: none + GET Alarms Task with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms PUT Alarms - Method not implemented - [Documentation] Test ID: 6.3.4.1.5 + [Documentation] Test ID: 6.3.4.1.9 ... Test title: PUT Alarms - Method not implemented ... Test objective: The objective is to test that the method is not implemented ... Pre-conditions: @@ -71,7 +124,7 @@ PUT Alarms - Method not implemented Check HTTP Response Status Code Is 405 PATCH Alarms - Method not implemented - [Documentation] Test ID: 6.3.4.1.6 + [Documentation] Test ID: 6.3.4.1.10 ... Test title: PATCH Alarms - Method not implemented ... Test objective: The objective is to test that the method is not implemented ... Pre-conditions: @@ -83,7 +136,7 @@ PATCH Alarms - Method not implemented Check HTTP Response Status Code Is 405 DELETE Alarms - Method not implemented - [Documentation] Test ID: 6.3.4.1.7 + [Documentation] Test ID: 6.3.4.1.11 ... Test title: DELETE Alarms - Method not implemented ... Test objective: The objective is to test that the method is not implemented ... Pre-conditions: @@ -138,7 +191,7 @@ GET Alarms Task with filter Log Execute Query and validate response Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${alarm_filter}=${managedObjectId} ${outputResponse}= Output response - Set Global Variable @{response} ${outputResponse} + Set Global Variable @{response} ${outputResponse} GET Alarms Task with invalid filter Log Query VNF The GET method queries information about multiple alarms with filters. Set Headers {"Accept":"${ACCEPT}"} @@ -147,8 +200,35 @@ GET Alarms Task with invalid filter Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${invalid_alarm_filter}=${managedObjectId} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} +GET Alarms Task with all_fields attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with exclude_default attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with fields attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with exclude_fields attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} Check HTTP Response Status Code Is [Arguments] ${expected_status} Should Be Equal ${response.status_code} ${expected_status} Log Status code validated - diff --git a/SOL002/VNFFaultManagement-API/Subscriptions.robot b/SOL002/VNFFaultManagement-API/Subscriptions.robot index 32b6ea6b..7cc94633 100644 --- a/SOL002/VNFFaultManagement-API/Subscriptions.robot +++ b/SOL002/VNFFaultManagement-API/Subscriptions.robot @@ -82,7 +82,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters Get subscriptions - invalid filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails - + +GET subscriptions with "all_fields" attribute selector + [Documentation] Test ID: 6.3.4.4.8 + ... Test title: GET subscriptions with "all_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.5.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_default" attribute selector + [Documentation] Test ID: 6.3.4.4.9 + ... Test title: GET subscriptions with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.5.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "fields" attribute selector + [Documentation] Test ID: 6.3.4.4.10 + ... Test title: GET subscriptions with "fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.5.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_fields" attribute selector + [Documentation] Test ID: 6.3.4.4.11 + ... Test title: GET subscriptions with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.5.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + + + PUT subscriptions - Method not implemented [Documentation] Test ID: 6.3.4.4.8 ... Test title: PUT subscriptions - Method not implemented @@ -172,6 +226,34 @@ Get subscriptions - invalid filter GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} +Get subscriptions with all_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_default attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT subscriptions log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} diff --git a/SOL002/VNFFaultManagement-API/environment/variables.txt b/SOL002/VNFFaultManagement-API/environment/variables.txt index 34213bbd..32d54507 100644 --- a/SOL002/VNFFaultManagement-API/environment/variables.txt +++ b/SOL002/VNFFaultManagement-API/environment/variables.txt @@ -45,3 +45,4 @@ ${AlarmNotification} {} ${AlarmClearedNotification} {} ${AlarmListRebuiltNotification} {} +${fields} softwareImages,additionalArtifacts \ No newline at end of file diff --git a/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot b/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot index 1ccd255e..1e8af39f 100644 --- a/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot +++ b/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot @@ -109,7 +109,34 @@ GET multiple vnfInstances with bad filter GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?fields=wrong_field ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - +GET multiple vnfInstances with all_fields attribute selector + Log Query status information about multiple VNF instances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET multiple vnfInstances with exclude_default attribute selector + Log Query status information about multiple VNF instances using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET multiple vnfInstances with fields attribute selector + Log Query status information about multiple VNF instances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +GET multiple vnfInstances with exclude_fields attribute selector + Log Query status information about multiple VNF instances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT multiple vnfInstances log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -745,6 +772,34 @@ Get subscriptions - invalid filter GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} +Get subscriptions with all_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_default attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT subscriptions log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} diff --git a/SOL003/VNFFaultManagement-API/Alarms.robot b/SOL003/VNFFaultManagement-API/Alarms.robot index 8eee9130..f8d14fd3 100644 --- a/SOL003/VNFFaultManagement-API/Alarms.robot +++ b/SOL003/VNFFaultManagement-API/Alarms.robot @@ -34,9 +34,9 @@ Get information about multiple alarms Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is Alarms -Get information about multiple alarms with filters +Get information about multiple alarms with filter [Documentation] Test ID: 7.3.5.1.3 - ... Test title: Get information about multiple alarms with filters + ... Test title: Get information about multiple alarms with filter ... 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 7.4.2.3.2 - SOL003 v2.4.1 @@ -59,9 +59,61 @@ Get information about multiple alarms Bad Request Invalid attribute-based filter GET Fault Management Alarms With Invalid Filters Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails + +GET information about multiple alarms with "all_fields" attribute selector + [Documentation] Test ID: 7.3.5.1.5 + ... Test title: GET information about multiple alarms with "all_fields" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET Alarms Task with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + +GET information about multiple alarms with exclude_default attribute selector + [Documentation] Test ID: 7.3.5.1.6 + ... Test title: GET information about multiple alarms with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET Alarms Task with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + +GET information about multiple alarms with fields attribute selector + [Documentation] Test ID: 7.3.5.1.7 + ... Test title: GET information about multiple alarms with fields attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET Alarms Task with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + +GET information about multiple alarms with "exclude_fields" attribute selector + [Documentation] Test ID: 7.3.5.1.8 + ... Test title: GET information about multiple alarms with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 7.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: none + GET Alarms Task with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms PUT Alarms - Method not implemented - [Documentation] Test ID: 7.3.5.1.5 + [Documentation] Test ID: 7.3.5.1.9 ... Test title: PUT Alarms - Method not implemented ... Test objective: The objective is to test that PUT method is not allowed to for Fault management alarms on VNF ... Pre-conditions: none diff --git a/SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot b/SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot index 42fdbe4c..640109b4 100644 --- a/SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot +++ b/SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot @@ -120,7 +120,38 @@ GET Fault Management Alarms With Invalid Filters Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${invalid_alarm_filter}=${nsInstanceId} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - +GET Alarms Task with all_fields attribute selector + Log Trying to get all VNF Packages present in the NFVO Catalogue, using fields + Pass Execution If ${NFVO_FIELDS} == 0 The NFVO is not able to use fields parameter + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with exclude_default attribute selector + Log Trying to get all VNF Packages present in the NFVO Catalogue, using fields + Pass Execution If ${NFVO_FIELDS} == 0 The NFVO is not able to use fields parameter + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET VNF Packages with fields attribute selector + Log Trying to get all VNF Packages present in the NFVO Catalogue, using fields + Pass Execution If ${NFVO_FIELDS} == 0 The NFVO is not able to use fields parameter + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with exclude_fields attribute selector + Log Trying to get all VNF Packages present in the NFVO Catalogue, using fields + Pass Execution If ${NFVO_FIELDS} == 0 The NFVO is not able to use fields parameter + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} Send POST request for fault management Individual Alarm log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -255,7 +286,34 @@ GET Subscriptions with Invalid filter GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - +Get subscriptions with all_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_default attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT Subscriptions log Trying to perform a PUT Subscriptions. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} diff --git a/SOL003/VNFFaultManagement-API/Subscriptions.robot b/SOL003/VNFFaultManagement-API/Subscriptions.robot index a7b874a4..5d4e4756 100644 --- a/SOL003/VNFFaultManagement-API/Subscriptions.robot +++ b/SOL003/VNFFaultManagement-API/Subscriptions.robot @@ -89,9 +89,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters GET Subscriptions with Invalid filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails + +GET subscriptions with "all_fields" attribute selector + [Documentation] Test ID: 7.3.5.3.7 + ... Test title: GET subscriptions with "all_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.4.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_default" attribute selector + [Documentation] Test ID: 7.3.5.3.8 + ... Test title: GET subscriptions with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.4.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "fields" attribute selector + [Documentation] Test ID: 7.3.5.3.9 + ... Test title: GET subscriptions with "fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.4.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_fields" attribute selector + [Documentation] Test ID: 7.3.5.3.10 + ... Test title: GET subscriptions with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 7.4.4.3.2 - SOL002 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions PUT subscriptions - Method not implemented - [Documentation] Test ID: 7.3.5.3.7 + [Documentation] Test ID: 7.3.5.3.11 ... Test title:PUT subscriptions - Method not implemented ... Test objective: The objective is to test that PUT method is not allowed to for Fault management subscriptions on VNF ... Pre-conditions: none @@ -103,7 +155,7 @@ PUT subscriptions - Method not implemented Check HTTP Response Status Code Is 405 PATCH subscriptions - Method not implemented - [Documentation] Test ID: 7.3.5.3.8 + [Documentation] Test ID: 7.3.5.3.12 ... 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 VNF ... Pre-conditions: none @@ -115,7 +167,7 @@ PATCH subscriptions - Method not implemented Check HTTP Response Status Code Is 405 DELETE subscriptions - Method not implemented - [Documentation] Test ID: 7.3.5.3.9 + [Documentation] Test ID: 7.3.5.3.13 ... Test title: DELETE subscriptions - Method not implemented ... Test objective: The objective is to test that DELETE method is not allowed to for Fault management subscriptions on VNF ... Pre-conditions: none diff --git a/SOL003/VNFLifecycleManagement-API/Subscriptions.robot b/SOL003/VNFLifecycleManagement-API/Subscriptions.robot index d3d12f35..e475692b 100644 --- a/SOL003/VNFLifecycleManagement-API/Subscriptions.robot +++ b/SOL003/VNFLifecycleManagement-API/Subscriptions.robot @@ -86,9 +86,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters Get subscriptions - invalid filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails - + +GET subscriptions with all_fields attribute selector + [Documentation] Test ID: 7.3.1.17.7 + ... Test title: GET subscriptions with all_fields attribute selector + ... Test objective: The objective is Get the list of active subscriptions + ... Pre-conditions: none + ... Reference: section 5.4.18.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get subscriptions with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is Subscriptions + +GET subscriptions with exclude_default attribute selector + [Documentation] Test ID: 7.3.1.17.8 + ... Test title: GET subscriptions with exclude_default attribute selector + ... Test objective: The objective is Get the list of active subscriptions + ... Pre-conditions: none + ... Reference: section 5.4.18.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get subscriptions with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is Subscriptions + +GET subscriptions with fields attribute selector + [Documentation] Test ID: 7.3.1.17.9 + ... Test title: GET subscriptions with fields attribute selector + ... Test objective: The objective is Get the list of active subscriptions + ... Pre-conditions: none + ... Reference: section 5.4.18.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get subscriptions with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is Subscriptions + +GET subscriptions with exclude_fields attribute selector + [Documentation] Test ID: 7.3.1.17.10 + ... Test title: GET subscriptions with exclude_fields attribute selector + ... Test objective: The objective is Get the list of active subscriptions + ... Pre-conditions: none + ... Reference: section 5.4.18.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get subscriptions with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is Subscriptions + PUT subscriptions - Method not implemented - [Documentation] Test ID: 7.3.1.17.7 + [Documentation] Test ID: 7.3.1.17.11 ... Test title: PUT subscriptions - Method not implemented ... Test objective: The objective is to test that PUT method is not implemented ... Pre-conditions: none @@ -100,7 +152,7 @@ PUT subscriptions - Method not implemented Check HTTP Response Status Code Is 405 PATCH subscriptions - Method not implemented - [Documentation] Test ID: 7.3.1.17.8 + [Documentation] Test ID: 7.3.1.17.12 ... Test title: PATCH subscriptions - Method not implemented ... Test objective: The objective is to test that PATCH method is not implemented ... Pre-conditions: none @@ -112,7 +164,7 @@ PATCH subscriptions - Method not implemented Check HTTP Response Status Code Is 405 DELETE subscriptions - Method not implemented - [Documentation] Test ID: 7.3.1.17.9 + [Documentation] Test ID: 7.3.1.17.13 ... Test title: DELETE subscriptions - Method not implemented ... Test objective: The objective is to test that DELETE method is not implemented ... Pre-conditions: none diff --git a/SOL003/VNFLifecycleManagement-API/VNFInstances.robot b/SOL003/VNFLifecycleManagement-API/VNFInstances.robot index bb5bf82c..54cb9ddd 100644 --- a/SOL003/VNFLifecycleManagement-API/VNFInstances.robot +++ b/SOL003/VNFLifecycleManagement-API/VNFInstances.robot @@ -61,7 +61,59 @@ GET information about multiple VNF instances Bad Request Invalid attribute selec GET multiple vnfInstances with bad filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails + +GET information about multiple VNF instances with "all_fields" attribute selector + [Documentation] Test ID: 7.3.1.1.5 + ... Test title: GET information about multiple VNF instances with "all_fields" attribute selector + ... Test objective: The objective is to query information about multiple VNF instances + ... Pre-conditions: + ... Reference: section 5.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET multiple vnfInstances with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is vnfInstances + +GET information about multiple VNF instances with "exclude_default" attribute selector + [Documentation] Test ID: 7.3.1.1.6 + ... Test title: GET information about multiple VNF instances with "exclude_default" attribute selector + ... Test objective: The objective is to query information about multiple VNF instances + ... Pre-conditions: + ... Reference: section 5.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET multiple vnfInstances with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is vnfInstances +GET information about multiple VNF instances with "fields" attribute selector + [Documentation] Test ID: 7.3.1.1.7 + ... Test title: GET information about multiple VNF instances with "fields" attribute selector + ... Test objective: The objective is to query information about multiple VNF instances + ... Pre-conditions: + ... Reference: section 5.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET multiple vnfInstances with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is vnfInstances + +GET information about multiple VNF instances with "exclude_fields" attribute selector + [Documentation] Test ID: 7.3.1.1.7 + ... Test title: GET information about multiple VNF instances with "exclude_fields" attribute selector + ... Test objective: The objective is to query information about multiple VNF instances + ... Pre-conditions: + ... Reference: section 5.4.2.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: + ... Post-Conditions: + GET multiple vnfInstances with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is vnfInstances + PUT multiples VNFInstances - Method not implemented [Documentation] Test ID: 7.3.1.1.5 ... Test title: PUT multiples VNFInstances - Method not implemented diff --git a/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot b/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot index 2ffed7bb..6b2bbab1 100644 --- a/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot +++ b/SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot @@ -395,6 +395,35 @@ GET multiple vnfInstances with bad filter Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?attribute_not_exist=some_value ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} + +GET multiple vnfInstances with all_fields attribute selector + Log Query status information about multiple VNF instances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET multiple vnfInstances with exclude_default attribute selector + Log Query status information about multiple VNF instances using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET multiple vnfInstances with fields attribute selector + Log Query status information about multiple VNF instances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +GET multiple vnfInstances with exclude_fields attribute selector + Log Query status information about multiple VNF instances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT VNFInstances - Method not implemented log Trying to perform a PUT. This method should not be implemented @@ -730,6 +759,34 @@ GET VNF LCM Operation occurrences invalid filter GET ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs?fields=wrong_field ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} +Get VNF LCM Operation occurrences with all_fields attribute selector + Log Query status information about multiple VNF lifecycle management operation occurrences, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get VNF LCM Operation occurrences with exclude_default attribute selector + Log Query status information about multiple VNF lifecycle management operation occurrences using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get VNF LCM Operation occurrences with fields attribute selector + Log Query status information about multiple VNF lifecycle management operation occurrences, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get VNF LCM Operation occurrences with exclude_fields attribute selector + Log Query status information about multiple VNF lifecycle management operation occurrences, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT VNF LCM Operation occurrences log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -947,7 +1004,35 @@ Get subscriptions - invalid filter Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} ${outputResponse}= Output response - Set Global Variable @{response} ${outputResponse} + Set Global Variable @{response} ${outputResponse} +Get subscriptions with all_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_default attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT subscriptions log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} diff --git a/SOL003/VNFLifecycleManagement-API/VnfLcmOperationOccurences.robot b/SOL003/VNFLifecycleManagement-API/VnfLcmOperationOccurences.robot index 89b4522f..447d209e 100644 --- a/SOL003/VNFLifecycleManagement-API/VnfLcmOperationOccurences.robot +++ b/SOL003/VNFLifecycleManagement-API/VnfLcmOperationOccurences.robot @@ -57,9 +57,61 @@ GET status information about multiple VNF LCM Operation OCC Bad Request Invalid GET VNF LCM Operation occurrences invalid filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails - + +GET status information about multiple VNF LCM Operation OCC with "all_fields" + [Documentation] Test ID: 7.3.1.11.5 + ... Test title: GET status information about multiple VNF LCM Operation OCC with "all_fields" + ... Test objective: The objective is to test that GET method retrieve Query status information about multiple VNF lifecycle management operation occurrences. + ... Pre-conditions: none + ... Reference: section 5.4.12.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get VNF LCM Operation occurrences with all_fields attribute selector + Check HTTP Response Status Code Is 202 + Check HTTP Response Body Json Schema Is VnfLcmOpOccs + +GET status information about multiple VNF LCM Operation OCC with "exlude_default" + [Documentation] Test ID: 7.3.1.11.6 + ... Test title: GET status information about multiple VNF LCM Operation OCC with "exclude_default" + ... Test objective: The objective is to test that GET method retrieve Query status information about multiple VNF lifecycle management operation occurrences. + ... Pre-conditions: none + ... Reference: section 5.4.12.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get VNF LCM Operation occurrences with exclude_default attribute selector + Check HTTP Response Status Code Is 202 + Check HTTP Response Body Json Schema Is VnfLcmOpOccs + +GET status information about multiple VNF LCM Operation OCC with "fields" + [Documentation] Test ID: 7.3.1.11.7 + ... Test title: GET status information about multiple VNF LCM Operation OCC with "fields" + ... Test objective: The objective is to test that GET method retrieve Query status information about multiple VNF lifecycle management operation occurrences. + ... Pre-conditions: none + ... Reference: section 5.4.12.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get VNF LCM Operation occurrences with fields attribute selector + Check HTTP Response Status Code Is 202 + Check HTTP Response Body Json Schema Is VnfLcmOpOccs + +GET status information about multiple VNF LCM Operation OCC with "exclude_fields" + [Documentation] Test ID: 7.3.1.11.8 + ... Test title: GET status information about multiple VNF LCM Operation OCC with "exclude_fields" + ... Test objective: The objective is to test that GET method retrieve Query status information about multiple VNF lifecycle management operation occurrences. + ... Pre-conditions: none + ... Reference: section 5.4.12.3.2 - SOL003 v2.4.1 + ... Config ID: Config_prod_VNFM + ... Applicability: none + ... Post-Conditions: none + Get VNF LCM Operation occurrences with exclude_fields attribute selector + Check HTTP Response Status Code Is 202 + Check HTTP Response Body Json Schema Is VnfLcmOpOccs + PUT status information about multiple VNF LCM Operation OCC - Method not implemented - [Documentation] Test ID: 7.3.1.11.5 + [Documentation] Test ID: 7.3.1.11.9 ... Test title: PUT status information about multiple VNF LCM Operation OCC - Method not implemented ... Test objective: The objective is to test that PUT method is not implemented ... Pre-conditions: none @@ -71,7 +123,7 @@ PUT status information about multiple VNF LCM Operation OCC - Method not impleme Check HTTP Response Status Code Is 405 PATCH status information about multiple VNF LCM Operation OCC - Method not implemented - [Documentation] Test ID: 7.3.1.11.6 + [Documentation] Test ID: 7.3.1.11.10 ... Test title: PATCH status information about multiple VNF LCM Operation OCC - Method not implemented ... Test objective: The objective is to test that PATCH method is not implemented ... Pre-conditions: none @@ -83,7 +135,7 @@ PATCH status information about multiple VNF LCM Operation OCC - Method not imple Check HTTP Response Status Code Is 405 DELETE status information about multiple VNF LCM Operation OCC - Method not implemented - [Documentation] Test ID: 7.3.1.11.7 + [Documentation] Test ID: 7.3.1.11.11 ... Test title: DELETE status information about multiple VNF LCM Operation OCC - Method not implemented ... Test objective: The objective is to test that DELETE method is not implemented ... Pre-conditions: none diff --git a/SOL005/NSFaultManagement-API/Alarms.robot b/SOL005/NSFaultManagement-API/Alarms.robot index 746ee4b6..dc15acdb 100644 --- a/SOL005/NSFaultManagement-API/Alarms.robot +++ b/SOL005/NSFaultManagement-API/Alarms.robot @@ -57,6 +57,59 @@ GET information about multiple alarms Bad Request Invalid attribute-based filter GET Alarms With Invalid Filters Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails + +GET information about multiple alarms with "all_fields" attribute selector + [Documentation] Test ID: 5.3.3.1.5 + ... Test title: GET information about multiple alarms with "all_fields" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 8.4.2.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + GET Alarms Task with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + +GET information about multiple alarms with exclude_default attribute selector + [Documentation] Test ID: 5.3.3.1.6 + ... Test title: GET information about multiple alarms with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 8.4.2.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + GET Alarms Task with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + + +GET information about multiple alarms with fields attribute selector + [Documentation] Test ID: 5.3.3.1.7 + ... Test title: GET information about multiple alarms with fields attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 8.4.2.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + GET Alarms Task with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms + +GET information about multiple alarms with "exclude_fields" attribute selector + [Documentation] Test ID: 5.3.3.1.8 + ... Test title: GET information about multiple alarms with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve information about the alarm list + ... Pre-conditions: + ... Reference: section 8.4.2.3.3 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: none + GET Alarms Task with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is alarms PUT Alarms - Method not implemented [Documentation] Test ID: 5.3.3.1.5 diff --git a/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot b/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot index 5a6d06ed..f76d2339 100644 --- a/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot +++ b/SOL005/NSFaultManagement-API/NSFMOperationKeywords.robot @@ -113,7 +113,34 @@ GET Alarms With Invalid Filters Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${invalid_alarm_filter}=${nsInstanceId} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - +GET Alarms Task with all_fields attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with exclude_default attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with fields attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +GET Alarms Task with exclude_fields attribute selector + Log Query VNF The GET method queries information about multiple alarms, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/alarms?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} POST Individual Alarm log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -235,6 +262,34 @@ GET Subscriptions with Invalid filter ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} +Get subscriptions with all_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_default attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} PUT Subscriptions log Trying to perform a PUT Subscriptions. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} diff --git a/SOL005/NSFaultManagement-API/Subscriptions.robot b/SOL005/NSFaultManagement-API/Subscriptions.robot index 8e5d4dd8..07af9073 100644 --- a/SOL005/NSFaultManagement-API/Subscriptions.robot +++ b/SOL005/NSFaultManagement-API/Subscriptions.robot @@ -89,9 +89,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters GET Subscriptions with Invalid filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails + +GET subscriptions with "all_fields" attribute selector + [Documentation] Test ID: 5.3.3.3.7 + ... Test title: GET subscriptions with "all_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 8.4.4.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_default" attribute selector + [Documentation] Test ID: 5.3.3.3.8 + ... Test title: GET subscriptions with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 8.4.4.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "fields" attribute selector + [Documentation] Test ID: 5.3.3.3.9 + ... Test title: GET subscriptions with "fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 8.4.4.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_fields" attribute selector + [Documentation] Test ID: 5.3.3.3.10 + ... Test title: GET subscriptions with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 8.4.4.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions PUT subscriptions - Method not implemented - [Documentation] Test ID: 5.3.3.3.7 + [Documentation] Test ID: 5.3.3.3.11 ... Test title:PUT subscriptions - Method not implemented ... Test objective: The objective is to test that PUT method is not allowed to for Fault management subscriptions on NFV ... Pre-conditions: none @@ -103,7 +155,7 @@ PUT subscriptions - Method not implemented Check HTTP Response Status Code Is 405 PATCH subscriptions - Method not implemented - [Documentation] Test ID: 5.3.3.3.8 + [Documentation] Test ID: 5.3.3.3.12 ... 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 @@ -115,7 +167,7 @@ PATCH subscriptions - Method not implemented Check HTTP Response Status Code Is 405 DELETE subscriptions - Method not implemented - [Documentation] Test ID: 5.3.3.3.9 + [Documentation] Test ID: 5.3.3.3.13 ... Test title: DELETE subscriptions - Method not implemented ... Test objective: The objective is to test that DELETE method is not allowed to for Fault management subscriptions on NFV ... Pre-conditions: none diff --git a/SOL005/NSLifecycleManagement-API/NSInstances.robot b/SOL005/NSLifecycleManagement-API/NSInstances.robot index 5c5646a1..52dbcea8 100644 --- a/SOL005/NSLifecycleManagement-API/NSInstances.robot +++ b/SOL005/NSLifecycleManagement-API/NSInstances.robot @@ -59,9 +59,60 @@ GET information about multiple NS instances Bad Request Invalid attribute select 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 +GET NSInstances with "all_fields" attribute selector [Documentation] Test ID: 5.3.2.1.5 + ... Test title: GET NSInstances with "all_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active NSInstances with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get NSInstances with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET NSInstances with "exclude_default" attribute selector + [Documentation] Test ID: 5.3.2.1.6 + ... Test title: GET NSInstances with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve the list of active NSInstances with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get NSInstances with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET NSInstances with "fields" attribute selector + [Documentation] Test ID: 5.3.2.1.7 + ... Test title: GET NSInstances with "fields" attribute selector + ... Test objective: The objective is to retrieve the list of active NSInstances with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get NSInstances with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET NSInstances with "exclude_fields" attribute selector + [Documentation] Test ID: 5.3.2.1.8 + ... Test title: GET NSInstances with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active NSInstances with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.2.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get NSInstances with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +PUT NSInstances - Method not implemented + [Documentation] Test ID: 5.3.2.1.9 ... Test title: PUT Individual NS instance - Method not implemented ... Test objective: The objective is to test that PUT method is not implemented ... Pre-conditions: none @@ -73,7 +124,7 @@ PUT NSInstances - Method not implemented Check HTTP Response Status Code Is 405 PATCH NSInstances - Method not implemented - [Documentation] Test ID: 5.3.2.1.6 + [Documentation] Test ID: 5.3.2.1.10 ... Test title: PATCH NSInstances - Method not implemented ... Test objective: The objective is to test that PATCH method is not implemented ... Pre-conditions: none @@ -85,7 +136,7 @@ PATCH NSInstances - Method not implemented Check HTTP Response Status Code Is 405 DELETE NSInstances - Method not implemented - [Documentation] Test ID: 5.3.2.1.7 + [Documentation] Test ID: 5.3.2.1.11 ... Test title: DELETE NSInstances - Method not implemented ... Test objective: The objective is to test that DELETE method is not implemented ... Pre-conditions: none diff --git a/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot b/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot index 3e133ed9..c5544f05 100644 --- a/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot +++ b/SOL005/NSLifecycleManagement-API/NSLCMOccurences.robot @@ -57,7 +57,58 @@ GET status information about multiple NS LCM occurrences Bad Request Invalid att GET NS LCN OP Occurences Invalid attribute selector Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails - + +GET status information about multiple NS LCM occurrences with "all_fields" + [Documentation] Test ID: 5.3.2.8.5 + ... Test title: GET status information about multiple NS LCM occurrences with "all_fields" + ... Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS + ... Pre-conditions: At least one LCM occurrences available in the NFVO + ... 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 with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is NsLcmOpOccs + +GET status information about multiple NS LCM occurrences with "exclude_default" + [Documentation] Test ID: 5.3.2.8.6 + ... Test title: GET status information about multiple NS LCM occurrences with "exclude_default" + ... Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS + ... Pre-conditions: At least one LCM occurrences available in the NFVO + ... 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 with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is NsLcmOpOccs + +GET status information about multiple NS LCM occurrences with "fields" + [Documentation] Test ID: 5.3.2.8.7 + ... Test title: GET status information about multiple NS LCM occurrences with "fields" + ... Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS + ... Pre-conditions: At least one LCM occurrences available in the NFVO + ... 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 with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is NsLcmOpOccs + +GET status information about multiple NS LCM occurrences with "exclude_fields" + [Documentation] Test ID: 5.3.2.8.8 + ... Test title: GET status information about multiple NS LCM occurrences with "exclude_fields" + ... Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS + ... Pre-conditions: At least one LCM occurrences available in the NFVO + ... 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 with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is NsLcmOpOccs PUT status information about multiple NS LCM occurrences - Method not implemented [Documentation] Test ID: 5.3.2.8.5 diff --git a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot index 400162cb..27150706 100644 --- a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot +++ b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot @@ -207,10 +207,39 @@ GET NsInstance Invalid Attribute Selector Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?fields=wrong_field + Get ${apiRoot}/${apiName}/${apiVersion}/ns_instances?fields=wrong_field ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} +Get NSInstances with all_fields attribute selector + Log Get the list of NSInstances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_instances?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get NSInstances with exclude_default attribute selector + Log Get the list of NSInstances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_instances?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get NSInstances with fields attribute selector + Log Get the list of NSInstances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_instances?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get NSInstances with exclude_fields attribute selector + Log Get the list of NSInstances, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_instances?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} + PUT NSInstances log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -257,6 +286,7 @@ GET IndividualNSInstance ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} + PUT IndividualNSInstance Log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -561,13 +591,41 @@ GET NS LCN OP Occurences Invalid attribute-based filtering parameters Set Global Variable @{response} ${outputResponse} GET NS LCN OP Occurences Invalid attribute selector - Log Query NS The GET method queries information about multiple NS instances. + Log Query status information about multiple NS lifecycle management operation occurrences. Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?${NEG_SELECTOR} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} - +Get NS LCN OP Occurences with all_fields attribute selector + Log Query status information about multiple NS lifecycle management operation occurrences, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get NS LCN OP Occurences with exclude_default attribute selector + Log Query status information about multiple NS lifecycle management operation occurrences using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get NS LCN OP Occurences with fields attribute selector + Log Query status information about multiple NS lifecycle management operation occurrences, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get NS LCN OP Occurences with exclude_fields attribute selector + Log Query status information about multiple NS lifecycle management operation occurrences, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} + POST Individual NS LCM OP Occurence log Trying to perform a POST. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} @@ -858,8 +916,37 @@ GET Subscriptions Get ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} + +Get subscriptions with all_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?all_fields + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_default attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_default + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} +Get subscriptions with exclude_fields attribute selector + Log Get the list of active subscriptions, using fields + Set Headers {"Accept": "${ACCEPT_JSON}"} + Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} + GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?exclude_fields=${fields} + ${output}= Output response + Set Suite Variable ${response} ${output} -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}"} diff --git a/SOL005/NSLifecycleManagement-API/Subscriptions.robot b/SOL005/NSLifecycleManagement-API/Subscriptions.robot index 4f421ab4..2988a215 100644 --- a/SOL005/NSLifecycleManagement-API/Subscriptions.robot +++ b/SOL005/NSLifecycleManagement-API/Subscriptions.robot @@ -87,6 +87,58 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters Get subscriptions - invalid filter Check HTTP Response Status Code Is 400 Check HTTP Response Body Json Schema Is ProblemDetails + +GET subscriptions with "all_fields" attribute selector + [Documentation] Test ID: 5.3.2.15.7 + ... Test title: GET subscriptions with "all_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.16.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with all_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_default" attribute selector + [Documentation] Test ID: 5.3.2.15.8 + ... Test title: GET subscriptions with "exclude_default" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.16.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_default attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "fields" attribute selector + [Documentation] Test ID: 5.3.2.15.9 + ... Test title: GET subscriptions with "fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.16.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions + +GET subscriptions with "exclude_fields" attribute selector + [Documentation] Test ID: 5.3.2.15.10 + ... Test title: GET subscriptions with "exclude_fields" attribute selector + ... Test objective: The objective is to retrieve the list of active subscriptions with attribute selector + ... Pre-conditions: + ... Reference: section 6.4.16.3.2 - SOL005 v2.4.1 + ... Config ID: Config_prod_NFVO + ... Applicability: + ... Post-Conditions: + Get subscriptions with exclude_fields attribute selector + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is FmSubscriptions PUT subscriptions - Method not implemented [Documentation] Test ID: 5.3.2.15.7 -- GitLab