@@ -11,99 +11,100 @@ Documentation This resource represents grants. The client can use this resour
${response}{}
*** Test Cases ***
Request a new Grant - Synchronous mode
[Documentation]Test ID: 9.4.2.1
Requests a grant for a particular VNF lifecycle operation - Synchronous mode
[Documentation]Test ID: 7.3.2.1.1
...Test title: 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 operation
...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 - SOL003 v2.4.1
...Reference: section 9.4.2.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: The NFVO can decide immediately what to respond to a grant request
...Post-Conditions: The grant information is available to the VNFM.
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
Send Request Grant Request
Send Request Grant Request in Synchronous mode
Check HTTP Response Status Code Is201
Check HTTP Response Header ContainsLocation
Check HTTP Response Body Json Schema Isgrant.schema.json
LogValidation OK
Check HTTP Response Body Json Schema Isgrant
Request a new Grant - Asynchronous mode
[Documentation]Test ID: 9.4.2.2
Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
[Documentation]Test ID: 7.3.2.1.2
...Test title: 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 - SOL003 v2.4.1
...Reference: section 9.4.2.3.1 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability: The NFVO can not decide immediately what to respond to a grant request
...Post-Conditions: The grant information is available to the VNFM.
LogRequest a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants
Pass Execution If${SYNC_MODE}== 1The Granting process is synchronous mode. Skipping the test
Send Request Grant Request
Send Request Grant Request in Asynchronous mode
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
Check HTTP Response Body Json Schema Isgrant.schema.json
Check HTTP Response Body Json Schema Isgrant
Wait Until Keyword Succeeds2 min10 secGet an individual grant - Successful
LogValidation OK
Request a new Grant - Forbidden
[Documentation]Test ID: 9.4.2.3
...Test title: 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
[Documentation]Test ID: 7.3.2.1.3
...Test title: 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 - SOL003 v2.4.1
...Reference: section 9.4.2.3.2 - SOL003 v2.4.1
...Config ID: Config_prod_VNFM
...Applicability:
...Post-Conditions:
LogRequest a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants
LogThe grant request should be rejected
Set Headers{"Accept": "${ACCEPT}"}
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}