[Documentation]The client can use this method for reading an individual performance report.
...This method shall follow the provisions specified in the tables 6.4.4.3.2-1 and 6.4.4.3.2-2 for URI query parameters,
...request and response data structures, and response codes.
Get Individual Performance Report
[Documentation]Test ID: 6.3.3.3.1
...Test title: Get Individual Performance Report
...Test objective: The objective is to test the retrieval of an individual VNF performance report associated to a monitoring job and perform a JSON schema validation of the collected report data structure
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance reports are set for a monitoring job in the VNFM.
...Reference: section 6.4.4.3.2 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
Get Individual Performance Report
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsPerformanceReport
Get Individual Performance Report with invalid resource endpoint
[Documentation]Test ID: 6.3.3.3.2
...Test title: Get Individual Performance Report
...Test objective: The objective is to test the retrieval of an individual VNF performance report associated to a monitoring job and perform a JSON schema validation of the collected report data structure
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance reports are set for a monitoring job in the VNFM.
...Reference: section 6.4.4.3.2 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
Get Individual Performance Report with invalid resource endpoint
Check HTTP Response Status Code Is404
Check HTTP Response Body Json Schema IsProblemDetails
POST Individual Performance Report - Method not implemented
[Documentation]Test ID: 6.3.3.3.3
...Test title: POST Individual Performance Report - Method not implemented
...Test objective: The objective is to test that POST method is not allowed to create a new VNF performance report within a monitoring job
...Pre-conditions: A VNF instance is instantiated.
...Reference: section 6.4.4.3.1 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: The VNF performance report is not created on the VNFM
Send Post request for Individual Performance Report
Check HTTP Response Status Code Is405
Check Postcondition VNF Individual Performance Report is not Created
PUT Individual Performance Report - Method not implemented
[Documentation]Test ID: 6.3.3.3.4
...Test title: PUT Individual Performance Report - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed to update an existing VNF performance report within a monitoring job
...Pre-conditions: A VNF instance is instantiated.
...Reference: section 6.4.4.3.3 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: The VNF performance report is not modified by the operation
Send Put request for Individual Performance Report
Check HTTP Response Status Code Is405
Check Postcondition VNF Individual Performance Report is Unmodified (Implicit)
PATCH Individual Performance Report - Method not implemented
[Documentation]Test ID: 6.3.3.3.5
...Test title: PATCH Individual Performance Report - Method not implemented
...Test objective: The objective is to test that PATCH method is not allowed to modify an existing VNF performance report within a monitoring job
...Pre-conditions: A VNF instance is instantiated.
...Reference: section 6.4.4.3.4 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: The VNF performance report is not modified by the operation
Send Patch request for Individual Performance Report
Check HTTP Response Status Code Is405
Check Postcondition VNF Individual Performance Report is Unmodified (Implicit)
DELETE Individual Performance Report - Method not implemented
[Documentation]Test ID: 6.3.3.3.6
...Test title: DELETE Individual Performance Report - Method not implemented
...Test objective: The objective is to test that DELET method is not allowed to delete an existing VNF performance report within a monitoring job
...Pre-conditions: A VNF instance is instantiated.
...Reference: section 6.4.4.3.5 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: The VNF performance report is not deleted by the operation
Send Delete request for Individual Performance Report
[Documentation]The client can use this method to query information about thresholds.
...This method shall follow the provisions specified in the tables 6.4.5.3.2-1 and 6.4.5.3.2-2 for URI query parameters,
...request and response data structures, and response codes.
GET All Performance Thresholds
[Documentation]Test ID: 6.3.3.4.1
...Test title: GET all VNF Performance Thresholds
...Test objective: The objective is to test the retrieval of all the available VNF performance thresholds and perform a JSON schema validation of the collected thresholds data structure
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
...Reference: section 6.4.5.3.2 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
GET all Performance Thresholds
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsThresholds
GET Performance Thresholds with attribute-based filter
[Documentation]Test ID: 6.3.3.4.2
...Test title: GET VNF Performance Thresholds with attribute-based filter
...Test objective: The objective is to test the retrieval of all the available VNF performance thresholds when using attribute-based filters, perform a JSON schema validation of the collected thresholds data structure, and verify that the retrieved information matches the issued attribute-based filter
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
...Reference: section 6.4.5.3.2 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
GET Performance Thresholds with attribute-based filter
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsThresholds
Check HTTP Response Body Matches filter
GET Performance Thresholds with invalid attribute-based filter
[Documentation]Test ID: 6.3.3.4.3
...Test title: GET VNF Performance Thresholds with invalid attribute-based filter
...Test objective: The objective is to test that the retrieval of VNF performance thresholds fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
...Reference: section 6.4.5.3.2 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
GET Performance Thresholds with invalid attribute-based filter
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
GET Performance Thresholds with invalid resource endpoint
[Documentation]Test ID: 6.3.3.4.4
...Test title: GET VNF Performance Thresholds with invalid resource endpoint
...Test objective: The objective is to test that the retrieval of VNF performance thresholds fails when using invalid resource endpoint, and perform the JSON schema validation of the failed operation HTTP response
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
...Reference: section 6.4.5.3.2 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
GET VNF Performance Thresholds with invalid resource endpoint
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
Create new Performance Threshold
[Documentation]Test ID: 6.3.3.4.5
...Test title:Create a new VNF Performance Threshold
...Test objective: The objective is to test the creation of a new VNF performance threshold and perform the JSON schema validation of the returned threshold data structure
...Pre-conditions: A VNF instance is instantiated.
...Reference: section 6.4.5.3.1 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: The VNF Performance Threshold is successfully created on the VNFM
Send Post Request Create new Performance Threshold
Check HTTP Response Status Code Is201
Check HTTP Response Body Json Schema IsThreshold
Check HTTP Response Header ContainsLocation
Check Postcondition Threshold Exists
PUT Performance Thresholds - Method not implemented
[Documentation]Test ID: 6.3.3.4.5
...Test title: PUT all VNF Performance Thresholds - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed to modify VNF Performance Thresholds
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNF.
...Reference: section 6.4.5.3.3 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
Send PUT Request for all Performance Thresholds
Check HTTP Response Status Code Is405
PATCH Performance Thresholds - Method not implemented
[Documentation]Test ID: 6.3.3.4.6
...Test title: PATCH all VNF Performance Thresholds - Method not implemented
...Test objective: The objective is to test that PATCH method is not allowed to modify VNF Performance Thresholds
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
...Reference: section 6.4.5.3.4 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
Send PATCH Request for all Performance Thresholds
Check HTTP Response Status Code Is405
DELETE Performance Thresholds - Method not implemented
[Documentation]Test ID: 6.3.3.4.7
...Test title: DELETE all VNF Performance Monitoring Thresholds - Method not implemented
...Test objective: The objective is to test that DELETE method is not allowed to update VNF Performance Thresholds
...Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
...Reference: section 6.4.5.3.5 - SOL002 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
Send DELETE Request for all Performance Thresholds
Check HTTP Response Status Code Is405
Check Postcondition Thresholds Exist
*** Keywords ***
GET all Performance Thresholds
LogTrying to get all thresholds present in the VNFM
Set Headers{"Accept": "${ACCEPT_JSON}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": ${AUTHORIZATION}"}