...Test title: Change the external connectivity of a VNF instance
...Test objective: The objective is to change the external connectivity of a VNF instance.
...Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
...Reference: section 5.3.3 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: NFVO is able to receive notifications from VNFM. Change the external connectivity of a VNF instance is supported for the VNF (as capability in the VNFD)
...Post-Conditions: VNF instance still in INSTANTIATED state and external connectivity of the VNF is changed
Send Change Ext Connectivity Request
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id
Check Operation Notification For OperateSTARTING
#Create a new Grant - Sync - OPERATE
Check Operation Notification For Change FlavourPROCESSING
Check Operation Notification For Change FlavourCOMPLETED
${LccnSubscriptions}=Check subscriptions about one VNFInstance and operation type${vnfInstanceId}VnfLcmOperationOccurrenceNotificationoperationType=SCALE
Check Postcondition VNF Change Ext Connectivity
Check resource instantiated
${extVLId}=Get Vnf Ext Link Id${vnfInstanceId}
Should be Equal${changeVnfExtConnectivityRequest["extVirtualLinks"][0]["id"]}${extVLId}
Create a new Grant - Sync - OPERATE
Create a new Grant - Synchronous mode${vnfInstanceId}${vnfLcmOpOccId}OPERATE
...Test objective: The objective is to heal a VNF instance.
...Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
...Reference: section 5.3.3 - SOL003 v2.4.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 Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id
Check Operation Notification For OperateSTARTING
#Create a new Grant - Sync - OPERATE
Check Operation Notification For Change FlavourPROCESSING
Check Operation Notification For Change FlavourCOMPLETED
Check Postcondition VNF Heal
*** Keywords ***
Initialize System
Create Sessions
Precondition Checks
Check resource instantiated
${LccnSubscriptions}=Check subscriptions about one VNFInstance and operation type${vnfInstanceId}VnfLcmOperationOccurrenceNotificationoperationType=SCALE
Check Postcondition VNF Heal
Check resource Instantiated
Create a new Grant - Sync - OPERATE
Create a new Grant - Synchronous mode${vnfInstanceId}${vnfLcmOpOccId}OPERATE
...Test objective: The objective is to terminate a VNF instance.
...Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
...Reference: section 5.3.3 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: NFVO is able to receive notifications from VNFM.
...Post-Conditions: VNF instance in NOT_INSTANTIATED state
Send Terminate VNF Request
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id
Check Operation Notification For OperateSTARTING
#Create a new Grant - Sync - OPERATE
Check Operation Notification For Change FlavourPROCESSING
Check Operation Notification For Change FlavourCOMPLETED
Check Postcondition VNF Terminate
*** Keywords ***
Initialize System
Create Sessions
Precondition Checks
Check resource instantiated
${LccnSubscriptions}=Check subscriptions about one VNFInstance and operation type${vnfInstanceId}VnfLcmOperationOccurrenceNotificationoperationType=SCALE
Check Postcondition VNF Terminate
Check resource not Instantiated
Create a new Grant - Sync - OPERATE
Create a new Grant - Synchronous mode${vnfInstanceId}${vnfLcmOpOccId}OPERATE