Skip to content
NSInstances.robot 7.63 KiB
Newer Older
AHMADABB's avatar
AHMADABB committed
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} 
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/

*** Test Cases ***
POST Create a new NsInstance
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.1.1
    ...    Test title: POST Create a new NsInstance
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test the creation of a new Ns Instances and perform a JSON schema validation of the collected instance data structure
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Pre-conditions: An NS Instance is already created
    ...    Reference: clause 6.4.2.3.1 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none.
    ...    Post-Conditions: A Ns instance is instantiated.
AHMADABB's avatar
AHMADABB committed
    POST New nsInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    NsInstance
aureliano sinatra's avatar
aureliano sinatra committed
GET information about multiple NS instances  
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.1.2
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET information about multiple NS instances
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test the retrieval of all the available NS Instances and perform a JSON schema and content validation of the collected instance data structure
root's avatar
root committed
    ...    Pre-conditions: An NS Instance is already created
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.2 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none.
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Post-Conditions: none.
AHMADABB's avatar
AHMADABB committed
    GET NsInstances
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    200
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    NsInstances  
aureliano sinatra's avatar
aureliano sinatra committed
GET information about multiple NS instances Bad Request Invalid attribute-based filtering parameters
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.1.3
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET information about multiple NS instances Bad Request Invalid attribute-based filtering parameters
root's avatar
root committed
    ...    Test objective: The objective is to query information about multiple NS instances with Invalid attribute-based filtering parameters
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Pre-conditions: An Ns instance is instantiated, a bad attribute-based filter parameter is either malformed or syntactically incorrect (filter parameters are listed in Table 6.4.2.3.2-1  - SOL005 v2.4.1)
    ...    Reference: clause 6.4.2.3.2 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none.
    ...    Post-Conditions: none.
AHMADABB's avatar
AHMADABB committed
    GET NsInstance Invalid Attribute-Based filtering parameter
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    400
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    ProblemDetails
aureliano sinatra's avatar
aureliano sinatra committed
GET information about multiple NS instances Bad Request Invalid attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.1.4
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET information about multiple NS instances Bad Request Invalid attribute selector
    ...    Test objective: The objective is to query information about multiple NS instances with Invalid attribute selector
root's avatar
root committed
    ...    Pre-conditions: A Ns instance is instantiated, a bad attribute selector parameter is either malformed or syntactically incorrect (filter parameters are listed in Table 6.4.2.3.2-1  - SOL005 v2.4.1)
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.2 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none.
    ...    Post-Conditions: none.
AHMADABB's avatar
AHMADABB committed
    GET NsInstance Invalid Attribute Selector
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    400
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    ProblemDetails
aureliano sinatra's avatar
aureliano sinatra committed
GET NSInstances with "all_fields" attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.1.5
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET NSInstances with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active NSInstances with attribute selector
    ...    Pre-conditions: 
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.2 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Post-Conditions: 
    Get NSInstances with all_fields attribute selector
    Check HTTP Response Status Code Is    200
root's avatar
root committed
    Check HTTP Response Body Json Schema Is   NsInstances 
aureliano sinatra's avatar
aureliano sinatra committed

GET NSInstances with "exclude_default" attribute selector
    [Documentation]    Test ID: 5.3.2.1.6
    ...    Test title: GET NSInstances with "exclude_default" attribute selector
    ...    Test objective: The objective is to retrieve the list of active NSInstances with attribute selector
    ...    Pre-conditions: 
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.2 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Post-Conditions: 
    Get NSInstances with exclude_default attribute selector
    Check HTTP Response Status Code Is    200
root's avatar
root committed
    Check HTTP Response Body Json Schema Is   NsInstances
aureliano sinatra's avatar
aureliano sinatra committed

GET NSInstances with "fields" attribute selector
    [Documentation]    Test ID: 5.3.2.1.7
    ...    Test title: GET NSInstances with "fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active NSInstances with attribute selector
    ...    Pre-conditions: 
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.2 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Post-Conditions: 
    Get NSInstances with fields attribute selector
    Check HTTP Response Status Code Is    200
root's avatar
root committed
    Check HTTP Response Body Json Schema Is   NsInstances
aureliano sinatra's avatar
aureliano sinatra committed

GET NSInstances with "exclude_fields" attribute selector
    [Documentation]    Test ID: 5.3.2.1.8
    ...    Test title: GET NSInstances with "exclude_fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active NSInstances with attribute selector
    ...    Pre-conditions: 
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.2 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Post-Conditions: 
    Get NSInstances with exclude_fields attribute selector
    Check HTTP Response Status Code Is    200
root's avatar
root committed
    Check HTTP Response Body Json Schema Is   NsInstances
aureliano sinatra's avatar
aureliano sinatra committed
        
PUT NSInstances - Method not implemented
    [Documentation]    Test ID: 5.3.2.1.9
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: PUT Individual NS instance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PUT method is not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Pre-conditions: none
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.3 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not modified by the operation
AHMADABB's avatar
AHMADABB committed
    PUT NSInstances
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405
    
PATCH NSInstances - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
     [Documentation]    Test ID: 5.3.2.1.10
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: PATCH NSInstances - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PATCH method is not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Pre-conditions: none
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.4 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not modified by the operation
AHMADABB's avatar
AHMADABB committed
    PATCH NSInstances
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405
AHMADABB's avatar
AHMADABB committed
DELETE NSInstances - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
     [Documentation]    Test ID: 5.3.2.1.11
    ...    Test title: DELETE NSInstances - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that DELETE method is not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Pre-conditions: none
Najam UI Hassan's avatar
Najam UI Hassan committed
    ...    Reference: clause 6.4.2.3.5 - ETSI GS NFV-SOL 005 v2.4.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Post-Conditions: The NS instance is not deleted by the operation
AHMADABB's avatar
AHMADABB committed
    DELETE NSInstances
root's avatar
root committed
    Check HTTP Response Status Code Is    405