CreateNSInstanceWorkflow.robot 1.61 KB
Newer Older
AHMADABB's avatar
AHMADABB committed
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}     ssl_verify=false
AHMADABB's avatar
AHMADABB committed
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
AHMADABB's avatar
AHMADABB committed

AHMADABB's avatar
AHMADABB committed

*** Test Cases ***
AHMADABB's avatar
AHMADABB committed

AHMADABB's avatar
AHMADABB committed
NS Instance Creation
root's avatar
root committed
    [Documentation]    Test ID: 5.3.2.18.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: NS Instance Creation
    ...    Test objective: The objective is to test the workflow for Creating a NS instance
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.3.1 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS lifecycle management operation occurrence is in NOT_ISTANTIATED state
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
Frank Bryden's avatar
Frank Bryden committed
    Check HTTP Response Body Json Schema Is    NsInstance
    Check resource not_instantiated    1
AHMADABB's avatar
AHMADABB committed
    
NS Instance Creation with DISABLED nsd
    [Documentation]    Test ID: 5.3.2.18.2
    ...    Test title: NS Instance Creation with DISABLED nsd
    ...    Test objective: The objective is to test the workflow for Creating a NS instance with a disabled NSD
    ...    Pre-conditions: One or more Network Service Descriptors are onboarded in the NFVO in disabled operational state.
    ...    Reference: Clauses 6.4.2.3.1 and 5.4.3.3.4 - ETSI GS NFV-SOL 005 [3] v2.6.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    POST New nsInstance with DISABLED nsd
    Check HTTP Response Status Code Is    409