Commit 2fcdfa4f authored by aureliano sinatra's avatar aureliano sinatra
Browse files

added filters

parent 6f04c462
...@@ -30,11 +30,11 @@ GET information about multiple alarms ...@@ -30,11 +30,11 @@ GET information about multiple alarms
... Post-Conditions: ... Post-Conditions:
GET Alarms Task GET Alarms Task
Check HTTP Response Status Code Is 200 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 [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 ... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions: ... Pre-conditions:
... Reference: section 7.4.2.3.3 - SOL002 v2.4.1 ... Reference: section 7.4.2.3.3 - SOL002 v2.4.1
...@@ -44,10 +44,10 @@ GET information about multiple alarms with filters ...@@ -44,10 +44,10 @@ GET information about multiple alarms with filters
GET Alarms Task with filter GET Alarms Task with filter
Check HTTP Response Status Code Is 200 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 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 [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 ... Test objective: The objective is to retrieve information about the alarm list
... Pre-conditions: ... Pre-conditions:
... Reference: section 7.4.2.3.4 - SOL002 v2.4.1 ... 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 ...@@ -56,10 +56,63 @@ GET information about multiple alarms Bad Request Invalid attribute-based filter
... Post-Conditions: ... Post-Conditions:
GET Alarms Task with invalid filter GET Alarms Task with invalid filter
Check HTTP Response Status Code Is 400 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 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 title: PUT Alarms - Method not implemented
... Test objective: The objective is to test that the method is not implemented ... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: ... Pre-conditions:
...@@ -71,7 +124,7 @@ PUT Alarms - Method not implemented ...@@ -71,7 +124,7 @@ PUT Alarms - Method not implemented
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
PATCH Alarms - Method not implemented 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 title: PATCH Alarms - Method not implemented
... Test objective: The objective is to test that the method is not implemented ... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: ... Pre-conditions:
...@@ -83,7 +136,7 @@ PATCH Alarms - Method not implemented ...@@ -83,7 +136,7 @@ PATCH Alarms - Method not implemented
Check HTTP Response Status Code Is 405 Check HTTP Response Status Code Is 405
DELETE Alarms - Method not implemented 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 title: DELETE Alarms - Method not implemented
... Test objective: The objective is to test that the method is not implemented ... Test objective: The objective is to test that the method is not implemented
... Pre-conditions: ... Pre-conditions:
...@@ -138,7 +191,7 @@ GET Alarms Task with filter ...@@ -138,7 +191,7 @@ GET Alarms Task with filter
Log Execute Query and validate response Log Execute Query and validate response
Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${alarm_filter}=${managedObjectId} Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${alarm_filter}=${managedObjectId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable @{response} ${outputResponse}
GET Alarms Task with invalid filter GET Alarms Task with invalid filter
Log Query VNF The GET method queries information about multiple alarms with filters. Log Query VNF The GET method queries information about multiple alarms with filters.
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
...@@ -147,8 +200,35 @@ GET Alarms Task with invalid filter ...@@ -147,8 +200,35 @@ GET Alarms Task with invalid filter
Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${invalid_alarm_filter}=${managedObjectId} Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${invalid_alarm_filter}=${managedObjectId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} 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 Check HTTP Response Status Code Is
[Arguments] ${expected_status} [Arguments] ${expected_status}
Should Be Equal ${response.status_code} ${expected_status} Should Be Equal ${response.status_code} ${expected_status}
Log Status code validated Log Status code validated
...@@ -82,7 +82,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters ...@@ -82,7 +82,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters
Get subscriptions - invalid filter Get subscriptions - invalid filter
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails 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 PUT subscriptions - Method not implemented
[Documentation] Test ID: 6.3.4.4.8 [Documentation] Test ID: 6.3.4.4.8
... Test title: PUT subscriptions - Method not implemented ... Test title: PUT subscriptions - Method not implemented
...@@ -172,6 +226,34 @@ Get subscriptions - invalid filter ...@@ -172,6 +226,34 @@ Get subscriptions - invalid filter
GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid}
${outputResponse}= Output response ${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 PUT subscriptions
log Trying to perform a PUT. This method should not be implemented log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
......
...@@ -45,3 +45,4 @@ ${AlarmNotification} {} ...@@ -45,3 +45,4 @@ ${AlarmNotification} {}
${AlarmClearedNotification} {} ${AlarmClearedNotification} {}
${AlarmListRebuiltNotification} {} ${AlarmListRebuiltNotification} {}
${fields} softwareImages,additionalArtifacts
\ No newline at end of file
...@@ -109,7 +109,34 @@ GET multiple vnfInstances with bad filter ...@@ -109,7 +109,34 @@ GET multiple vnfInstances with bad filter
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?fields=wrong_field GET ${apiRoot}/${apiName}/${apiVersion}/vnf_instances?fields=wrong_field
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} 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 PUT multiple vnfInstances
log Trying to perform a PUT. This method should not be implemented log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
...@@ -745,6 +772,34 @@ Get subscriptions - invalid filter ...@@ -745,6 +772,34 @@ Get subscriptions - invalid filter
GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid}
${outputResponse}= Output response ${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 PUT subscriptions
log Trying to perform a PUT. This method should not be implemented log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
......
...@@ -34,9 +34,9 @@ Get information about multiple alarms ...@@ -34,9 +34,9 @@ Get information about multiple alarms
Check HTTP Response Status Code Is 200 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 filter
[Documentation] Test ID: 7.3.5.1.3 [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 ... 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 ... Pre-conditions: none
... Reference: section 7.4.2.3.2 - SOL003 v2.4.1 ... 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 ...@@ -59,9 +59,61 @@ Get information about multiple alarms Bad Request Invalid attribute-based filter
GET Fault Management Alarms With Invalid Filters GET Fault Management Alarms With Invalid Filters
Check HTTP Response Status Code Is 400 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: 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 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 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 ... Test objective: The objective is to test that PUT method is not allowed to for Fault management alarms on VNF
... Pre-conditions: none ... Pre-conditions: none
......
...@@ -120,7 +120,38 @@ GET Fault Management Alarms With Invalid Filters ...@@ -120,7 +120,38 @@ GET Fault Management Alarms With Invalid Filters
Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${invalid_alarm_filter}=${nsInstanceId} Get ${apiRoot}/${apiName}/${apiVersion}/alarms?${invalid_alarm_filter}=${nsInstanceId}
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} 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 Send POST request for fault management Individual Alarm
log Trying to perform a PUT. This method should not be implemented log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
...@@ -255,7 +286,34 @@ GET Subscriptions with Invalid filter ...@@ -255,7 +286,34 @@ GET Subscriptions with Invalid filter
GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid} GET ${apiRoot}/${apiName}/${apiVersion}/subscriptions?${sub_filter_invalid}
${outputResponse}= Output response ${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 PUT Subscriptions
log Trying to perform a PUT Subscriptions. This method should not be implemented log Trying to perform a PUT Subscriptions. This method should not be implemented
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
......
...@@ -89,9 +89,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters ...@@ -89,9 +89,61 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters
GET Subscriptions with Invalid filter GET Subscriptions with Invalid filter
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails 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: