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
fa279b1e
Commit
fa279b1e
authored
Jan 28, 2021
by
Elian Kraja
Browse files
Fix issue:
#144
parent
f9ba25b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
fa279b1e
...
...
@@ -488,10 +488,11 @@ PATCH individual vnfInstance
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
${body}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
DELETE individual vnfInstance
log
Trying to delete an individual VNF instance
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${
v
nfInstanceId}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${
notInstantiatedV
nfInstanceId}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -546,8 +547,7 @@ GET Scale vnfInstance
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
${body}
=
Get File
jsons/scaleVnfRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PUT Scale vnfInstance
...
...
@@ -662,6 +662,16 @@ POST Heal VNF
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
POST Heal VNF NOT INSTANTIATED
Log
Trying to heal a VNF instance.
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
${body}
=
Get File
jsons/healVnfRequest.json
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${notInstantiatedVnfInstanceId}
/heal
${body}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
GET Heal VNF
log
Trying to perform a GET. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
...
...
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