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 ***
[Documentation] Test ID: 7.3.1.21.1
... Test title: Change VNF Flavour Workflow
... Test objective: The objective is to test the workflow for a change flavour of an existing VNF instance
... Pre-conditions: VNF instance in INSTANTIATED state . NFVO is subscribed to VNF LCM Operation Occurrence notifications
... Reference: Clause 5.4.7 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Applicability: Multiple flavours are supported for the VNF (as capability in the VNFD). NFVO is able to receive notifications from VNFM
... Post-Conditions: VNF instance still in INSTANTIATED state and the flavour is changed
Check HTTP Response Status Code Is 202
Check HTTP Response Header Contains Location
Check Operation Notification For Change Flavour STARTING
Check Operation Notification For Change Flavour PROCESSING
Check Operation Notification For Change Flavour COMPLETED
Check Postcondition VNF Flavor Changed
#Create a new Grant Sync - CHANGE_FLAVOU Scale REMOVED
*** Keywords ***
Initialize System
Create Sessions
${changeVnfFlavourRequest}= evaluate json.loads('''${body}''') json
${requestedFlavour}= Get Value From Json ${changeVnfFlavourRequest} $..newFlavourId
Check resource instantiated
${newFlavour}= Get Vnf Flavour Info ${vnfInstanceId}
Should be Equal ${requestedFlavour} ${newFlavour}
Check Operation Notification VnfLcmOperationOccurrenceNotification ${status}