Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
4f93bbcd
Commit
4f93bbcd
authored
Jan 08, 2019
by
Elian Kraja
Browse files
Merge branch 'master' of
https://forge.etsi.org/gitlab/stf/stf-559/api-tests
parents
764cc2cf
7698216c
Changes
2
Hide whitespace changes
Inline
Side-by-side
SOL003/VNFLifecycleManagement-API/ScaleVNFTaskWorkflow.robot
View file @
4f93bbcd
...
...
@@ -38,6 +38,7 @@ Scale out a VNF Instance
*** Keywords ***
Initialize System
Create Sessions
${scaleInfo}
=
Get Vnf Scale Info
${vnfInstanceId}
Precondition Checks
...
...
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
4f93bbcd
...
...
@@ -39,12 +39,9 @@ Check HTTP Response Body Json Schema Is
Log
Json Schema Validation OK
Check resource Instantiated
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
Integer
response status
200
String
response body instantiationState
INSTANTIATED
Check VNF Instance
${vnfInstanceId}
Check HTTP Response Status Code Is
200
Check VNF Status
${response.body.instantiationState}
INSTANTIATED
Check VNF Instance
[
Arguments
]
${vnfId}
...
...
@@ -77,8 +74,7 @@ Send VNF Scale Out Request
${body}
=
Get File
json/scaleVnfOutRequest.json
${json}
=
evaluate
json.loads('''
${body}
''')
json
${aspectId}
=
Set Variable
${json.aspectId}
${scaleOutResponse}
=
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
[
Return
]
${scaleOutResponse}
${response}
=
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
Create a new Grant - Synchronous mode
[
Arguments
]
${vnfInstanceId}
${vnfLcmOpOccId}
${operation}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment