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
726dc562
Commit
726dc562
authored
Nov 19, 2020
by
Elian Kraja
Browse files
Issue
#73
: Updated Scale request
parent
54048ec9
Changes
2
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
View file @
726dc562
...
...
@@ -242,14 +242,24 @@ DELETE instantiate individual vnfInstance
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
POST Scale vnfInstance
POST Scale vnfInstance
[
Arguments
]
${vnf_state}
[
Documentation
]
${vnf_state}
differentiate the VNF ID to be used in the different POST requests
...
${vnf_state}
=
= 0 -> VNF in instantiated state
...
${vnf_state}
=
= 1 -> VNF in not_instantiated state
...
${vnf_state}
=
= 2 -> VNF ID not stored
...
Log
Trying to Instantiate 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/scaleVnfRequest.json
Run Keyword If
${vnf_state}
=
= 0
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${instantiatedVnfInstanceId}
/scale
${body}
Run Keyword If
${vnf_state}
=
= 1
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${notInstantiatedVnfInstanceId}
/scale
${body}
Run Keyword If
${vnf_state}
=
= 2
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${NOT_EXISTANT_VNF_INSTANCE_ID}
/scale
${body}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
${outputResponse}
=
Output
response
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/scale
${body}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
GET Scale vnfInstance
Log
Trying to get a scale a vnf Instance
...
...
SOL002/VNFLifecycleManagement-API/environment/variables.txt
View file @
726dc562
...
...
@@ -18,6 +18,8 @@ ${WRONG_AUTHORIZATION} Bearer XXXXXWRONGXXXXX
${vnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${badVnfInstanceId} wrongId
${instantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f #Change with an instantiated vnfInstanceID
${notInstantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f #Change with an instantiated vnfInstanceID
${NOT_EXISTANT_VNF_INSTANCE_ID} NOT_EXISTANT_VNF_INSTANCE_ID
${conflicVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfInstanceName} Test-VnfInstance
${vnfInstanceDescription} description vnf
...
...
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