@@ -38,16 +38,17 @@ Post Cancel operation task Conflict
...
@@ -38,16 +38,17 @@ Post Cancel operation task Conflict
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
[Documentation]Not Found
[Documentation]Test ID: 7.3.1.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 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.17.3.1 - SOL003 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_VNFM
...Applicability: none
...Post-Conditions: in response header Location should not be null
[Setup]Check Fail not supported
[Setup]Check Fail not supported
POST Cancel operation task
POST Cancel operation task
Check HTTP Response Status Code Is409
Check HTTP Response Status Code Is404
Check HTTP Response Body Json Schema IsProblemDetails
GET Cancel operation task - Method not implemented
GET Cancel operation task - Method not implemented
[Documentation]Test ID: 7.3.1.16.3
[Documentation]Test ID: 7.3.1.16.3
...Test title: GET Cancel operation task - Method not implemented
...Test title: GET Cancel operation task - Method not implemented
DocumentationThis task resource represents the "Fail operation" operation.
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",
... 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.
... 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.
...
@@ -13,80 +14,95 @@ Suite Setup Check resource existance
...
@@ -13,80 +14,95 @@ Suite Setup Check 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: 7.3.1.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: 7.3.1.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 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
Depends on test failureCheck resource FAILED_TEMP
Depends on test failureCheck resource FAILED_TEMP
LogFinal Fail an operation
Post Fail operation
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: 7.3.1.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 - SOL003 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_VNFM
...Applicability: none
...Post-Conditions: none
[Setup]Check Fail not supported
[Setup]Check Fail not supported
logFinal fail an operation
Post Fail operation
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization":"${AUTHORIZATION}"}
...Test title: Deliver a notification - Id Creation
${BODY}=evaluatejson.loads('''${json}''')json
...Test objective: The objective is to test that POST method trigger a notification about the creation of a VNF identifier and the related to a VNF instance resource.
LogCreating mock request and response to handle vnfLcmOperationOccurrenceNotification