Skip to content
Subscriptions.robot 1.52 KiB
Newer Older
*** 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 subscription
AHMADABB's avatar
AHMADABB committed
    POST subscriptions
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    subscription
    

Create a new Subscription - DUPLICATION
AHMADABB's avatar
AHMADABB committed
    POST subscriptions DUPLICATION
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is    subscription

Create a new Subscription - NO-DUPLICATION
AHMADABB's avatar
AHMADABB committed
    POST subscriptions NO DUPLICATION
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location

GET Subscriptions
AHMADABB's avatar
AHMADABB committed
    GET Subscriptions
    Check HTTP Response Status Code Is  200
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is  subscriptions

GET Subscription - Filter
AHMADABB's avatar
AHMADABB committed
    GET Subscriptions with filter
    Check HTTP Response Status Code Is  200
AHMADABB's avatar
AHMADABB committed
    Check HTTP Response Body Json Schema Is  subscriptions
    
PUT subscriptions - Method not implemented
AHMADABB's avatar
AHMADABB committed
    PUT subscriptions
    Check HTTP Response Status Code Is    405

PATCH subscriptions - Method not implemented
AHMADABB's avatar
AHMADABB committed
    PATCH subscriptions
    Check HTTP Response Status Code Is    405

DELETE subscriptions - Method not implemented
AHMADABB's avatar
AHMADABB committed
    DELETE subscriptions
    Check HTTP Response Status Code Is    405