...Test title: Create a new Fault Management alarm subscription
...Test objective: The objective is to create a new Fault management alarm subscriptions and perform a JSON schema and content validation of the returned fault management alarms subscription data structure
...Pre-conditions: No subscription with the same filter and callbackUri exists
...Reference: section 7.4.4.3.1 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
POST Subscription
Check HTTP Response Status Code Is201
Check HTTP Response Header ContainsLocation
Check HTTP Response Body Json Schema IsFmSubscription
Create a new Subscription - DUPLICATION
[Documentation]Test ID: 7.4.4.2
Create a new alarm subscription - DUPLICATION
[Documentation]Test ID: 7.3.5.3.2
...Test title: Create a new alarm subscription - DUPLICATION
...Test objective: The objective is to create a new subscription.
...Test objective: The objective is to create a new subscription with the VNF allowing duplication and perform a JSON schema and content validation of the returned fault management alarms subscription data structure.
...Pre-conditions: subscription with the same filter and callbackUri exists
...Reference: section 7.4.4 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: the VNFM allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists
...Post-Conditions:
LogTrying to create a subscription with an already created content
Pass Execution If${VNFM_DUPLICATION}== 0VNFM is not permitting duplication. Skipping the test
Set Headers{"Accept": "${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists
...Post-Conditions: none
Depends On TestCreate a new subscription
POST Subscription Duplication permitted
Check HTTP Response Status Code Is201
Check HTTP Response Header ContainsLocation
Check HTTP Response Body Json Schema IsFmSubscription
Create a new Subscription - NO-DUPLICATION
[Documentation]Test ID: 7.4.4.3
Create a new alarm subscription - NODUPLICATION
[Documentation]Test ID: 7.3.5.3.3
...Test title: Create a new alarm subscription - NO DUPLICATION
...Test objective: The objective is to create a new subscription.
...Test objective: The objective is to create a new subscription with the VNF not allowing duplication and perform a JSON schema and content validation of the returned fault management alarms subscription data structure.
...Pre-conditions: subscription with the same filter and callbackUri exists
...Reference: section 7.4.4 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: the VNFM decides to not create a duplicate subscription resource
...Post-Conditions:
LogTrying to create a subscription with an already created content
Pass Execution If${VNFM_DUPLICATION}== 1VNFM permits duplication. Skipping the test
Set Headers{"Accept": "${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Test objective: The objective is to retrieve the list of active subscriptions and perform a JSON schema and content validation of the returned fault management alarms subscription data structure.
...Pre-conditions: none
...Reference: section 7.4.4.3.2 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Applicability:none
...Post-Conditions: noe
GET Subscriptions
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsFmSubscriptions
Retrieve a list of alarm subscriptions with filter
[Documentation]Test ID: 7.3.5.3.5
...Test title: Retrieve a list of alarm subscriptions with filter
...Test objective: The objective is to retrieve the list of active subscriptions with filter and perform a JSON schema and content validation of the returned fault management alarms subscription data structure.
...Pre-conditions: none
...Reference: section 7.4.4.3.2 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Applicability:none
...Post-Conditions: none
GET Subscriptions with filter
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema IsFmSubscriptions
GET subscriptions - Bad Request Invalid attribute-based filtering parameters
[Documentation]Test ID: 7.4.4.5-1
...Test title: Retrieve a list of alarm subscriptions
...Test objective: The objective is to retrieve the list of active subscriptions with Invalid attribute-based filtering parameters
...Pre-conditions:
...Reference: section 7.4.4 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
LogGet the list of active subscriptions using an invalid filter
Set Headers{"Accept": "${ACCEPT}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
...Test title: GET subscriptions - Bad Request Invalid attribute-based filtering parameters
...Test objective: The objective is to retrieve the list of active subscriptions with Invalid attribute-based filtering parameters and perform a JSON schema and content validation of the returned problem details data structure.
...Pre-conditions: none
...Reference: section 7.4.4.3.2 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Applicability:none
...Post-Conditions:none
GET Subscriptions with Invalid filter
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
PUT subscriptions - Method not implemented
logTrying to perform a PUT. This method should not be implemented
Set Headers{"Accept":"${ACCEPT}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}