...Test objective: The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed or rolled back, i.e. the "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
...Pre-conditions: The "VNF LCM operation occurrence" is either in "PROCESSING" or "ROLLING_BACK" state.
...Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
...Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: VNF instance status equal to FAILED_TEMP
@@ -25,7 +25,7 @@ POST Cancel operation task Conflict
...Test title: POST Cancel operation task Conflict
...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: The "VNF LCM operation occurrence" is not in STARTING, PROCESSING or ROLLING_BACK state
...Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
...Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
@@ -38,7 +38,7 @@ POST Cancel operation task Not Found
...Test title: POST Cancel operation task Not Found
...Test objective: The objective is to test that POST method cannot cancel a VNF lifecycle operation because the resource is not found
...Pre-conditions: none
...Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
...Reference: Clause 5.4.17.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
@@ -51,7 +51,7 @@ GET Cancel operation task - Method not implemented
...Test title: GET Cancel operation task - Method not implemented
...Test objective: The objective is to test that GET method is not implemented
...Pre-conditions: none
...Reference: Clause 5.4.17.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
...Reference: Clause 5.4.17.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
@@ -63,7 +63,7 @@ PUT Cancel operation task - Method not implemented
...Test title: PUT Cancel operation task - Method not implemented
...Test objective: The objective is to test that PUT method is not implemented
...Pre-conditions: none
...Reference: Clause 5.4.17.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1
...Reference: Clause 5.4.17.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Test title: Cancel a VNF LCM Operation - STARTING
...Test objective: The objective is to test the workflow for Cancelling a VNF LCM Operation being in the STARTING state
...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: Clause 5.4.17 - ETSI GS NFV-SOL 003 [1] v2.7.1
...Reference: Clause 5.4.17 - ETSI GS NFV-SOL 003 [1] v3.3.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
...Test objective: The objective is to test the workflow for Cancelling a VNF LCM Operation being either in the PROCESSIONG or ROLLING_BACK state
...Pre-conditions: The VNF lifecycle management operation occurrence is in PROCESSING or ROLLING_BACK state. NFVO is subscribed to VNF LCM Operation Occurrence notifications
...Reference: Clause 5.3.10 - ETSI GS NFV-SOL 003 [1] v2.7.1
...Reference: Clause 5.3.10 - ETSI GS NFV-SOL 003 [1] v3.3.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
...Test title: POST Change current VNF Package Task
...Test objective: The objective is to test that the POST method changes the current VNF package on which the VNF instance is based.
...Pre-conditions: none
...Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: in response header Location shall not be null
POST Change Current VNF Package Task
Check HTTP Response Status Code Is202
Check HTTP Location Header Contains URI of Created Resource
POST Change current VNF Package Task - Conflict
[Documentation]Test ID: 7.3.1.37.2
...Test title: POST Change current VNF Package Task - Conflict
...Test objective: The objective is to test that the POST method cannot change the current VNF package task when another lifecycle management operation is ongoing.
...Pre-conditions: none
...Reference: Clause 5.4.11a.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: There is another lifecycle management operation ongoing.
...Post-Conditions: none
POST Change Current VNF Package Task
Check HTTP Response Status Code Is409
Check HTTP Response Body Json Schema IsProblemDetails
GET Change current VNF Package Task - Method not implemented
[Documentation]Test ID: 7.3.1.37.3
...Test title: GET Change current VNF Package Task - Method not implemented
...Test objective: The objective is to test that GET method is not implemented
...Pre-conditions: none
...Reference: Clause 5.4.11a.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
GET Change Current VNF Package Task
Check HTTP Response Status Code Is405
PUT Change current VNF Package Task - Method not implemented
[Documentation]Test ID: 7.3.1.37.4
...Test title: PUT Change current VNF Package Task - Method not implemented
...Test objective: The objective is to test that PUT method is not implemented
...Pre-conditions: none
...Reference: Clause 5.4.11a.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
PUT Change Current VNF Package Task
Check HTTP Response Status Code Is405
PATCH Change current VNF Package Task - Method not implemented
[Documentation]Test ID: 7.3.1.37.5
...Test title: PATCH Change current VNF Package Task - Method not implemented
...Test objective: The objective is to test that PATCH method is not implemented
...Pre-conditions: none
...Reference: Clause 5.4.11a.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
PATCH Change Current VNF Package Task
Check HTTP Response Status Code Is405
DELETE Change current VNF Package Task - Method not implemented
[Documentation]Test ID: 7.3.1.37.6
...Test title: DELETE Change current VNF Package Task - Method not implemented
...Test objective: The objective is to test that DELETE method is not implemented
...Pre-conditions: none
...Reference: Clause 5.4.11a.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
...Config ID: Config_prod_VNFM
...Applicability: none
...Post-Conditions: none
DELETE Change Current VNF Package Task
Check HTTP Response Status Code Is405
*** Keywords ***
Check resource existence
Set Headers{"Accept":"${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}