[Teardown]#We cannot know if the "scale" operation is finished easily because the 202 indicates only whether the operation has been accepted, not whether the operation has been finished
Post Cancel operation task Not Found
Post Cancel operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
...Test objective: The objective is to test the workflow for Cancelling a VNF LCM Operation
...Pre-conditions: The VNF lifecycle management operation occurrence is in STARTING state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
...Reference: section 5.3.10 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: NFVO is able to receive notifications from VNFM
...Post-Conditions: The VNF lifecycle management operation occurrence is in ROLLED_BACK state
Send Cancel Operation Request
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id
Check Operation Notification For CancelROLLED_BACK
Check Postcondition VNF Cancel - STARTING
Cancel a VNF LCM Operation - PROCESSING - ROLLING_BACK
[Documentation]Test ID: 5.x.x.x
...Test title: Cancel a VNF LCM Operation
...Test objective: The objective is to test the workflow for Cancelling a VNF LCM Operation
...Pre-conditions: The VNF lifecycle management operation occurrence is in PROCESSING or ROLLING_BACK state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
...Reference: section 5.3.10 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: NFVO is able to receive notifications from VNFM
...Post-Conditions: The VNF lifecycle management operation occurrence is in FAILED_TEMP state
Send Cancel Operation Request
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id
Check Operation Notification For CancelFAILED_TEMP
...Test objective: The objective is to test the workflow for a Fail VNF LCM Operation
...Pre-conditions: The VNF lifecycle management operation occurrence is in FAILED_TEMP state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
...Reference: section 5.3.10 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: NFVO is able to receive notifications from VNFM
...Post-Conditions: The VNF lifecycle management operation occurrence is in FAILED state
Send Fail Operation Request
Check Operation Notification For FailFAILED
Check HTTP Response Status Code Is200#the order of notification and the response code is not defined. How to implement this?
Check Postcondition VNF Fail
*** Keywords ***
Initialize System
Create Sessions
Precondition Checks
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
...Test title: Roll back VNF LCM Operation - Successful
...Test objective: The objective is to test the workflow for a Rolling Back a VNF LCM Operation and the operation is successful
...Pre-conditions: The VNF lifecycle management operation occurrence is in FAILED_TEMP state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
...Reference: section 5.3.11 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: NFVO is able to receive notifications from VNFM
...Post-Conditions: The VNF lifecycle management operation occurrence is in ROLLED_BACK state
Send Roll back Operation Request
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id
Check Operation Notification For Roll BackROLLING_BACK
Check Operation Notification For Roll BackROLLED_BACK
...Test objective: The objective is to test the workflow for a Retry VNF LCM Operation and the operation is not successful
...Pre-conditions: The VNF lifecycle management operation occurrence is in FAILED_TEMP state. NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
...Reference: section 5.3.10 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: NFVO is able to receive notifications from VNFM
...Post-Conditions: The VNF lifecycle management operation occurrence is in FAILED_TEMP state
Send Roll back Operation Request
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id
Check Operation Notification For Roll BackROLLING_BACK
Check Operation Notification For Roll BackFAILED_TEMP
Check Postcondition VNF Roll Back UnSuccessful
*** Keywords ***
Initialize System
Create Sessions
Precondition Checks
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}