...Test objective: The objective is to test the retrieval of an individual NFV-MANO performance threshold and perform a JSON schema and content validation of the collected threshold data structure
...Pre-conditions: A NFV-MANO instance is instantiated. One or more performance thresholds are set.
...Reference: clause 6.5.7.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
GET individual Performance Threshold
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsThreshold
Check HTTP Response Body Threshold Identifier matches the requested Threshold
GET Individual Threshold with invalid resource identifier
[Documentation]Test ID: 8.3.2.5.2
...Test title: GET Individual Threshold with invalid resource identifier
...Test objective: The objective is to test that the retrieval of an individual performance threshold fails when using an invalid resource identifier
...Pre-conditions: A NFV-MANO instance is instantiated. One or more performance jobs are set.
...Reference: clause 6.5.7.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
GET individual Performance Threshold with invalid resource identifier
Check HTTP Response Status Code Is404
DELETE Individual Threshold
[Documentation]Test ID: 8.3.2.5.3
...Test title: DELETE Individual Threshold
...Test objective: The objective is to test the deletion of an individual performance threshold
...Pre-conditions: A NFV-MANO instance is instantiated. One or more performance thresholds are set.
...Reference: clause 6.5.7.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance Threshold is not available anymore in the NFV-MANO
Send Delete request for individual Performance Threshold
Check HTTP Response Status Code Is204
Check Postcondition Performance Threshold is Deleted
DELETE Individual Threshold with invalid resource identifier
[Documentation]Test ID: 8.3.2.5.4
...Test title: DELETE Individual Threshold with invalid resource identifier
...Test objective: The objective is to test the deletion of an individual performance threshold
...Pre-conditions: A NFV-MANO instance is instantiated. One or more performance thresholds are set.
...Reference: clause 6.5.7.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Send Delete request for individual Performance Threshold with invalid resource identifier
Check HTTP Response Status Code Is404
POST Individual Threshold - Method not implemented
[Documentation]Test ID: 8.3.2.5.5
...Test title: POST Individual Threshold - Method not implemented
...Test objective: The objective is to test that POST method is not allowed to create a new Performance Threshold
...Pre-conditions: A NFV-MANO instance is instantiated
...Reference: clause 6.5.7.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance Threshold is not created on the NFV-MANO
Send Post request for individual Performance Threshold
Check HTTP Response Status Code Is405
Check Postcondition Performance Threshold is not Created
PUT Individual Threshold - Method not implemented
[Documentation]Test ID: 8.3.2.5.6
...Test title: PUT Individual Threshold - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed to update an existing Performance threshold
...Pre-conditions: A NFV-MANO instance is instantiated. One or more performance thresholds are set.
...Reference: clause 6.5.7.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance Threshold is not modified by the operation
Send Put request for individual Performance Threshold
Check HTTP Response Status Code Is405
Check Postcondition Performance Threshold is Unmodified (Implicit)
PATCH Individual Threshold - Method not implemented
[Documentation]Test ID: 8.3.2.5.7
...Test title: PATCH Individual Threshold - Method not implemented
...Test objective: The objective is to test that PATCH method is not allowed to modify an existing Performance threshold
...Pre-conditions: A instance is instantiated. One or more performance thresholds are set.
...Reference: clause 6.5.7.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance Threshold is not modified by the operation
Send Patch request for individual Performance Threshold
Check HTTP Response Status Code Is405
Check Postcondition Performance Threshold is Unmodified (Implicit)
*** Keywords ***
GET Individual Performance Threshold
LogTrying to get a Threhsold present in the NFV-MANO
Set Headers{"Accept": "${ACCEPT_JSON}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": ${AUTHORIZATION}"}