@@ -12,7 +13,7 @@ POST Alarms - Method not implemented
...Test title: POST Alarms - Method not implemented
...Test objective: The objective is to test that the method is not implemented
...Pre-conditions:
...Reference: clause 7.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
...Reference: clause 7.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions: none
@@ -24,7 +25,7 @@ GET information about multiple alarms
...Test title: GET information about multiple alarms
...Test objective: The objective is to retrieve information about the alarm list
...Pre-conditions:
...Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
...Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
@@ -37,7 +38,7 @@ GET information about multiple alarms with attribute-based filter
...Test title: GET information about multiple alarms with attribute-based filter
...Test objective: The objective is to retrieve information about the alarm list
...Pre-conditions:
...Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
@@ -50,7 +51,7 @@ GET information about multiple alarms with invalid attribute-based filter
...Test title: GET information about multiple alarms with invalid attribute-based filter
...Test objective: The objective is to retrieve information about the alarm list
...Pre-conditions:
...Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
...Reference: clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
@@ -58,12 +59,65 @@ GET information about multiple alarms with invalid attribute-based filter
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
GET information about multiple alarms with "all_fields" attribute selector
[Documentation]Test ID: 6.3.4.1.5
...Test title: GET information about multiple alarms with "all_fields" attribute selector
...Test objective: The objective is to retrieve information about the alarm list
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with all_fields attribute selector
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
GET information about multiple alarms with exclude_default attribute selector
[Documentation]Test ID: 6.3.4.1.6
...Test title: GET information about multiple alarms with "exclude_default" attribute selector
...Test objective: The objective is to retrieve information about the alarm list
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with exclude_default attribute selector
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
GET information about multiple alarms with fields attribute selector
[Documentation]Test ID: 6.3.4.1.7
...Test title: GET information about multiple alarms with fields attribute selector
...Test objective: The objective is to retrieve information about the alarm list
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with fields attribute selector
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
GET information about multiple alarms with "exclude_fields" attribute selector
[Documentation]Test ID: 6.3.4.1.8
...Test title: GET information about multiple alarms with "exclude_fields" attribute selector
...Test objective: The objective is to retrieve information about the alarm list
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions: none
GET Alarms Task with exclude_fields attribute selector
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
PUT Alarms - Method not implemented
[Documentation]Test ID: 6.3.4.1.9
...Test title: PUT Alarms - Method not implemented
...Test objective: The objective is to test that the method is not implemented
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
...Reference: clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions: none
@@ -75,7 +129,7 @@ PATCH Alarms - Method not implemented
...Test title: PATCH Alarms - Method not implemented
...Test objective: The objective is to test that the method is not implemented
...Pre-conditions:
...Reference: clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
...Reference: clause 7.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions: none
@@ -87,13 +141,123 @@ DELETE Alarms - Method not implemented
...Test title: DELETE Alarms - Method not implemented
...Test objective: The objective is to test that the method is not implemented
...Pre-conditions:
...Reference: clause 7.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
...Reference: clause 7.4.2.3.6 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions: the alarm is not deleted
DELETE Alarms Task
Check HTTP Response Status Code Is405
GET information about multiple alarms to get Paged Response
[Documentation]Test ID: 6.3.4.1.12
...Test title: GET information about multiple alarms to get Paged Response
...Test objective: The objective is to retrieve information about the alarms to get paged response
...Pre-conditions:
...Reference: clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task
Check HTTP Response Status Code Is200
Check LINK in Header
GET information about multiple alarms for Bad Request Response too big
[Documentation]Test ID: 6.3.4.1.13
...Test title: GET information about multiple alarms for Bad Request Response too big
...Test objective: The objective is to test that GET method fail retrieving status information about Alarms when Response is too big, and perform the JSON schema validation of the failed operation HTTP response
...Pre-conditions:
...Reference: clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with invalid filter
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
GET information about alarms with attribute-based filter "id"
[Documentation]Test ID: 6.3.4.1.14
...Test title: GET information about alarms with attribute-based filter "id"
...Test objective: The objective is to retrieve information about the alarm list with alarm filter "id"
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with filter "id"
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarm
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "id"
GET information about multiple alarms with attribute-based filter "vnfcInstanceIds"
[Documentation]Test ID: 6.3.4.1.15
...Test title: GET information about multiple alarms with attribute-based filter "vnfcInstanceIds"
...Test objective: The objective is to retrieve information about the alarm list with attribute filter "vnfcInstanceIds"
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with filter "vnfcInstanceIds"
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "vnfcInstanceIds"
GET information about multiple alarms with attribute-based filter "rootCauseFaultyResource.faultyResourceType"
[Documentation]Test ID: 6.3.4.1.16
...Test title: GET information about multiple alarms with attribute-based filter "rootCauseFaultyResource.faultyResourceType"
...Test objective: The objective is to retrieve information about the alarm list with attribute filter "rootCauseFaultyResource.faultyResourceType"
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with filter "rootCauseFaultyResource_faultyResourceType"
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "rootCauseFaultyResource_faultyResourceType"
GET information about multiple alarms with attribute-based filter "eventType"
[Documentation]Test ID: 6.3.4.1.17
...Test title: GET information about multiple alarms with attribute-based filter "eventType"
...Test objective: The objective is to retrieve information about the alarm list with attribute filter "eventType"
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with filter "eventType"
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "eventType"
GET information about multiple alarms with attribute-based filter "perceivedSeverity"
[Documentation]Test ID: 6.3.4.1.18
...Test title: GET information about multiple alarms with attribute-based filter "perceivedSeverity"
...Test objective: The objective is to retrieve information about the alarm list with attribute filter "perceivedSeverity"
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with filter "perceivedSeverity"
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "perceivedSeverity"
GET information about multiple alarms with attribute-based filter "probableCause"
[Documentation]Test ID: 6.3.4.1.19
...Test title: GET information about multiple alarms with attribute-based filter "probableCause"
...Test objective: The objective is to retrieve information about the alarm list with attribute filter "probableCause"
...Pre-conditions:
...Reference: clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
GET Alarms Task with filter "probableCause"
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isalarms
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "probableCause"
*** Keywords ***
POST Alarms Task
logTrying to perform a POST. This method should not be implemented
@@ -193,3 +357,89 @@ Check HTTP Response Body Json Schema Is
${schema}=CatenateSEPARATOR=${input}.schema.json
Validate Json${schema}${response['body']}
LogJson Schema Validation OK
Check LINK in Header
${linkURL}=Get Value From Json${response.headers}$..Link
Should Not Be Empty${linkURL}
GET Alarms Task with filter "id"
LogQuery VNF The GET method queries information about multiple alarms with filters "id".
Set Headers{"Accept":"${ACCEPT}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}