Loading SOL003/VNFLifecycleOperationGranting-API/ApiVersion.robot +5 −5 Original line number Original line Diff line number Diff line Loading @@ -169,35 +169,35 @@ DELETE API Version POST API Version with apiMajorVersion POST API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/v1/api_version Post ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} GET API Version with apiMajorVersion GET API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/v1/api_version Get ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} PUT API Version with apiMajorVersion PUT API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/v1/api_version Put ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} PATCH API Version with apiMajorVersion PATCH API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/v1/api_version Patch ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} DELETE API Version with apiMajorVersion DELETE API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/v1/api_version Delete ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} Loading SOL003/VNFLifecycleOperationGranting-API/Grants.robot +11 −11 Original line number Original line Diff line number Diff line Loading @@ -109,38 +109,38 @@ DELETE Grants - Method not implemented Wait for individual grant successful notification Wait for individual grant successful notification Wait Until Keyword Succeeds ${retry} ${polling} Get an individual grant - Successful Wait Until Keyword Succeeds ${retry} ${polling} Get an individual grant - Successful Send Request Grant Request in Synchronous mode Send Request Grant Request in Synchronous mode Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/grants Pass Execution If ${SYNC_MODE} == 0 The Granting process is asynchronous mode. Skipping the test Pass Execution If ${SYNC_MODE} == 0 The Granting process is asynchronous mode. Skipping the test Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRequest.json ${template}= Get File jsons/grantRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Send Request Grant Request in Asynchronous mode Send Request Grant Request in Asynchronous mode Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/grants Pass Execution If ${SYNC_MODE} == 1 The Granting process is synchronous mode. Skipping the test Pass Execution If ${SYNC_MODE} == 1 The Granting process is synchronous mode. Skipping the test Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRequest.json ${template}= Get File jsons/grantRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Send Request for a new Grant Forbiden Operation Send Request for a new Grant Forbiden Operation Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/grants Log The grant request should be rejected Log The grant request should be rejected Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRejectedRequest.json ${template}= Get File jsons/grantRejectedRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -150,7 +150,7 @@ Send Request Grant Request Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRequest.json ${template}= Get File jsons/grantRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} allow_redirects=false Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} allow_redirects=false ${resp} Output response ${resp} Output response ${result}= evaluate json.loads(json.dumps(${resp})) json ${result}= evaluate json.loads(json.dumps(${resp})) json Log ${result} Log ${result} Loading Loading @@ -187,7 +187,7 @@ Get Grants Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants Get ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -195,7 +195,7 @@ Put Grants Log Trying to perform a PUT. This method should not be implemented Log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiVersion}/grants Put ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -203,7 +203,7 @@ Patch Grants Log Trying to perform a PATCH. This method should not be implemented Log Trying to perform a PATCH. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/grants Patch ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -212,7 +212,7 @@ Delete Grants Log Trying to perform a DELETE. This method should not be implemented Log Trying to perform a DELETE. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiVersion}/grants Delete ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading SOL003/VNFLifecycleOperationGranting-API/IndividualGrant.robot +6 −6 Original line number Original line Diff line number Diff line Loading @@ -103,14 +103,14 @@ Get individual grant log Trying to read an individual grant log Trying to read an individual grant Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Check resource existence Check resource existence Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Integer response status 200 Integer response status 200 Post individual Grant Post individual Grant Loading @@ -118,7 +118,7 @@ Post individual Grant Pass Execution If ${SYNC_MODE} == 1 Skipping. Synchronous mode is supported Pass Execution If ${SYNC_MODE} == 1 Skipping. Synchronous mode is supported Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -126,7 +126,7 @@ Put individual Grant Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Put ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -134,7 +134,7 @@ Patch individual Grant Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Patch ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -142,7 +142,7 @@ Delete individual Grant Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Delete ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading SOL003/VNFLifecycleOperationGranting-API/environment/variables.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -10,7 +10,7 @@ ${grantId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d ${apiRoot} / ${apiRoot} / ${apiName} grant ${apiName} grant ${apiVersion} v1 ${apiMajorVersion} v1 ${SYNC_MODE} 1 ${SYNC_MODE} 1 Loading Loading
SOL003/VNFLifecycleOperationGranting-API/ApiVersion.robot +5 −5 Original line number Original line Diff line number Diff line Loading @@ -169,35 +169,35 @@ DELETE API Version POST API Version with apiMajorVersion POST API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Post ${apiRoot}/${apiName}/v1/api_version Post ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} GET API Version with apiMajorVersion GET API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/v1/api_version Get ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} PUT API Version with apiMajorVersion PUT API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/v1/api_version Put ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} PATCH API Version with apiMajorVersion PATCH API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/v1/api_version Patch ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} DELETE API Version with apiMajorVersion DELETE API Version with apiMajorVersion Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/v1/api_version Delete ${apiRoot}/${apiName}/${apiMajorVersion}/api_version ${outputResponse}= Output response ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse} Loading
SOL003/VNFLifecycleOperationGranting-API/Grants.robot +11 −11 Original line number Original line Diff line number Diff line Loading @@ -109,38 +109,38 @@ DELETE Grants - Method not implemented Wait for individual grant successful notification Wait for individual grant successful notification Wait Until Keyword Succeeds ${retry} ${polling} Get an individual grant - Successful Wait Until Keyword Succeeds ${retry} ${polling} Get an individual grant - Successful Send Request Grant Request in Synchronous mode Send Request Grant Request in Synchronous mode Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/grants Pass Execution If ${SYNC_MODE} == 0 The Granting process is asynchronous mode. Skipping the test Pass Execution If ${SYNC_MODE} == 0 The Granting process is asynchronous mode. Skipping the test Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRequest.json ${template}= Get File jsons/grantRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Send Request Grant Request in Asynchronous mode Send Request Grant Request in Asynchronous mode Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/grants Pass Execution If ${SYNC_MODE} == 1 The Granting process is synchronous mode. Skipping the test Pass Execution If ${SYNC_MODE} == 1 The Granting process is synchronous mode. Skipping the test Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRequest.json ${template}= Get File jsons/grantRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Send Request for a new Grant Forbiden Operation Send Request for a new Grant Forbiden Operation Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiVersion}/grants Log Request a new Grant for a VNF LCM operation by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/grants Log The grant request should be rejected Log The grant request should be rejected Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Accept": "${ACCEPT}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRejectedRequest.json ${template}= Get File jsons/grantRejectedRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -150,7 +150,7 @@ Send Request Grant Request Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"} ${template}= Get File jsons/grantRequest.json ${template}= Get File jsons/grantRequest.json ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} ${body}= Format String ${template} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} vnfdId=${vnfdId} flavourId=${flavourId} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} allow_redirects=false Post ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body} allow_redirects=false ${resp} Output response ${resp} Output response ${result}= evaluate json.loads(json.dumps(${resp})) json ${result}= evaluate json.loads(json.dumps(${resp})) json Log ${result} Log ${result} Loading Loading @@ -187,7 +187,7 @@ Get Grants Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants Get ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -195,7 +195,7 @@ Put Grants Log Trying to perform a PUT. This method should not be implemented Log Trying to perform a PUT. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiVersion}/grants Put ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -203,7 +203,7 @@ Patch Grants Log Trying to perform a PATCH. This method should not be implemented Log Trying to perform a PATCH. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/grants Patch ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -212,7 +212,7 @@ Delete Grants Log Trying to perform a DELETE. This method should not be implemented Log Trying to perform a DELETE. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiVersion}/grants Delete ${apiRoot}/${apiName}/${apiMajorVersion}/grants ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading
SOL003/VNFLifecycleOperationGranting-API/IndividualGrant.robot +6 −6 Original line number Original line Diff line number Diff line Loading @@ -103,14 +103,14 @@ Get individual grant log Trying to read an individual grant log Trying to read an individual grant Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Check resource existence Check resource existence Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions/${subscriptionId} Integer response status 200 Integer response status 200 Post individual Grant Post individual Grant Loading @@ -118,7 +118,7 @@ Post individual Grant Pass Execution If ${SYNC_MODE} == 1 Skipping. Synchronous mode is supported Pass Execution If ${SYNC_MODE} == 1 Skipping. Synchronous mode is supported Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Get ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Get ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -126,7 +126,7 @@ Put individual Grant Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Put ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Put ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -134,7 +134,7 @@ Patch individual Grant Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Patch ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Patch ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading @@ -142,7 +142,7 @@ Delete individual Grant Log Trying to perform a GET. This method should not be implemented Log Trying to perform a GET. This method should not be implemented Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Delete ${apiRoot}/${apiName}/${apiVersion}/grants/${grantId} Delete ${apiRoot}/${apiName}/${apiMajorVersion}/grants/${grantId} ${body}= Output response ${body}= Output response Set Suite Variable ${response} ${body} Set Suite Variable ${response} ${body} Loading
SOL003/VNFLifecycleOperationGranting-API/environment/variables.txt +1 −1 Original line number Original line Diff line number Diff line Loading @@ -10,7 +10,7 @@ ${grantId} 6fc3539c-e602-4afa-8e13-962fb5a7d81d ${apiRoot} / ${apiRoot} / ${apiName} grant ${apiName} grant ${apiVersion} v1 ${apiMajorVersion} v1 ${SYNC_MODE} 1 ${SYNC_MODE} 1 Loading