Skip to content
NSInstances.robot 1.78 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 ***
Create a new NsInstance
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
    Check HTTP Response Header ContentType is    ${CONTENT_TYPE}
    Check HTTP Response Body Json Schema Is    NsInstance.schema.json

Get information about multiple NS instances  
AHMADABB's avatar
AHMADABB committed
    GET NsInstances
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    NsInstances.schema.json  
    
Get information about multiple NS instances Bad Request Invalid attribute-based filtering parameters
AHMADABB's avatar
AHMADABB committed
    GET NsInstance Invalid Attribute-Based filtering parameter
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    400
    Check HTTP Response Header ContentType is    ${CONTENT_TYPE}
    Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
    
Get information about multiple NS instances Bad Request Invalid attribute selector
AHMADABB's avatar
AHMADABB committed
    GET NsInstance Invalid Attribute Selector
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    400
    Check HTTP Response Header ContentType is    ${CONTENT_TYPE}
    Check HTTP Response Body Json Schema Is    ProblemDetails.schema.json
    
PUT NSInstances - Method not implemented
AHMADABB's avatar
AHMADABB committed
    PUT NSInstances
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405
    
PATCH NSInstances - Method not implemented
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
AHMADABB's avatar
AHMADABB committed
    DELETE NSInstances
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Status Code Is    405