WARNING! Gitlab maintenance operation scheduled for Monday, 20 April between 12:00 and 14:00 (CET). During this time window, short service interruptions (less than 5 minutes) may occur. Thank you in advance for your understanding.
...Test title: Create a new Fault Management alarm subscription
...Test objective: The objective is to create a new 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
...Pre-conditions: No subscription with the same filter and callbackUri exists
...Reference: section 7.4.4 - SOL003 v2.4.1
...Reference: section 7.4.4.3.1 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Config ID:Config_prod_VNFM
...Applicability:
...Applicability: none
...Post-Conditions:
...Post-Conditions: none
LogCreate subscription instance by POST to ${apiRoot}/${apiName}/${apiVersion}/subscriptions
POST Subscription
Set Headers{"Accept":"${ACCEPT}"}
Check HTTP Response Status Code Is201
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Check HTTP Response Header ContainsLocation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsFmSubscription
...Test title: Create a new alarm subscription - DUPLICATION
...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
...Pre-conditions: subscription with the same filter and callbackUri exists
...Reference: section 7.4.4 - SOL003 v2.4.1
...Reference: section 7.4.4.3.1 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...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
...Applicability: the NFVO allows creating a subscription resource if another subscription resource with the same filter and callbackUri already exists
...Post-Conditions:
...Post-Conditions: none
LogTrying to create a subscription with an already created content
Depends On TestCreate a new subscription
Pass Execution If${VNFM_DUPLICATION}== 0VNFM is not permitting duplication. Skipping the test
POST Subscription Duplication permitted
Set Headers{"Accept": "${ACCEPT}"}
Check HTTP Response Status Code Is201
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Check HTTP Response Header ContainsLocation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsFmSubscription
...Test title: Create a new alarm subscription - NO DUPLICATION
...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
...Pre-conditions: subscription with the same filter and callbackUri exists
...Reference: section 7.4.4 - SOL003 v2.4.1
...Reference: section 7.4.4.3.1 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Config ID:Config_prod_VNFM
...Applicability: the VNFM decides to not create a duplicate subscription resource
...Applicability: the NFVO decides to not create a duplicate subscription resource
...Post-Conditions:
...Post-Conditions: none
LogTrying to create a subscription with an already created content
Depends On TestCreate a new subscription
Pass Execution If${VNFM_DUPLICATION}== 1VNFM permits duplication. Skipping the test
POST Subscription Duplication not permitted
Set Headers{"Accept": "${ACCEPT}"}
Check HTTP Response Status Code Is303
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Check HTTP Response Header ContainsLocation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsFmSubscription
...Test title: Retrieve a list of alarm subscriptions
...Test title: Retrieve a list of alarm subscriptions
...Test objective: The objective is to retrieve the list of active subscriptions
...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:
...Pre-conditions: none
...Reference: section 7.4.4 - SOL003 v2.4.1
...Reference: section 7.4.4.3.2 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Config ID:Config_prod_VNFM
...Applicability:
...Applicability:none
...Post-Conditions:
...Post-Conditions: noe
LogGet the list of active subscriptions
GET Subscriptions
Set Headers{"Accept":"${ACCEPT}"}
Check HTTP Response Status Code Is200
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Check HTTP Response Body Json Schema IsFmSubscriptions
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
Retrieve a list of alarm subscriptions with filter
[Documentation]Test ID: 7.4.4.5
[Documentation]Test ID: 7.3.5.3.5
...Test title: Retrieve a list of alarm subscriptions
...Test title: Retrieve a list of alarm subscriptions with filter
...Test objective: The objective is to retrieve the list of active 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:
...Pre-conditions: none
...Reference: section 7.4.4 - SOL003 v2.4.1
...Reference: section 7.4.4.3.2 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Config ID:Config_prod_VNFM
...Applicability:
...Applicability:none
...Post-Conditions:
...Post-Conditions: none
LogGet the list of active subscriptions using a filter
GET Subscriptions with filter
Set Headers{"Accept": "${ACCEPT}"}
Check HTTP Response Status Code Is200
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsFmSubscriptions
GET subscriptions - Bad Request Invalid attribute-based filtering parameters
GET subscriptions - Bad Request Invalid attribute-based filtering parameters
[Documentation]Test ID: 7.4.4.5-1
[Documentation]Test ID: 7.3.5.3.6
...Test title: Retrieve a list of alarm subscriptions
...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
...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:
...Pre-conditions: none
...Reference: section 7.4.4 - SOL003 v2.4.1
...Reference: section 7.4.4.3.2 - SOL003 v2.4.1
...Config ID:Config_prod_VNFM
...Config ID:Config_prod_VNFM
...Applicability:
...Applicability:none
...Post-Conditions:
...Post-Conditions:none
LogGet the list of active subscriptions using an invalid filter
GET Subscriptions with Invalid filter
Set Headers{"Accept": "${ACCEPT}"}
Check HTTP Response Status Code Is400
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsProblemDetails