...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.
...Pre-conditions: none
...Reference:section 5.4.17.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: in response header Location should not be null
POST Cancel operation task
Check HTTP Response Status Code Is202
Post Cancel operation task Conflict
[Documentation]Conflict.
...The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
...Typically, this is due to the fact that the VNF instance resource is not in STARTING, PROCESSING or ROLLING_BACK state,
...or another error handling action is starting, such as retry or rollback.
...The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
[Documentation]Test ID: 7.3.1.16.2
...Test title: POST Cancel operation task
...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
...Pre-conditions: operation is not in STARTING, PROCESSING or ROLLING_BACK state
...Reference:section 5.4.17.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: in response header Location should not be null
Depends on testCheck resource FAILED_TEMP
LogCancel an operation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsProblemDetails
Post Cancel operation task Not Found
# TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
...
...
@@ -47,42 +45,56 @@ Post Cancel operation task Not Found
...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}"}
...Test title: POST Change deployment flavour of a vnfInstance
...Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour
...Pre-conditions: none
...Reference:section 5.4.7.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: in response header Location should not be null
POST Change VNF deployment flavour${vnfInstanceId}
Check HTTP Response Status Code Is202
Check Operation Occurrence Id
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]Conflict.
...The operation cannot be executed currently, due to 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,
...or that another lifecycle management operation is ongoing.
...The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
[Documentation]Test ID: 7.3.1.6.2
...Test title: POST Change deployment flavour of a vnfInstance
...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.
...Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
...Reference:section 5.4.7.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
[Setup]Check resource not instantiated
LogTrying to change the deployment flavour of a VNF instance.
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
POST Change VNF deployment flavour${instantiatedVnfInstanceId}
Check HTTP Response Status Code Is409
Check HTTP Response Body Json Schema IsProblemDetails
Change deployment flavour of a vnfInstance 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 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.
...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.
[Documentation]Test ID: 7.3.1.6.3
...Test title: POST Change deployment flavour of a vnfInstance
...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.
...Pre-conditions: VNF instance resource is not in NOT-INSTANTIATED state
...Reference:section 5.4.7.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
[Setup]Check change flavour not supported
LogTrying to change the deployment flavour of a VNF instance, not exist
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
...Test objective: The objective is to test that POST method heal a VNF instance
...Pre-conditions: none
...Reference:section 5.4.9.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions:
POST Terminate VNF
Check HTTP Response Status Code Is202
Check Operation Occurrence Id
Heal a vnfInstance Conflict (Not-Instantiated)
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
[Documentation]Conflict.
...The operation cannot be executed currently, due to 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,
...or that another lifecycle management operation is ongoing.
...The response body shall contain a ProblemDetails structure, in which the �detail� attribute should convey more information about the error.
[Documentation]Test ID: 7.3.1.8.2
...Test title: POST Heal a vnfInstance (Not-Instantiated)
...Test objective: The objective is to test that the operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
...Pre-conditions: the VNF instance resource is in NOT-INSTANTIATED state
...Reference:section 5.4.9.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions:
[Setup]Check resource not instantiated
LogTrying to heal a VNF instance.
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
Check HTTP Response Body Json Schema IsProblemDetails
Heal a vnfInstance 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 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.
...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.
[Documentation]Test ID: 7.3.1.8.3
...Test title: POST Heal a vnfInstance (Not-Instantiated)
...Test objective: The objective is to test that the operation cannot be executed because the VNF instance resource is not found.
...Pre-conditions: the VNF instance resource is not existing
...Reference:section 5.4.9.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions:
[Setup]Check heal not supported
LogTrying to heal a VNF instance, not exist
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}