Commit 4f93bbcd authored by Elian Kraja's avatar Elian Kraja
Browse files
parents 764cc2cf 7698216c
...@@ -38,6 +38,7 @@ Scale out a VNF Instance ...@@ -38,6 +38,7 @@ Scale out a VNF Instance
*** Keywords *** *** Keywords ***
Initialize System Initialize System
Create Sessions
${scaleInfo}= Get Vnf Scale Info ${vnfInstanceId} ${scaleInfo}= Get Vnf Scale Info ${vnfInstanceId}
Precondition Checks Precondition Checks
......
...@@ -39,12 +39,9 @@ Check HTTP Response Body Json Schema Is ...@@ -39,12 +39,9 @@ Check HTTP Response Body Json Schema Is
Log Json Schema Validation OK Log Json Schema Validation OK
Check resource Instantiated Check resource Instantiated
Set Headers {"Accept":"${ACCEPT}"} Check VNF Instance ${vnfInstanceId}
Set Headers {"Content-Type": "${CONTENT_TYPE}"} Check HTTP Response Status Code Is 200
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Check VNF Status ${response.body.instantiationState} INSTANTIATED
Get ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}
Integer response status 200
String response body instantiationState INSTANTIATED
Check VNF Instance Check VNF Instance
[Arguments] ${vnfId} [Arguments] ${vnfId}
...@@ -77,8 +74,7 @@ Send VNF Scale Out Request ...@@ -77,8 +74,7 @@ Send VNF Scale Out Request
${body}= Get File json/scaleVnfOutRequest.json ${body}= Get File json/scaleVnfOutRequest.json
${json}= evaluate json.loads('''${body}''') json ${json}= evaluate json.loads('''${body}''') json
${aspectId}= Set Variable ${json.aspectId} ${aspectId}= Set Variable ${json.aspectId}
${scaleOutResponse}= Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body} ${response}= Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${vnfInstanceId}/scale ${body}
[Return] ${scaleOutResponse}
Create a new Grant - Synchronous mode Create a new Grant - Synchronous mode
[Arguments] ${vnfInstanceId} ${vnfLcmOpOccId} ${operation} [Arguments] ${vnfInstanceId} ${vnfLcmOpOccId} ${operation}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment