Alarms.robot 8.21 KB
Newer Older
*** Settings ***
# Suite setup     Expect spec    SOL003-VNFLifecycleManagement-API.yaml
Resource   environment/variables.txt
Resource   FaultManagement-APIKeyword.robot  
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}     ssl_verify=false
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
Library    OperatingSystem
*** Test Cases ***
POST Alarms - Method not implemented
     [Documentation]    Test ID: 7.3.5.1.1
    ...    Test title: POST Alarms - Method not implemented 
    ...    Test objective: The objective is to test that Post method is not allowed to create Fault management alarms on VNF 
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions:  none
    Send POST request for fault management Alarms
    Check HTTP Response Status Code Is    405

Get information about multiple alarms  
    [Documentation]    Test ID: 7.3.5.1.2
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Test title: Get information about multiple alarms
    ...    Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Fault Management Alarms
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    Alarms
aureliano sinatra's avatar
aureliano sinatra committed
Get information about multiple alarms with filter 
AHMADABB's avatar
AHMADABB committed
    [Documentation]    Test ID: 7.3.5.1.3
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: Get information about multiple alarms with filter
    ...    Test objective: The objective is to retrieve information about the alarm list and perform a JSON schema and content validation of the returned alarms data structure, and verify that the retrieved information matches the issued attribute-based filters 
    ...    Pre-conditions: none 
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Fault Management Alarms With Filters 
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    Alarms

Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters
AHMADABB's avatar
AHMADABB committed
    [Documentation]    Test ID: 7.3.5.1.4
AHMADABB's avatar
AHMADABB committed
    ...    Test title:  Get information about multiple alarms Bad Request Invalid attribute-based filtering parameters
    ...    Test objective: The objective is to try to retrieve information about the alarm list with invalid filters and perform a JSON schema and content validation of the returned problem details data structure
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Fault Management Alarms With Invalid Filters 
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
aureliano sinatra's avatar
aureliano sinatra committed

aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.5.1.5
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void
aureliano sinatra's avatar
aureliano sinatra committed
    
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.5.1.6
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void
aureliano sinatra's avatar
aureliano sinatra committed
    
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.5.1.7
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void
    
Void
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.5.1.8
    ...    Test title: Void
    ...    Test objective: Void
    ...    Pre-conditions: Void
    ...    Reference: Void
    ...    Config ID: Void
    ...    Applicability: Void
    ...    Post-Conditions: Void
    Void 

    
PUT Alarms - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.5.1.9
    ...    Test title: PUT Alarms - Method not implemented 
    ...    Test objective: The objective is to test that PUT method is not allowed to for Fault management alarms on VNF 
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions:  none
    PUT Fault management Alarms
    Check HTTP Response Status Code Is    405

PATCH Alarms - Method not implemented
     [Documentation]    Test ID: 7.3.5.1.10
    ...    Test title: PATCH Alarms - Method not implemented 
    ...    Test objective: The objective is to test that PATCH method is not allowed to for Fault management alarms on VNF 
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions:  none
    PATCH Fault management Alarms
    Check HTTP Response Status Code Is    405

DELETE Alarms - Method not implemented
     [Documentation]    Test ID: 7.3.5.1.11
    ...    Test title: POST Alarms - Method not implemented 
    ...    Test objective: The objective is to test that DELETE method is not allowed for Fault management alarms on VNF 
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions:  none
    DELETE Fault management Alarms
    Check HTTP Response Status Code Is    405
    
Get information about multiple alarms as a Paged Response
    [Documentation]    Test ID: 7.3.5.1.12
    ...    Test title: Get information about multiple alarms as a Paged Response
    ...    Test objective: The objective is to retrieve information about the alarm list as a Paged Response
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Applicability: The VNFM supports response paging for the VNF alarm resources
    ...    Post-Conditions: none
    GET Fault Management Alarms
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Contain Link

GET information about multiple alarms as a Paged Response with nextpage_opauque_marker parameter 
     [Documentation]    Test ID: 7.3.5.1.12a
    ...    Test title: GET information about multiple alarms as a Paged Response with nextpage_opauque_marker parameter  
    ...    Test objective: The objective is to query information about multiple alarms as a Paged Response and retrieve the next page using the nextpage_opaque_marker parameter
Giacomo Bernini's avatar
Giacomo Bernini committed
    ...    Pre-conditions: A request for retrieving multiple alarms as a paged response has been successfully issued (Test ID 7.3.5.1.12)
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: The VNFM supports response paging for the VNF alarm resources
    ...    Post-Conditions: none 
    GET Fault Management Alarms with nextpage_opaque_marker parameter 
    Check HTTP Response Status Code Is    200

  
Get information about multiple alarms - Bad Request Response too Big
    [Documentation]    Test ID: 7.3.5.1.13
    ...    Test title:  Get information about multiple alarms - Bad Request Response too Big
    ...    Test objective: The objective is to try to retrieve information about the alarm list because response is too big and perform a JSON schema and content validation of the returned problem details data structure
    ...    Pre-conditions: none
Sana Zulfiqar's avatar
Sana Zulfiqar committed
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Fault Management Alarms
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
*** Keywords ***
Void
    Log    do nothing