ScaleNSTask.robot 3.54 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 ***
POST Scale a nsInstance
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.4.1
    ...    Test title: POST Scale a nsInstance
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that POST method allow to create a Scale NS instance
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.1 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The Scale NS instance is created on the NFVO
AHMADABB's avatar
AHMADABB committed
    POST scale nsInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location

POST Instantiate a nsInstance Conflict
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.4.2
    ...    Test title: POST Instantiate a nsInstance Conflict
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that POST method allow to create a Scale NS instance
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.1 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The Scale NS instance is not created on the NFVO
AHMADABB's avatar
AHMADABB committed
    [Setup]    Check resource not_instantiated
AHMADABB's avatar
AHMADABB committed
    POST scale nsInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    409
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    ProblemDetails
AHMADABB's avatar
AHMADABB committed
    
GET Scale NSInstance- Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
     [Documentation]    Test ID: 5.3.2.4.3
    ...    Test title: GET Scale NSInstance- Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that GET method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.2 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
    GET scale NSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405
    
PUT Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
     [Documentation]    Test ID: 5.3.2.4.4
    ...    Test title: PUT Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.3 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
    PUT scale NSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405
    
PATCH Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.4.5
    ...    Test title: PATCH Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.4 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
    PATCH scale NSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405

DELETE Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.4.6
    ...    Test title: DELETE Scale NSInstance - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference:  section 6.4.5.3.5 - SOL005 v2.4.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
    DELETE scale NSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405