@@ -8,82 +9,92 @@ Documentation This task resource represents the "Cancel operation" operation.
...
@@ -8,82 +9,92 @@ Documentation This task resource represents the "Cancel operation" operation.
Suite SetupCheck resource existance
Suite SetupCheck resource existance
*** Test Cases ***
*** Test Cases ***
Post Cancel operation task
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.
[Documentation]Test ID: 6.3.5.16.1
...the related "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
...Test title: POST Cancel operation task
LogCancel a VNF lifecycle operation if that operation has experienced a temporary failure
...Test objective: 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.
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
...Pre-conditions: the related "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
...Post-Conditions: in response header Location should not be null
${headers}=Outputresponse headers
POST Cancel operation task
Should Contain${headers}Location
Check HTTP Response Status Code Is202
LogValidation OK
Check resource has a temporary failure
Post Cancel operation task Conflict (Not-FAILED_TEMP)
Post Cancel operation task Conflict
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
[Documentation]Test ID: 6.3.5.16.2
[Documentation]Conflict.
...Test title: POST Cancel operation task
...The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
...Test objective: The POST method is NOT cancelling an ongoing VNF lifecycle operation due to the fact that the VNF instance resource is not in STARTING, PROCESSING or ROLLING_BACK state
...Typically, this is due to the fact that the VNF instance resource is not in FAILED_TEMP state,
...Pre-conditions: operation is not in STARTING, PROCESSING or ROLLING_BACK state
...or another error handling action is starting, such as retry or rollback.
...Reference:section 5.4.17.3.1 - SOL002 v2.4.1
...The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
...Config ID: Config_prod_VE
Depends on test failureCheck resource FAILED_TEMP
...Applicability: none
LogFinal Fail an operation
...Post-Conditions: in response header Location should not be null
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation]Not Found
[Documentation]Test ID: 6.3.5.16.2
...Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
...Test title: POST Cancel operation task
...Specifically in case of this task resource, the response code 404 shall also be returned
...Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the resource is not found
...if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
...Pre-conditions:
...which means that the task resource consequently does not exist.
...Reference:section 5.4.17.3.1 - SOL002 v2.4.1
...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.
...Config ID: Config_prod_VE
[Setup]Check Fail not supported
...Applicability: none
logFinal fail an operation
...Post-Conditions: in response header Location should not be null
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
...Post-Conditions: in response header Location should not be null
LogStatus code validated
POST Change VNF deployment flavour
${headers}=Outputresponse headers
Check HTTP Response Status Code Is202
Should Contain${headers}Location
Check Operation Occurrence Id
LogValidation OK
Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
[Documentation]Test ID: 6.3.5.6.2
[Documentation]Conflict.
...Test title: POST Change deployment flavour of a vnfInstance
...The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
...Test objective: The objective is to test that POST method can't trigger a change in VNF deployment flavour because of a conflict with the state of the VNF instance resource.
...Typically, this is due to the fact that the VNF instance resource is in NOT-INSTANTIATED state,
...Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
...or that another lifecycle management operation is ongoing.
...Reference:section 5.4.7.3.1 - SOL003 v2.4.1
...The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
...Config ID: Config_prod_VE
[Setup]Check resource not instantiated${vnfInstanceId}
...Applicability: none
LogTrying to change the deployment flavour of a VNF instance.
...Post-Conditions: none
Set Headers{"Accept":"${ACCEPT}"}
POST Change VNF deployment flavour
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Check HTTP Response Status Code Is409
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsProblemDetails
Change deployment flavour of a vnfInstance Not Found
Change deployment flavour of a vnfInstance Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation]Test ID: 6.3.5.6.3
[Documentation]Not Found
...Test title: POST Change deployment flavour of a vnfInstance
...Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
...Test objective: The objective is to test that POST method can't trigger a change in VNF deployment flavour because the VNF instance resource is not found.
...Specifically in case of this task resource, the response code 404 shall also returned if the task is not supported for the VNF instance represented by the parent resource, which means that the task resource consequently does not exist.
...Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
...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.
...Reference:section 5.4.7.3.1 - SOL003 v2.4.1
[Setup]Check change flavour not supported
...Config ID: Config_prod_VE
LogTrying to change the deployment flavour of a VNF instance, not exist
...Applicability: none
Set Headers{"Accept":"${ACCEPT}"}
...Post-Conditions: none
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
POST Change VNF deployment flavour
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 ***
*** Test Cases ***
Post Fail operation task
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.
[Documentation]Test ID: 6.3.5.15.1
LogFinal fail a VNF lifecycle operation if that operation has experienced a temporary failure
...Test title: Post Fail operation task
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
...Test objective: The objective is to test that POST method mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
LogExecute Query and validate response
...Pre-conditions: the related "VNF LCM operation occurrence" resource is in "FAILED_TEMP" state.
Post Fail operation task Conflict (Not-FAILED_TEMP)
Post Fail operation task Conflict (Not-FAILED_TEMP)
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
[Documentation]Conflict.
[Documentation]Test ID: 6.3.5.15.2
...The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
...Test title: Post Fail operation task
...Typically, this is due to the fact that the VNF instance resource is not in FAILED_TEMP state,
...Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation if that operation has experienced a temporary failure
...or another error handling action is starting, such as retry or rollback.
...Pre-conditions: the related "VNF LCM operation occurrence" resource is not in "FAILED_TEMP" state.
...The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
...Reference:section 5.4.16.3.1 - SOL002 v2.4.1
Depends on test failureCheck resource FAILED_TEMP
...Config ID: Config_prod_VE
LogFinal Fail an operation
...Applicability: none
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
[Documentation]Not Found
[Documentation]Test ID: 6.3.5.15.3
...Error: The API producer did not find a current representation for the target resource or is not willing to disclose that one exists.
...Test title: Post Fail operation task
...Specifically in case of this task resource, the response code 404 shall also be returned
...Test objective: The objective is to test that POST method cannot mark as "finally failed" a VNF lifecycle operation because the operation is not supported
...if the task is not supported for the VNF LCM operation occurrence represented by the parent resource,
...Pre-conditions:
...which means that the task resource consequently does not exist.
...Reference:section 5.4.16.3.1 - SOL002 v2.4.1
...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.
...Config ID: Config_prod_VE
[Setup]Check Fail not supported
...Applicability: none
logFinal fail an operation
...Post-Conditions: none
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}