...Test title: GET Individual Performance Subscription
...Test objective: The objective is to test the retrieval of individual performance subscription and perform a JSON schema and content validation of the returned subscription data structure.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.9.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 Subscription
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsPmSubscription
Check HTTP Response Body Subscription Identifier matches the requested Subscription
GET Individual Performance Subscription with invalid resource identifier
[Documentation]Test ID: 8.3.2.7.2
...Test title: GET Individual Performance Subscription with invalid resource identifier
...Test objective: The objective is to test that the retrieval of an individual performance subscription fails when using an invalid resource identifier.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.9.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 Subscription with invalid resource identifier
...Test objective: The objective is to test the deletion of an individual performance subscription
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.9.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance Subscription is not available anymore in the NFV-MANO
Send Delete request for individual Performance Subscription
Check HTTP Response Status Code Is204
Check Postcondition Performance Subscription is Deleted
DELETE Individual Performance Subscription with invalid resource identifier
[Documentation]Test ID: 8.3.2.7.4
...Test title: DELETE Individual Performance Subscription with invalid resource identifier
...Test objective: The objective is to test that the deletion of an individual performance subscription fails when using an invalid resource identifier.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.9.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 Subscription with invalid resource identifier
Check HTTP Response Status Code Is404
POST Individual Performance Subscription - Method not implemented
[Documentation]Test ID: 8.3.2.7.5
...Test title: POST Individual Performance Subscription - Method not implemented
...Test objective: The objective is to test that POST method is not allowed to create a new Performance Subscription
...Pre-conditions: An instance is instantiated
...Reference: clause 6.5.9.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance Subscription is not created on the NFV-MANO
Send Post request for individual Performance Subscription
Check HTTP Response Status Code Is405
Check Postcondition Performance Subscription is not Created
PUT Individual Performance Subscription - Method not implemented
[Documentation]Test ID: 8.3.2.7.6
...Test title: PUT Individual Performance Subscription - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed to update an existing Performance subscription.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.9.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance subscription is not modified by the operation
Send Put request for individual Performance Threshold
Check HTTP Response Status Code Is405
Check Postcondition Performance Subscription is Unmodified (Implicit)
PATCH Individual Performance Subscription - Method not implemented
[Documentation]Test ID: 8.3.2.7.7
...Test title: PATCH Individual Performance Subscription - Method not implemented
...Test objective: The objective is to test that PATCH method is not allowed to modify an existing Performance subscription
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.9.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The Performance subscription is not modified by the operation
Send Patch request for individual Performance Threshold
Check HTTP Response Status Code Is405
Check Postcondition Performance Subscription is Unmodified (Implicit)
*** Keywords ***
Check HTTP Response Status Code Is
[Arguments]${expected_status}
Should Be Equal As Strings${response['status']}${expected_status}
LogStatus code validated
Check HTTP Response Body Json Schema Is
[Arguments]${input}
Should Contain${response['headers']['Content-Type']}application/json
${schema}=CatenateSEPARATOR=${input}.schema.json
Validate Json${schema}${response['body']}
LogJson Schema Validation OK
Get Individual Performance Subscription
Set headers{"Accept": "${ACCEPT_JSON}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": ${AUTHORIZATION}"}