IndividualNSInstance.robot 1.36 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 Individual VNFInstance - Method not implemented
    Do POST IndividualNSInstance
    Check HTTP Response Status Code Is    405

Get Information about an individual NS Instance
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.schema.json
AHMADABB's avatar
AHMADABB committed
    
PUT Individual NSInstance - Method not implemented 
    Do PUT IndividualNSInstance
    Check HTTP Response Status Code Is    405

PATCH Individual NSInstance - Method not implemented 
    Do PATCH IndividualNSInstance
    Check HTTP Response Status Code Is    405

DELETE Individual NSInstance
    Do DELETE IndividualNSInstance    
    Check HTTP Response Status Code Is    204

DELETE Individual NSInstance Conflict
    [Setup]    Check resource instantiated
    Do DELETE IndividualNSInstance
    Check HTTP Response Status Code Is    409
    Check HTTP Response Header ContentType is    ${CONTENT_TYPE}
    Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json