IndividualNSInstance.robot 3.9 KB
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/
Suite Setup    Check resource existance

*** Test Cases ***
aureliano sinatra's avatar
aureliano sinatra committed
Post Individual NSInstance - Method not implemented
    [Documentation]    Test ID: 5.3.2.2.1
    ...    Test title: Post Individual NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that POST method is not allowed to create a new NS instance
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.1 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not created on the NFVO
AHMADABB's avatar
AHMADABB committed
    POST IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405

Get Information about an individual NS Instance
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.2.2
    ...    Test title: Get Information about an individual NS Instance
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that GET method allow to query an NS instance
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.2 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
    GET IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header ContentType is    ${CONTENT_TYPE}
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    NsInstance
AHMADABB's avatar
AHMADABB committed
    
PUT Individual NSInstance - Method not implemented 
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.2.3
    ...    Test title: PUT Individual NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PUT method is not allowed to create a new NS instance
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.3 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not modified on the NFVO
AHMADABB's avatar
AHMADABB committed
    PUT IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405

PATCH Individual NSInstance - Method not implemented 
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.2.4
    ...    Test title: PATCH Individual NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PATCH method is not allowed to create a new NS instance
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.3.3.4 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is not modified on the NFVO
AHMADABB's avatar
AHMADABB committed
    PATCH IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405

DELETE Individual NSInstance
aureliano sinatra's avatar
aureliano sinatra committed
     [Documentation]    Test ID: 5.3.2.2.5
    ...    Test title: DELETE Individual NSInstance
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that DELETE method is allowed to delete a NS instance
    ...    Pre-conditions: none.
    ...    Reference:  section 6.4.3.3.5 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is deleted from the NFVO
AHMADABB's avatar
AHMADABB committed
    DELETE IndividualNSInstance    
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    204

DELETE Individual NSInstance Conflict
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.2.5
    ...    Test title: DELETE Individual NSInstance Conflict
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that DELETE method is allowed to delete a NS instance
    ...    Pre-conditions: At least one instantiated instance of a NS
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Reference:  section 6.4.3.3.5 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS instance is deleted from the NFVO
AHMADABB's avatar
AHMADABB committed
    DELETE IndividualNSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    409
    Check HTTP Response Header ContentType is    ${CONTENT_TYPE}
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    ProblemDetails