WARNING! Gitlab maintenance operation scheduled for Monday, 20 April between 12:00 and 14:00 (CET). During this time window, short service interruptions (less than 5 minutes) may occur. Thank you in advance for your understanding.
@@ -11,99 +11,111 @@ Documentation This resource represents grants. The client can use this resour
${response}{}
${response}{}
*** Test Cases ***
*** Test Cases ***
Request a new Grant - Synchronous mode
Requests a grant for a particular VNF lifecycle operation - Synchronous mode
[Documentation]Test ID: 9.4.2.1
[Documentation]Test ID: 7.3.2.1.1
...Test title: Requests a grant for a particular VNF lifecycle operation - Synchronous mode
...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:
...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
...Config ID: Config_prod_VNFM
...Applicability: The NFVO can decide immediately what to respond to a grant request
...Applicability: The NFVO can decide immediately what to respond to a grant request
...Post-Conditions: The grant information is available to the VNFM.
...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
Send Request Grant Request in Synchronous mode
Pass Execution If${SYNC_MODE}== 0The Granting process is asynchronous mode. Skipping the test
Send Request Grant Request
Check HTTP Response Status Code Is201
Check HTTP Response Status Code Is201
Check HTTP Response Header ContainsLocation
Check HTTP Response Header ContainsLocation
Check HTTP Response Body Json Schema Isgrant.schema.json
Check HTTP Response Body Json Schema Isgrant
LogValidation OK
Request a new Grant - Asynchronous mode
Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
[Documentation]Test ID: 9.4.2.2
[Documentation]Test ID: 7.3.2.1.2
...Test title: Requests a grant for a particular VNF lifecycle operation - Asynchronous mode
...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
...Test objective: The objective is to request a grant for a particular VNF lifecycle operation
...Pre-conditions:
...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
...Config ID: Config_prod_VNFM
...Applicability: The NFVO can not decide immediately what to respond to a grant request
...Applicability: The NFVO can not decide immediately what to respond to a grant request
...Post-Conditions: The grant information is available to the VNFM.
...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
Send Request Grant Request in Asynchronous mode
Pass Execution If${SYNC_MODE}== 1The Granting process is synchronous mode. Skipping the test
Send Request Grant Request
Check HTTP Response Status Code Is202
Check HTTP Response Status Code Is202
Check HTTP Response Header ContainsLocation
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
Wait Until Keyword Succeeds2 min10 secGet an individual grant - Successful
LogValidation OK
Request a new Grant - Forbidden
Request a new Grant - Forbidden
[Documentation]Test ID: 9.4.2.3
[Documentation]Test ID: 7.3.2.1.3
...Test title: Requests a grant for a particular VNF lifecycle operation - Forbidden
...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
...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
...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
...Config ID: Config_prod_VNFM
...Applicability:
...Applicability:
...Post-Conditions:
...Post-Conditions:
LogRequest a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants
Send Request a new Grant Forbiden
LogThe grant request should be rejected
Check HTTP Response Status Code Is403
Set Headers{"Accept": "${ACCEPT}"}
Check HTTP Response Body Json Schema IsProblemDetails
Set Headers{"Content-Type": "${CONTENT_TYPE}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}