Commit 071a4a62 authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

minor bugs fix added

parent a998341d
Loading
Loading
Loading
Loading
+57 −57
Original line number Original line Diff line number Diff line
@@ -12,10 +12,10 @@ POST Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.1.1
    [Documentation]    Test ID: 6.3.4.1.1
    ...    Test title: 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
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    POST Alarms Task
    POST Alarms Task
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
@@ -24,11 +24,11 @@ GET information about multiple alarms
    [Documentation]    Test ID: 6.3.4.1.2
    [Documentation]    Test ID: 6.3.4.1.2
    ...    Test title: GET information about multiple alarms
    ...    Test title: GET information about multiple alarms
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: none 
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions:  
    ...    Post-Conditions: none
    GET Alarms Task
    GET Alarms Task
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms    
    Check HTTP Response Body Json Schema Is    alarms    
@@ -36,12 +36,12 @@ GET information about multiple alarms
GET information about multiple alarms with attribute-based filter
GET information about multiple alarms with attribute-based filter
    [Documentation]    Test ID: 6.3.4.1.3
    [Documentation]    Test ID: 6.3.4.1.3
    ...    Test title: 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
    ...    Test objective: The objective is to retrieve information about the alarm list with attribute-based filter
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with filter
    GET Alarms Task with filter
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms
    Check HTTP Response Body Json Schema Is    alarms
@@ -50,11 +50,11 @@ GET information about multiple alarms with invalid attribute-based filter
    [Documentation]    Test ID: 6.3.4.1.4
    [Documentation]    Test ID: 6.3.4.1.4
    ...    Test title: 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
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with invalid filter
    GET Alarms Task with invalid filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails   
    Check HTTP Response Body Json Schema Is    ProblemDetails   
@@ -63,11 +63,11 @@ GET information about multiple alarms with "all_fields" attribute selector
    [Documentation]    Test ID: 6.3.4.1.5
    [Documentation]    Test ID: 6.3.4.1.5
    ...    Test title: GET information about multiple alarms with "all_fields" attribute selector
    ...    Test title: GET information about multiple alarms with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with all_fields attribute selector
    GET Alarms Task with all_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms
    Check HTTP Response Body Json Schema Is    alarms
@@ -76,11 +76,11 @@ GET information about multiple alarms with exclude_default attribute selector
    [Documentation]    Test ID: 6.3.4.1.6
    [Documentation]    Test ID: 6.3.4.1.6
    ...    Test title: GET information about multiple alarms with "exclude_default" attribute selector
    ...    Test title: GET information about multiple alarms with "exclude_default" attribute selector
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with exclude_default attribute selector
    GET Alarms Task with exclude_default attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms
    Check HTTP Response Body Json Schema Is    alarms
@@ -89,11 +89,11 @@ GET information about multiple alarms with fields attribute selector
    [Documentation]    Test ID: 6.3.4.1.7
    [Documentation]    Test ID: 6.3.4.1.7
    ...    Test title: GET information about multiple alarms with fields attribute selector
    ...    Test title: GET information about multiple alarms with fields attribute selector
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: none 
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with fields attribute selector
    GET Alarms Task with fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms
    Check HTTP Response Body Json Schema Is    alarms
@@ -102,10 +102,10 @@ GET information about multiple alarms with "exclude_fields" attribute selector
    [Documentation]    Test ID: 6.3.4.1.8
    [Documentation]    Test ID: 6.3.4.1.8
    ...    Test title: GET information about multiple alarms with "exclude_fields" attribute selector
    ...    Test title: GET information about multiple alarms with "exclude_fields" attribute selector
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    GET Alarms Task with exclude_fields attribute selector
    GET Alarms Task with exclude_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
@@ -115,10 +115,10 @@ PUT Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.1.9
    [Documentation]    Test ID: 6.3.4.1.9
    ...    Test title: PUT Alarms - Method not implemented
    ...    Test title: PUT Alarms - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    PUT Alarms Task
    PUT Alarms Task
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
@@ -127,10 +127,10 @@ PATCH Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.1.10
    [Documentation]    Test ID: 6.3.4.1.10
    ...    Test title: 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
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    PATCH Alarms Task
    PATCH Alarms Task
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
@@ -139,11 +139,11 @@ DELETE Alarms - Method not implemented
    [Documentation]    Test ID: 6.3.4.1.11
    [Documentation]    Test ID: 6.3.4.1.11
    ...    Test title: 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
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: the alarm is not deleted
    ...    Post-Conditions: none
    DELETE Alarms Task
    DELETE Alarms Task
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
@@ -151,24 +151,24 @@ GET information about multiple alarms to get Paged Response
    [Documentation]    Test ID: 6.3.4.1.12
    [Documentation]    Test ID: 6.3.4.1.12
    ...    Test title: GET information about multiple alarms to get Paged Response
    ...    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
    ...    Test objective: The objective is to retrieve information about the alarms to get paged response
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions:  
    ...    Post-Conditions:  none
    GET Alarms Task
    GET Alarms Task
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check LINK in Header 
    Check HTTP Response Header Contain Link
    
    
GET information about multiple alarms for Bad Request Response too big
GET information about multiple alarms for Bad Request Response too big
    [Documentation]    Test ID: 6.3.4.1.13
    [Documentation]    Test ID: 6.3.4.1.13
    ...    Test title: GET information about multiple alarms for Bad Request Response too big
    ...    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
    ...    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: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with invalid filter
    GET Alarms Task with invalid filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
@@ -177,11 +177,11 @@ GET information about alarms with attribute-based filter "id"
    [Documentation]    Test ID: 6.3.4.1.14
    [Documentation]    Test ID: 6.3.4.1.14
    ...    Test title: GET information about alarms with attribute-based filter "id"
    ...    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"
    ...    Test objective: The objective is to retrieve information about the alarm list with alarm filter "id"
    ...    Pre-conditions: 
    ...    Pre-conditions: none 
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with filter "id"
    GET Alarms Task with filter "id"
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarm
    Check HTTP Response Body Json Schema Is    alarm
@@ -191,11 +191,11 @@ GET information about multiple alarms with attribute-based filter "vnfcInstanceI
    [Documentation]    Test ID: 6.3.4.1.15
    [Documentation]    Test ID: 6.3.4.1.15
    ...    Test title: GET information about multiple alarms with attribute-based filter "vnfcInstanceIds"
    ...    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"
    ...    Test objective: The objective is to retrieve information about the alarm list with attribute filter "vnfcInstanceIds"
    ...    Pre-conditions: 
    ...    Pre-conditions: none 
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with filter "vnfcInstanceIds"
    GET Alarms Task with filter "vnfcInstanceIds"
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms 
    Check HTTP Response Body Json Schema Is    alarms 
@@ -205,11 +205,11 @@ GET information about multiple alarms with attribute-based filter "rootCauseFaul
    [Documentation]    Test ID: 6.3.4.1.16
    [Documentation]    Test ID: 6.3.4.1.16
    ...    Test title: GET information about multiple alarms with attribute-based filter "rootCauseFaultyResource.faultyResourceType"
    ...    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"
    ...    Test objective: The objective is to retrieve information about the alarm list with attribute filter "rootCauseFaultyResource.faultyResourceType"
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with filter "rootCauseFaultyResource_faultyResourceType"
    GET Alarms Task with filter "rootCauseFaultyResource_faultyResourceType"
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms 
    Check HTTP Response Body Json Schema Is    alarms 
@@ -219,11 +219,11 @@ GET information about multiple alarms with attribute-based filter "eventType"
    [Documentation]    Test ID: 6.3.4.1.17
    [Documentation]    Test ID: 6.3.4.1.17
    ...    Test title: GET information about multiple alarms with attribute-based filter "eventType"
    ...    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"
    ...    Test objective: The objective is to retrieve information about the alarm list with attribute filter "eventType"
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with filter "eventType"
    GET Alarms Task with filter "eventType"
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms 
    Check HTTP Response Body Json Schema Is    alarms 
@@ -233,11 +233,11 @@ GET information about multiple alarms with attribute-based filter "perceivedSeve
    [Documentation]    Test ID: 6.3.4.1.18
    [Documentation]    Test ID: 6.3.4.1.18
    ...    Test title: GET information about multiple alarms with attribute-based filter "perceivedSeverity"
    ...    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"
    ...    Test objective: The objective is to retrieve information about the alarm list with attribute filter "perceivedSeverity"
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with filter "perceivedSeverity"
    GET Alarms Task with filter "perceivedSeverity"
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms 
    Check HTTP Response Body Json Schema Is    alarms 
@@ -247,11 +247,11 @@ GET information about multiple alarms with attribute-based filter "probableCause
    [Documentation]    Test ID: 6.3.4.1.19
    [Documentation]    Test ID: 6.3.4.1.19
    ...    Test title: GET information about multiple alarms with attribute-based filter "probableCause"
    ...    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"
    ...    Test objective: The objective is to retrieve information about the alarm list with attribute filter "probableCause"
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET Alarms Task with filter "probableCause"
    GET Alarms Task with filter "probableCause"
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    alarms 
    Check HTTP Response Body Json Schema Is    alarms 
@@ -357,7 +357,7 @@ Check HTTP Response Body Json Schema Is
    Validate Json    ${schema}    ${response['body']}
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
    Log    Json Schema Validation OK
    
    
Check LINK in Header
Check HTTP Response Header Contain Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}
    Should Not Be Empty    ${linkURL}
    
    
@@ -426,7 +426,7 @@ GET Alarms Task with filter "perceivedSeverity"
	
	
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "perceivedSeverity"
Check PostCondition HTTP Response Body alarms Matches the requested attribute-based filter "perceivedSeverity"
    :FOR   ${item}   IN  @{response['body']}
    :FOR   ${item}   IN  @{response['body']}
    Should Be Equal As Strings    ${item['perceivedSeverity']}   ${perceivedSeverity}
    Should Be Equal As Strings    ${item['perceivedSeverity']}   ${PerceivedSeverity} 
    END
    END
	
	
GET Alarms Task with filter "probableCause"
GET Alarms Task with filter "probableCause"
+16 −5
Original line number Original line Diff line number Diff line
*** Settings ***
*** Settings ***
# Suite setup     Expect spec    SOL003-VNFLifecycleManagement-API.yaml
Resource    environment/variables.txt  
Resource    environment/variables.txt  
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}     ssl_verify=false
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}     ssl_verify=false
Library    OperatingSystem
Library    OperatingSystem
@@ -15,7 +14,7 @@ POST Alarm - Method not implemented
    [Documentation]    Test ID: 6.3.4.2.1
    [Documentation]    Test ID: 6.3.4.2.1
    ...    Test title: POST Alarm - Method not implemented
    ...    Test title: POST Alarm - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.3.3.1 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.3.3.1 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
@@ -40,7 +39,7 @@ PUT Individual Alarm - Method not implemented
     [Documentation]    Test ID: 6.3.4.2.3
     [Documentation]    Test ID: 6.3.4.2.3
    ...    Test title: PUT Individual Alarm - Method not implemented
    ...    Test title: PUT Individual Alarm - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.3.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.3.3.3 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
@@ -73,6 +72,7 @@ PATCH Individual Alarm - Precondition failed
    PATCH Alarm Task with wrong precondition
    PATCH Alarm Task with wrong precondition
    Check HTTP Response Status Code Is    412
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is     ProblemDetails
    Check HTTP Response Body Json Schema Is     ProblemDetails
    Check Postcondition VNF individual alarm Unmodified (Implicit)
    
    
PATCH Individual Alarm - Conflict
PATCH Individual Alarm - Conflict
    [Documentation]    Test ID: 6.3.4.2.6
    [Documentation]    Test ID: 6.3.4.2.6
@@ -86,16 +86,17 @@ PATCH Individual Alarm - Conflict
    PATCH Alarm Task
    PATCH Alarm Task
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is     ProblemDetails
    Check HTTP Response Body Json Schema Is     ProblemDetails
    Check Postcondition VNF individual alarm Unmodified (Implicit)
    
    
DELETE Individual Alarm - Method not implemented
DELETE Individual Alarm - Method not implemented
    [Documentation]    Test ID: 6.3.4.2.7
    [Documentation]    Test ID: 6.3.4.2.7
    ...    Test title: DELETE Individual Alarm - Method not implemented
    ...    Test title: DELETE Individual Alarm - Method not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Test objective: The objective is to test that the method is not implemented
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: alarm not deleted
    ...    Post-Conditions: none
    DELETE Alarm Task
    DELETE Alarm Task
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
@@ -110,6 +111,7 @@ GET information about an individual alarm - Not Found
    ...    Post-Conditions: none   
    ...    Post-Conditions: none   
    GET Alarm Task
    GET Alarm Task
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is     ProblemDetails


*** Keywords ***
*** Keywords ***
POST Alarm Task
POST Alarm Task
@@ -143,6 +145,9 @@ PATCH Alarm Task with wrong precondition
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ${body}=    Get File    jsons/alarmModifications.json
    ${body}=    Get File    jsons/alarmModifications.json
    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/alarms/${alarmId}
    ${origOutput}=    Output    response
    Set Suite Variable    ${origResponse}    ${origOutput}
    Patch    ${apiRoot}/${apiName}/${apiMajorVersion}/alarms/${alarmId}    ${body}
    Patch    ${apiRoot}/${apiName}/${apiMajorVersion}/alarms/${alarmId}    ${body}
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}	
	Set Global Variable    ${response}    ${outputResponse}	
@@ -190,3 +195,9 @@ Check HTTP Response Body Json Schema Is
    ${schema} =    Catenate    SEPARATOR=    ${input}	.schema.json
    ${schema} =    Catenate    SEPARATOR=    ${input}	.schema.json
    Validate Json    ${schema}    ${response['body']}
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
    Log    Json Schema Validation OK
    
Check Postcondition VNF individual alarm Unmodified (Implicit)
    Log    Check Postcondition subscription is not modified
    GET Alarm Task
    Should Be Equal As Strings    ${origResponse['body']['callbackUri']}    ${response['body']['callbackUri']}
+9 −2
Original line number Original line Diff line number Diff line
@@ -60,14 +60,15 @@ PATCH an individual subscription - Method not implemented
DELETE an individual subscription
DELETE an individual subscription
    [Documentation]    Test ID: 6.3.4.5.5
    [Documentation]    Test ID: 6.3.4.5.5
    ...    Test title: DELETE an individual subscription
    ...    Test title: DELETE an individual subscription
    ...    Test objective: The objective is to test that the deletion of a subscription
    ...    Test objective: The objective is to test that the deletion of a individual subscription resource.
    ...    Pre-conditions: an existing subscription
    ...    Pre-conditions: one or more subscription already exsist
    ...    Reference: Clause 7.4.6.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.6.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: the subscription is deleted
    ...    Post-Conditions: the subscription is deleted
    Delete individual subscription
    Delete individual subscription
    Check HTTP Response Status Code Is    204
    Check HTTP Response Status Code Is    204
    Check Postcondition resource is deleted
    
    
GET Information about an individual subscription - Not Found
GET Information about an individual subscription - Not Found
    [Documentation]    Test ID: 6.3.4.5.6
    [Documentation]    Test ID: 6.3.4.5.6
@@ -80,6 +81,7 @@ GET Information about an individual subscription - Not Found
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    Get individual subscription
    Get individual subscription
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
    
*** Keywords ***
*** Keywords ***
Check resource existence
Check resource existence
@@ -149,3 +151,8 @@ Check HTTP Response Body Json Schema Is
    ${schema} =    Catenate    SEPARATOR=    ${input}	.schema.json
    ${schema} =    Catenate    SEPARATOR=    ${input}	.schema.json
    Validate Json    ${schema}    ${response['body']}
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK
    Log    Json Schema Validation OK

Check Postcondition resource is deleted
    Get individual subscription
    Check HTTP Response Status Code Is    404
    
 No newline at end of file
+13 −7
Original line number Original line Diff line number Diff line
@@ -19,7 +19,8 @@ Create a new subscription
    Post Create subscription
    Post Create subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check resource existence
    Check HTTP Response Header Contain Link
    Check Postcondition resource exists


Create a new Subscription - DUPLICATION
Create a new Subscription - DUPLICATION
     [Documentation]    Test ID: 6.3.4.4.2
     [Documentation]    Test ID: 6.3.4.4.2
@@ -33,6 +34,8 @@ Create a new Subscription - DUPLICATION
    Post Create subscription - DUPLICATION
    Post Create subscription - DUPLICATION
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check HTTP Response Body Json Schema Is    FmSubscription
    Check HTTP Response Header Contain Link
    Check Postcondition Duplicate Subscription exsist
    
    
Create a new Subscription - NO-DUPLICATION
Create a new Subscription - NO-DUPLICATION
    [Documentation]    Test ID: 6.3.4.4.3
    [Documentation]    Test ID: 6.3.4.4.3
