Subscriptions.robot 3.13 KB
Newer Older
*** Settings ***
Documentation     This resource represents subscriptions. The client can use this resource to subscribe to notifications related to VNF
...               performance management and to query its subscriptions.
Library           JSONSchemaLibrary    schemas/
Resource          environment/variables.txt    # Generic Parameters
Library           REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
Library           OperatingSystem
Library           JSONLibrary
Resource          VNFPerformanceManagementKeywords.robot
Resource          environment/subscriptions.txt
Library           MockServerLibrary
Library           Process
Suite Setup       Create Sessions
Suite Teardown    Terminate All Processes    kill=true
Giacomo Bernini's avatar
Giacomo Bernini committed
GET all VNF Performance Subscriptions  
    Get all VNF Performance Subscriptions
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    PmSubscriptions
Giacomo Bernini's avatar
Giacomo Bernini committed
GET VNF Performance Subscription with attribute-based filter
    Get VNF Performance Subscriptions with attribute-based filters
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    PmSubscriptions
    Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter 
GET VNF Performance Management Subscription with invalid attribute-based filter
Giacomo Bernini's avatar
Giacomo Bernini committed
    Get VNF Performance Subscriptions with invalid attribute-based filters
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is   ProblemDetails 
Giacomo Bernini's avatar
Giacomo Bernini committed
GET VNF Performance Subscription with invalid resource endpoint
    Get VNF Performance Subscriptions with invalid resource endpoint
    Check HTTP Response Status Code Is    404
    
    
Giacomo Bernini's avatar
Giacomo Bernini committed
Create new VNF Performance subscription
    Send Post Request for VNF Performance Subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    PmSubscription
    Check HTTP Response Body Matches the Subscription
Giacomo Bernini's avatar
Giacomo Bernini committed
    Check Postcondition VNF Performance Subscription Is Set 
Giacomo Bernini's avatar
Giacomo Bernini committed
Create duplicated VNF Performance subscription with duplication handler
    Send Post Request for Duplicated VNF Performance Subscription
    Check HTTP Response Status Code Is    303
Giacomo Bernini's avatar
Giacomo Bernini committed
    Check HTTP Response Body Is Empty
    Check HTTP Response Header Contains    Location
Giacomo Bernini's avatar
Giacomo Bernini committed
Create duplicated VNF Performance subscription without duplication handler
    Send Post Request for Duplicated VNF Performance Subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    PmSubscription
    Check HTTP Response Body Matches the Subscription
Giacomo Bernini's avatar
Giacomo Bernini committed
    Check Postcondition VNF Performance Subscription Is Set 
Giacomo Bernini's avatar
Giacomo Bernini committed
PUT VNF Performance Subscriptions - Method not implemented
    Send Put Request for VNF Performance Subscriptions
    Check HTTP Response Status Code Is    405
    
    
Giacomo Bernini's avatar
Giacomo Bernini committed
PATCH VNF Performance Subscriptions - Method not implemented
    Send Patch Request for VNF Performance Subscriptions
    Check HTTP Response Status Code Is    405
    
        
Giacomo Bernini's avatar
Giacomo Bernini committed
DELETE VNF Performance Subscriptions - Method not implemented
    Send Delete Request for VNF Performance Subscriptions
    Check HTTP Response Status Code Is    405