...Test objective: The objective is to test the retrieval of an individual NS Performance monitoring job and perform a JSON schema and content validation of the collected job data structure
...Pre-conditions: A NS instance is instantiated. One or more NS Performance jobs are set in the NFVO.
...Reference: section 7.4.3.3.2 - SOL005 v2.4.1
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
GET individual NS Performance Job
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsPmJob
Check HTTP Response Body Pm Job Identifier matches the requested Pm Job
GET Individual PM Job - Negative (Not Found)
LogTrying to perform a negative get, using erroneous PM Job identifier
Set Headers{"Accept": "${ACCEPT_JSON}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
GET individual NS Performance Job with invalid resource identifier
[Documentation]Test ID: 5.3.4.2.2
...Test title: Get individual NS Performance Job with invalid resource identifier
...Test objective: The objective is to test that the retrieval of an individual NS Performance monitoring job fails when using an invalid resource identifier, and perform the JSON schema validation of the failed operation HTTP response
...Pre-conditions: A NS instance is instantiated. One or more NS Performance jobs are set in the NFVO.
...Reference: section 7.4.3.3.2 - SOL005 v2.4.1
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
GET individual NS Performance Job with invalid resource identifier
Check HTTP Response Status Code Is404
Check HTTP Response Body Json Schema IsProblemDetails
DELETE Individual PM Job
LogTrying to delete an existing PM Job
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Test objective: The objective is to test that the deletion of an individual NS Performance monitoring job fails when using an invalid resource identifier
...Pre-conditions: A NS instance is instantiated. One or more NS Performance jobs are set in the NFVO.
...Reference: section 7.4.3.3.5 - SOL005 v2.4.1
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Send Delete request for individual NS Performance Job with invalid resource identifier
Check HTTP Response Status Code Is404
DELETE Individual PM Job - Negative (Not Found)
LogTrying to delete an existing PM Job
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Test objective: The objective is to test the retrieval of an individual NS performance report associated to a monitoring job and perform a JSON schema validation of the collected report data structure
...Pre-conditions: A NS instance is instantiated. One or more NS performance reports are set for a monitoring job in the NFVO.
...Reference: section 7.4.4.3.2 - SOL005 v2.4.1
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Get Individual Performance Report
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsPerformanceReport
GET Report on Single PM Job - Negative (Not Found)
[Documentation]The client can use this resource to read the performance report.
...The URI of this report can be obtained from a PerformanceInformationAvailableNotification
...(see clause 7.5.2.5) or from the representation of the "Individual PM job" resource
Set Headers{"Accept": "${ACCEPT_JSON}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
Get Individual Performance Report with invalid resource endpoint
[Documentation]Test ID: 5.3.4.3.2
...Test title: Get Individual Performance Report with invalid resource endpoint
...Test objective:The objective is to test that the retrieval of an individual NS performance report associated to a monitoring job fails when using an invalid resource endpoint
...Pre-conditions: A NS instance is instantiated. One or more NS performance reports are set for a monitoring job in the NFVO.
...Reference: section 7.4.4.3.2 - SOL005 v2.4.1
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Get Individual Performance Report with invalid resource endpoint
Check HTTP Response Status Code Is404
POST Reports - (Method not implemented)
Pass Execution If${testOptionalMethods}== 0optional methods are not implemented on the FUT. Skipping test.
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}