@@ -45,6 +48,7 @@ Create a new Subscription - NO-DUPLICATION
    ...    Post-Conditions: duplicated subscription is not created
    ...    Post-Conditions: duplicated subscription is not created
    Post Create subscription - DUPLICATION
    Post Create subscription - DUPLICATION
    Check HTTP Response Status Code Is    303
    Check HTTP Response Status Code Is    303
    Check HTTP Response Header Contain Link


GET Subscriptions
GET Subscriptions
    [Documentation]    Test ID: 6.3.4.4.4
    [Documentation]    Test ID: 6.3.4.4.4
@@ -54,7 +58,7 @@ GET Subscriptions
    ...    Reference: Clause 7.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability:  none
    ...    Applicability:  none
    ...    Post-Conditions: subscription is not deleted
    ...    Post-Conditions: none
    Get subscriptions
    Get subscriptions
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   FmSubscriptions 
    Check HTTP Response Body Json Schema Is   FmSubscriptions 
@@ -169,7 +173,7 @@ DELETE subscriptions - Method not implemented
    ...    Reference: Clause 7.4.5.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.5.3.5 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability:  none
    ...    Applicability:  none
    ...    Post-Conditions: subscription not deleted
    ...    Post-Conditions: none
    DELETE subscriptions
    DELETE subscriptions
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
@@ -181,10 +185,10 @@ GET Subscriptions to get Paged Response
    ...    Reference: Clause 7.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Reference: Clause 7.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.7.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability:  none
    ...    Applicability:  none
    ...    Post-Conditions: subscription is not deleted
    ...    Post-Conditions: none
    Get subscriptions
    Get subscriptions
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check LINK in Header
    Check HTTP Response Header Contain Link
    
    
GET subscriptions - Bad Request Response too Big
GET subscriptions - Bad Request Response too Big
    [Documentation]    Test ID: 6.3.4.4.15
    [Documentation]    Test ID: 6.3.4.4.15
@@ -414,7 +418,7 @@ Check HTTP Response Body Json Schema Is
    Validate Json    ${schema}    ${response['body']}
    Validate Json    ${schema}    ${response['body']}
    Log    Json Schema Validation OK  
    Log    Json Schema Validation OK  
    
    
Check LINK in Header
Check HTTP Response Header Contain Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}
    Should Not Be Empty    ${linkURL}
    
    
@@ -494,9 +498,11 @@ Check PostCondition HTTP Response Body Subscriptions Matches the requested attri
    Should Be Equal As Strings    ${item['filter']['probableCauses']}   ${probableCause}
    Should Be Equal As Strings    ${item['filter']['probableCauses']}   ${probableCause}
    END
    END
    
    
Check resource existence
Check Postcondition resource exists
    Set Headers    {"Accept":"${ACCEPT}"}
    Set Headers    {"Accept":"${ACCEPT}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} 
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} 
    Integer    response status    200
    Integer    response status    200


Check Postcondition Duplicate Subscription exsist
    Should Not Be Equal As Strings    ${response['body']['callbackUri']}    ${subscriptionId} 
 No newline at end of file
+2 −1
Original line number Original line Diff line number Diff line
@@ -14,6 +14,8 @@ ${apiName} vnffm
${apiMajorVersion}     v1
${apiMajorVersion}     v1
${CONTENT_TYPE}    application/json
${CONTENT_TYPE}    application/json


${origResponse}=    httpresponse

${VNFM_ALLOWS_DUPLICATE_SUBS}    0
${VNFM_ALLOWS_DUPLICATE_SUBS}    0


${alarmId}    6fc3539c-e602-4afa-8e13-962fb5a7d81d
${alarmId}    6fc3539c-e602-4afa-8e13-962fb5a7d81d
@@ -52,7 +54,6 @@ ${response}= httpresponse
${vnfcInstanceIds}    []        
${vnfcInstanceIds}    []        
${faultyResourceType}    COMPUTE
${faultyResourceType}    COMPUTE
${eventType}            COMMUNICATIONS_ALARM
${eventType}            COMMUNICATIONS_ALARM
${perceivedSeverity}    CRITICAL
${probableCause}
${probableCause}


${notification_type}	AlarmNotification
${notification_type}	AlarmNotification
 No newline at end of file