@@ -9,6 +9,7 @@ Documentation This resource represents grants. The client can use this resour
*** Variables ***
${response}{}
${wait_time}2 min10 sec
*** Test Cases ***
Requests a grant for a particular VNF lifecycle operation - Synchronous mode
...
...
@@ -17,12 +18,12 @@ Requests a grant for a particular VNF lifecycle operation - Synchronous mode
...Test objective: The objective is to request a grant for a particular VNF lifecycle operationand perform a JSON schema validation on the returned grant data structure
...Pre-conditions:
...Reference: section 9.4.2.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: The NFVO can decide immediately what to respond to a grant request
...Post-Conditions: The grant information is available to the VNFM.
Send Request Grant Request in Synchronous mode
Check HTTP Response Status Code Is201
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id existence
Check HTTP Response Body Json Schema Isgrant
...
...
@@ -32,14 +33,14 @@ Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
...Test objective: The objective is to request a grant for a particular VNF lifecycle operation
...Pre-conditions:
...Reference: section 9.4.2.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: The NFVO can not decide immediately what to respond to a grant request
...Post-Conditions: The grant information is available to the VNFM.
Send Request Grant Request in Asynchronous mode
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check Operation Occurrence Id existence
Check HTTP Response Body Json Schema Isgrant
Wait Until Keyword Succeeds2 min10 secGet an individual grant - Successful
Wait for individual grant successful notification
Requests a grant for a particular VNF lifecycle operation - Forbidden
[Documentation]Test ID: 7.3.2.1.3
...
...
@@ -47,7 +48,7 @@ Requests a grant for a particular VNF lifecycle operation - Forbidden
...Test objective: The objective is to request a grant for a particular VNF lifecycle operation and check the content of the problem details data structure returned
...Pre-conditions: The grant should not be accorded
...Reference: section 9.4.2.3.2 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Send Request a new Grant Forbiden
...
...
@@ -60,7 +61,7 @@ GET Grants - Method not implemented
...Test objective: The objective is to test that GET method is not allowed for Life cycle operation granting
...Pre-conditions: none
...Reference: section 9.4.2.3.2 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions:none
Get Grants
...
...
@@ -72,7 +73,7 @@ PUT Grants - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed for Life cycle operation granting
...Pre-conditions: none
...Reference: section 9.4.2.3.3 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Put Grants
...
...
@@ -84,7 +85,7 @@ PATCH Grants - Method not implemented
...Test objective: The objective is to test that PATCH method is not allowed for Life cycle operation granting
...Pre-conditions: none
...Reference: section 9.4.2.3.4 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Patch Grants
...
...
@@ -96,13 +97,15 @@ DELETE Grants - Method not implemented
...Test objective: The objective is to test that DELETE method is not allowed for Life cycle operation granting
...Pre-conditions: none
...Reference: section 9.4.2.3.5 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Delete Grants
Check HTTP Response Status Code Is405
*** Keywords ***
Wait for individual grant successful notification
Wait Until Keyword Succeeds${wait_time}Get an individual grant - Successful
Send Request Grant Request in Synchronous mode
LogRequest a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants
Pass Execution If${SYNC_MODE}== 0The Granting process is asynchronous mode. Skipping the test
...
...
@@ -152,6 +155,10 @@ Check HTTP Response Status Code Is
Should Be Equal As Strings${response['status']}${expected_status}
LogStatus code validated
Check Operation Occurrence Id existence
${occId}=Get Value From Json${response.headers}$..Location
Should Not Be Empty${occId}
Check HTTP Response Header Contains
[Arguments]${CONTENT_TYPE}
Should Contain${response['headers']}${CONTENT_TYPE}
@@ -12,55 +12,55 @@ Documentation This resource represents an individual grant. The client can us
${response}{}
*** Test Cases ***
Post Individual Grant - Method not implemented
POST Individual Grant - Method not implemented
[Documentation]Test ID: 7.3.2.2.1
...Test title: Post Individual Grant - Method not implemented
...Test title: POST Individual Grant - Method not implemented
...Test objective: The objective is to test that POST method is not allowed for Life cycle operation granting
...Pre-conditions: none
...Reference: section 9.4.2.3.4 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Post individual Grant
Check HTTP Response Status Code Is405
Get an individual grant - Successful
GET an individual grant - Successful
[Documentation]Test ID: 7.3.2.2.2
...Test title: Requests a grant for a particular VNF lifecycle operation - Successfuland perform a JSON schema validation on the returned grant data structure
...Test title: GET an individual grant - Successful
...Test objective: The objective is to request a grant for a particular VNF lifecycle operation
...Pre-conditions: The related grant information is available to the VNFM
...Pre-conditions: Thegrant information is available to the VNFM
...Reference: section 9.4.3.3.2 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Get individual grant success
Check HTTP Response Status Code Is200
Check HTTP Response Body Json Schema Isgrant
Get an individual grant - Process ongoing
GET an individual grant - Process ongoing
[Tags]no-synchronous-mode
[Documentation]Test ID: 7.3.2.2.3
...Test title: Requests a grant for a particular VNF lifecycle operation - Process ongoing
...Test title: GET an individual grant - Process ongoing
...Test objective: The objective is to request a grant for a particular VNF lifecycle operation
...Pre-conditions: The process of creating the grant is ongoing, no grant is available yet.
...Reference: section 9.4.3.3.2 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Get individual grant on-going
Check HTTP Response Status Code Is202
Check HTTP Response Body Json Schema Isgrant
Get an individual grant - grant rejected
GET an individual grant - grant rejected
[Tags]no-synchronous-mode
[Documentation]Test ID: 7.3.2.2.4
...Test title: Requests a grant for a particular VNF lifecycle operation - grant rejected
...Test title: GET an individual grant - grant rejected
...Test objective: The objective is to request a grant for a particular VNF lifecycle operation
...Pre-conditions: The related grant is rejected
...Pre-conditions:
...Reference: section 9.4.3.3.2 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
...Post-Conditions: The grant is rejected
Get individual grant rejected
Check HTTP Response Status Code Is403
Check HTTP Response Body Json Schema IsProblemDetails
...
...
@@ -71,7 +71,7 @@ PUT an individual grant - Method not implemented
...Test objective: The objective is to test that PUT method is not allowed to for Life cycle operation granting
...Pre-conditions: none
...Reference: section 9.4.3.3.3 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
PUT individual Grant
...
...
@@ -83,7 +83,7 @@ PATCH an individual grant - Method not implemented
...Test objective: The objective is to test that PATCH method is not allowed to for Life cycle operation granting
...Pre-conditions: none
...Reference: section 9.4.3.3.4 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Config ID: Config_prod_NFVO
...Applicability: none
...Post-Conditions: none
Patch individual Grant
...
...
@@ -95,9 +95,9 @@ DELETE an individual grant - Method not implemented
...Test objective: The objective is to test that DELETE method is not allowed to for Life cycle operation granting