Loading SOL003/VNFLifecycleManagement-API/ScaleVNFTaskWorkflow.robot +7 −6 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource environment/variables.txt Resource environment/variables.txt Resource VnfLcmMntOperationKeywords.robot Resource VnfLcmMntOperationKeywords.robot Resource SubscriptionKeywords.robot Resource SubscriptionKeywords.robot Library REST http://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library OperatingSystem Library OperatingSystem Library BuiltIn Library BuiltIn Library Collections Library Collections Loading Loading @@ -31,10 +31,10 @@ Scale out a VnFInstance Check Response Status 202 ${response.status} Check Response Status 202 ${response.status} Check HTTP Response Header Contains Location ${response.headers} Check HTTP Response Header Contains Location ${response.headers} ${vnfLcmOpOccId}= Get VnfLcmOpOccId ${response.headers} ${vnfLcmOpOccId}= Get VnfLcmOpOccId ${response.headers} Check Operation Notification STARTING ${notification_ep} Check Operation Notification STARTING ${notification_ep} ${vnfLcmOpOccId} Create a new Grant - Synchronous mode Create a new Grant - Sync - Scale Check Operation Notification PROCESSING ${notification_ep} Check Operation Notification PROCESSING ${notification_ep} ${vnfLcmOpOccId} Check Operation Notification COMPLETED ${notification_ep} Check Operation Notification COMPLETED ${notification_ep} ${vnfLcmOpOccId} Postcondition Checks Postcondition Checks *** Keywords *** *** Keywords *** Loading Loading @@ -62,5 +62,6 @@ Compare ScaleInfos Run Keyword If ${type}==SCALE_OUT Should Be True ${old_level_value}<${new_level_value} Run Keyword If ${type}==SCALE_OUT Should Be True ${old_level_value}<${new_level_value} ... ELSE Should Be True ${old_level_value}<${new_level_value} ... ELSE Should Be True ${old_level_value}<${new_level_value} Create a new Grant - Sync - Scale Create a new Grant - Synchronous mode ${vnfInstanceId} ${vnfLcmOpOccId} SCALE No newline at end of file SOL003/VNFLifecycleManagement-API/SubscriptionKeywords.robot +7 −7 Original line number Original line Diff line number Diff line Loading @@ -32,7 +32,7 @@ Configure Notification Handler [Return] &{notification_request} [Return] &{notification_request} Check Operation Notification Check Operation Notification [Arguments] ${status} ${endpoint} [Arguments] ${status} ${endpoint} ${vnfLcmOpOccId} ${req}= Configure Notification Handler VnfLcmOperationOccurrenceNotification ${endpoint} ${req}= Configure Notification Handler VnfLcmOperationOccurrenceNotification ${endpoint} Wait Until Keyword Succeeds 2 min 10 sec Verify Mock Expectation ${req} Wait Until Keyword Succeeds 2 min 10 sec Verify Mock Expectation ${req} ${VnfLcmOccInstance}= Get VnfLcmOccInstance ${vnfLcmOpOccId} ${VnfLcmOccInstance}= Get VnfLcmOccInstance ${vnfLcmOpOccId} Loading SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot +10 −1 Original line number Original line Diff line number Diff line *** Settings *** *** Settings *** Resource environment/variables.txt Resource environment/variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library OperatingSystem Library OperatingSystem Library BuiltIn Library BuiltIn Library JSONLibrary Library JSONLibrary Library Collections Library JSONSchemaLibrary schemas/ Library JSONSchemaLibrary schemas/ Loading Loading @@ -73,12 +74,16 @@ Check operationState Should Be Equal ${currentState} ${operationState} Should Be Equal ${currentState} ${operationState} Create a new Grant - Synchronous mode Create a new Grant - Synchronous mode [Arguments] ${vnfInstanceId} ${vnfLcmOpOccId} ${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}/${apiVersion}/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}"} ${body}= Get File json/grantRequest.json ${body}= Get File json/grantRequest.json ${json_body}= evaluate json.loads('''${body}''') json Set To Dictionary ${json_body} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} operation=${operation} ${body}= evaluate json.dumps(${json_body}) json Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Integer response status 201 Integer response status 201 Log Status code validated Log Status code validated Loading @@ -92,12 +97,16 @@ Create a new Grant - Synchronous mode Log Validation OK Log Validation OK Create a new Grant - Asynchronous mode Create a new Grant - Asynchronous mode [Arguments] ${vnfInstanceId} ${vnfLcmOpOccId} ${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}/${apiVersion}/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}"} ${body}= Get File json/grantRequest.json ${body}= Get File json/grantRequest.json ${json_body}= evaluate json.loads('''${body}''') json Set To Dictionary ${json_body} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} operation=${operation} ${body}= evaluate json.dumps(${json_body}) json Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Output response Output response Integer response status 202 Integer response status 202 Loading Loading
SOL003/VNFLifecycleManagement-API/ScaleVNFTaskWorkflow.robot +7 −6 Original line number Original line Diff line number Diff line Loading @@ -2,7 +2,7 @@ Resource environment/variables.txt Resource environment/variables.txt Resource VnfLcmMntOperationKeywords.robot Resource VnfLcmMntOperationKeywords.robot Resource SubscriptionKeywords.robot Resource SubscriptionKeywords.robot Library REST http://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library OperatingSystem Library OperatingSystem Library BuiltIn Library BuiltIn Library Collections Library Collections Loading Loading @@ -31,10 +31,10 @@ Scale out a VnFInstance Check Response Status 202 ${response.status} Check Response Status 202 ${response.status} Check HTTP Response Header Contains Location ${response.headers} Check HTTP Response Header Contains Location ${response.headers} ${vnfLcmOpOccId}= Get VnfLcmOpOccId ${response.headers} ${vnfLcmOpOccId}= Get VnfLcmOpOccId ${response.headers} Check Operation Notification STARTING ${notification_ep} Check Operation Notification STARTING ${notification_ep} ${vnfLcmOpOccId} Create a new Grant - Synchronous mode Create a new Grant - Sync - Scale Check Operation Notification PROCESSING ${notification_ep} Check Operation Notification PROCESSING ${notification_ep} ${vnfLcmOpOccId} Check Operation Notification COMPLETED ${notification_ep} Check Operation Notification COMPLETED ${notification_ep} ${vnfLcmOpOccId} Postcondition Checks Postcondition Checks *** Keywords *** *** Keywords *** Loading Loading @@ -62,5 +62,6 @@ Compare ScaleInfos Run Keyword If ${type}==SCALE_OUT Should Be True ${old_level_value}<${new_level_value} Run Keyword If ${type}==SCALE_OUT Should Be True ${old_level_value}<${new_level_value} ... ELSE Should Be True ${old_level_value}<${new_level_value} ... ELSE Should Be True ${old_level_value}<${new_level_value} Create a new Grant - Sync - Scale Create a new Grant - Synchronous mode ${vnfInstanceId} ${vnfLcmOpOccId} SCALE No newline at end of file
SOL003/VNFLifecycleManagement-API/SubscriptionKeywords.robot +7 −7 Original line number Original line Diff line number Diff line Loading @@ -32,7 +32,7 @@ Configure Notification Handler [Return] &{notification_request} [Return] &{notification_request} Check Operation Notification Check Operation Notification [Arguments] ${status} ${endpoint} [Arguments] ${status} ${endpoint} ${vnfLcmOpOccId} ${req}= Configure Notification Handler VnfLcmOperationOccurrenceNotification ${endpoint} ${req}= Configure Notification Handler VnfLcmOperationOccurrenceNotification ${endpoint} Wait Until Keyword Succeeds 2 min 10 sec Verify Mock Expectation ${req} Wait Until Keyword Succeeds 2 min 10 sec Verify Mock Expectation ${req} ${VnfLcmOccInstance}= Get VnfLcmOccInstance ${vnfLcmOpOccId} ${VnfLcmOccInstance}= Get VnfLcmOccInstance ${vnfLcmOpOccId} Loading
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot +10 −1 Original line number Original line Diff line number Diff line *** Settings *** *** Settings *** Resource environment/variables.txt Resource environment/variables.txt Library REST http://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} spec=SOL003-VNFLifecycleManagement-API.yaml Library OperatingSystem Library OperatingSystem Library BuiltIn Library BuiltIn Library JSONLibrary Library JSONLibrary Library Collections Library JSONSchemaLibrary schemas/ Library JSONSchemaLibrary schemas/ Loading Loading @@ -73,12 +74,16 @@ Check operationState Should Be Equal ${currentState} ${operationState} Should Be Equal ${currentState} ${operationState} Create a new Grant - Synchronous mode Create a new Grant - Synchronous mode [Arguments] ${vnfInstanceId} ${vnfLcmOpOccId} ${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}/${apiVersion}/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}"} ${body}= Get File json/grantRequest.json ${body}= Get File json/grantRequest.json ${json_body}= evaluate json.loads('''${body}''') json Set To Dictionary ${json_body} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} operation=${operation} ${body}= evaluate json.dumps(${json_body}) json Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Integer response status 201 Integer response status 201 Log Status code validated Log Status code validated Loading @@ -92,12 +97,16 @@ Create a new Grant - Synchronous mode Log Validation OK Log Validation OK Create a new Grant - Asynchronous mode Create a new Grant - Asynchronous mode [Arguments] ${vnfInstanceId} ${vnfLcmOpOccId} ${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}/${apiVersion}/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}"} ${body}= Get File json/grantRequest.json ${body}= Get File json/grantRequest.json ${json_body}= evaluate json.loads('''${body}''') json Set To Dictionary ${json_body} vnfInstanceId=${vnfInstanceId} vnfLcmOpOccId=${vnfLcmOpOccId} operation=${operation} ${body}= evaluate json.dumps(${json_body}) json Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Post ${apiRoot}/${apiName}/${apiVersion}/grants ${body} Output response Output response Integer response status 202 Integer response status 202 Loading