ScaleNSTask.robot 1.22 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 ***
Scale a nsInstance
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

Instantiate a nsInstance Conflict
    [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
    Check HTTP Response Header Contains    ${CONTENT_TYPE}
    Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
    
GET Scale NSInstance- Method not implemented
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
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
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
AHMADABB's avatar
AHMADABB committed
    DELETE scale NSInstance
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405