DocumentationThis task resource represents the "Cancel operation" operation. The client can use this resource to cancel an ongoing VNF lifecycle operation.
Suite setupCheck resource existance
*** Test Cases ***
Post Cancel operation task
[Documentation]The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed or rolled back, i.e.
...the related "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
LogCancel a VNF lifecycle operation if that operation has experienced a temporary failure
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
[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 Fail operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation]Not Found
...Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
...Specifically in case of this task resource, the response code 404 shall also be returned
...if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
...which means that the task resource consequently does not exist.
...In this case, the response body shall be present, and shall contain a ProblemDetails structure, in which the “detail” attribute shall convey more information about the error.
[Setup]Check Fail not supported
logFinal fail an operation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
DocumentationThis task resource represents the "Fail operation" operation.
... The client can use this resource to mark a VNF lifecycle management operation occurrence as "finally failed",
... i.e. change the state of the related VNF LCM operation occurrence resource to "FAILED", if it is not assumed that a subsequent retry or rollback will succeed.
... Once the operation is marked as "finally failed", it cannot be retried or rolled back anymore.
Suite setupCheck resource existance
*** Test Cases ***
Post Fail operation task
[Documentation]The POST method marks a VNF lifecycle management operation occurrence as "finally failed" if that operation occurrence is in "FAILED_TEMP" state.
LogFinal fail a VNF lifecycle operation if that operation has experienced a temporary failure
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
[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 Fail operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation]Not Found
...Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
...Specifically in case of this task resource, the response code 404 shall also be returned
...if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
...which means that the task resource consequently does not exist.
...In this case, the response body shall be present, and shall contain a ProblemDetails structure, in which the “detail” attribute shall convey more information about the error.
[Setup]Check Fail not supported
logFinal fail an operation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
DocumentationThis task resource represents the "Retry operation" operation. The client can use this resource to initiate retrying a VNF lifecycle operation.
Suite setupCheck resource existance
*** Test Cases ***
Post Retry operation task
[Documentation]The POST method initiates retrying a VNF lifecycle operation if that operation has experienced a temporary failure,
...i.e. the related "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
LogRetry a VNF lifecycle operation if that operation has experienced a temporary failure
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
[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 Retry operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation]Not Found
...Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
...Specifically in case of this task resource, the response code 404 shall also be returned
...if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
...which means that the task resource consequently does not exist.
...In this case, the response body shall be present, and shall contain a ProblemDetails structure, in which the “detail” attribute shall convey more information about the error.
[Setup]Check retry not supported
logRetry an operation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
DocumentationThis task resource represents the "Rollback operation" operation. The client can use this resource to initiate rolling back a VNF lifecycle operation
Suite setupCheck resource existance
*** Test Cases ***
Post Rollback operation task
[Documentation]The POST method initiates rolling back a VNF lifecycle operation if that operation has experienced a temporary failure,
...i.e. the related “VNF LCM operation occurrence” resource is in “FAILED_TEMP” state.
LogRollback a VNF lifecycle operation if that operation has experienced a temporary failure
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
[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 Rollback operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation]Not Found
...Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
...Specifically in case of this task resource, the response code 404 shall also be returned
...if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
...which means that the task resource consequently does not exist.
...In this case, the response body shall be present, and shall contain a ProblemDetails structure, in which the “detail” attribute shall convey more information about the error.
[Setup]Check Rollback not supported
logRollback an operation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}