Skip to content
Snippets Groups Projects
HealVNFWorkflow.robot 1.61 KiB
Newer Older
*** Settings ***
Resource    environment/variables.txt
Resource    VnfLcmMntOperationKeywords.robot
Resource    SubscriptionKeywords.robot
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}       ssl_verify=false 
Library    OperatingSystem
Library    BuiltIn
Library    Collections
Library    JSONLibrary
Library    Process
Suite Setup    Initialize System
Suite Teardown    Terminate All Processes    kill=true

*** Test Cases ***
Heal a VNF Instance
    [Documentation]    Test ID: 7.3.1.25.1
    ...    Test title: Heal a VNF Instance
    ...    Test objective: The objective is to heal a VNF instance.
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Pre-conditions: VNF instance in INSTANTIATED state 
Hammad Zafar's avatar
Hammad Zafar committed
    ...    Reference: Clause 5.4.9 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: NFVO is able to receive notifications from VNFM. Heal a VNF instance is supported for the VNF (as capability in the VNFD)
    ...    Post-Conditions: VNF instance still in INSTANTIATED state 
    Send Heal VNF Request
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location 
aureliano sinatra's avatar
aureliano sinatra committed
    Check Operation Occurrence Id existence
mengxuan.zhao's avatar
mengxuan.zhao committed
    Check Operation Notification For Heal    STARTING
    Check Operation Notification For Heal    PROCESSING
    Check Operation Notification For Heal    COMPLETED
    Check Postcondition VNF Heal

*** Keywords ***

Initialize System
    Create Sessions
    
Check Postcondition VNF Heal
    Check resource Instantiated

mengxuan.zhao's avatar
mengxuan.zhao committed
Check Operation Notification For Heal 
    [Arguments]    ${status}
    Check Operation Notification    VnfLcmOperationOccurrenceNotification   ${status}