...Test objective: The objective is to test the retrieval of all performance subscriptions and perform a JSON schema validation of the returned subscriptions data structure.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available.
...Reference: clause 6.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Get all Performance Subscriptions
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsPmSubscriptions
GET Performance Subscriptions with attribute-based filter
[Documentation]Test ID: 8.3.2.6.2
...Test title: GET Performance Subscriptions with attribute-based filter
...Test objective: The objective is to test the retrieval of performance subscriptions using attribute-based filter, perform a JSON schema validation of the collected indicators data structure.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available.
...Reference: clause 6.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Get Performance Subscriptions with attribute-based filters
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsPmSubscriptions
GET Performance Management Subscriptions with Paged Response
[Documentation]Test ID: 8.3.2.6.3
...Test title: GET Performance Management Subscriptions with Paged Response
...Test objective: The objective is to query information about NFV-MANO Performance Subscriptions to get Paged Response.
...Pre-conditions:An instance is instantiated. At least one performance subscription is available.
...Reference: clauseclause 6.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability:
...Post-Conditions:
Get all Performance Subscriptions
Check HTTP Response Status Code Is200
Check LINK in Header
GET Performance Subscriptions with invalid attribute-based filter
[Documentation]Test ID: 8.3.2.6.4
...Test title: GET Performance Subscriptions with invalid attribute-based filter
...Test objective: The objective is to test that the retrieval of performance subscriptions fails when using invalid attribute-based filters, and perform the JSON schema validation of the failed operation HTTP response.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available.
...Reference: clause 6.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Get Performance Subscriptions with invalid attribute-based filters
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
GET Performance Subscriptions - Bad Request Response too Big
[Documentation]Test ID: 8.3.2.6.5
...Test title: GET Performance Subscriptions - Bad Request Response too Big
...Test objective: The objective is to test that the retrieval of NFV-MANO performance subscriptions fails when response is too big, and perform the JSON schema validation of the failed operation HTTP response.
...Pre-conditions:An instance is instantiated. At least one performance subscription is available.
...Reference: clause 6.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability:
...Post-Conditions:
Get all Performance Subscriptions
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
GET Performance Subscriptions with invalid resource endpoint
[Documentation]Test ID: 8.3.2.6.6
...Test title: GET Performance Subscriptions with invalid resource endpoint
...Test objective: The objective is to test that the retrieval of all performance subscriptions fails when using invalid resource endpoint.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available.
...Reference: clause 6.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Get Performance Subscriptions with invalid resource endpoint
Check HTTP Response Status Code Is404
Create new Performance subscription
[Documentation]Test ID 8.3.2.6.7
...Test title: Create new Performance subscription
...Test objective: The objective is to test the creation of a new performance subscription and perform a JSON schema and content validation of the returned subscription data structure.
...Pre-conditions: An instance is instantiated.
...Reference: clause 6.5.8.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 successfully set and it matches the issued subscription.
Send Post Request for Performance Subscription
Check HTTP Response Status Code Is201
Check HTTP Response Body Json Schema IsPmSubscription
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
Check Postcondition Performance Subscription Is Set
Create duplicated Performance subscription with NFV-MANO not creating duplicated subscriptions
[Tags]no-duplicated-subs
[Documentation]Test ID 8.3.2.6.8
...Test title: Create duplicated Performance subscription with NFV-MANO not creating duplicated subscriptions
...Test objective: The objective is to test the attempt of a creation of a duplicated performance subscription and check that no new subscription is created by the NFV-MANO and a link to the original subscription is returned
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.8.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: The NFV-MANO does not support the creation of duplicated subscriptions
...Post-Conditions: The existing performance subscription returned is available in the NFV-MANO
Send Post Request for Duplicated Performance Subscription
Check HTTP Response Status Code Is303
Check HTTP Response Body Is Empty
Check HTTP Response Header ContainsLocation
Check Postcondition Subscription Resource Returned in Location Header Is Available
Create duplicated Performance subscription with NFV-MANO creating duplicated subscriptions
...Test objective: The objective is to test the creation of a duplicated performance subscription and perform a JSON schema and content validation of the returned duplicated subscription data structure.
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.8.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: The NFV-MANO supports the creation of duplicated subscriptions
...Post-Conditions: The duplicated performance subscription is successfully set and it matches the issued subscription
Send Post Request for Duplicated Performance Subscription
Check HTTP Response Status Code Is201
Check HTTP Response Body Json Schema IsPmSubscription
Check HTTP Response Body PmSubscription Attributes Values Match the Issued Subscription
Check Postcondition Performance Subscription Is Set
PUT Performance Subscriptions - Method not implemented
[Documentation]Test ID 8.3.2.6.10
...Test title: PUT Performance Subscriptions - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed to modify performance subscriptions
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.8.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Send Put Request for Performance Subscriptions
Check HTTP Response Status Code Is405
PATCH Performance Subscriptions - Method not implemented
[Documentation]Test ID 8.3.2.6.11
...Test title: PATCH Performance Subscriptions - Method not implemented
...Test objective: The objective is to test that PATCH method is not allowed to update performance subscriptions
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.8.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: none
Send Patch Request for Performance Subscriptions
Check HTTP Response Status Code Is405
DELETE Performance Subscriptions - Method not implemented
[Documentation]Test ID 8.3.2.6.12
...Test title: DELETE Performance Subscriptions - Method not implemented
...Test objective: The objective is to test that DELETE method is not allowed to delete performance subscriptions
...Pre-conditions: An instance is instantiated. At least one performance subscription is available in the NFV-MANO.
...Reference: clause 6.5.8.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
...Config ID: Config_prod_NFV-MANO
...Applicability: none
...Post-Conditions: The performance subscriptions are not deleted by the failed operation