Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NFV - Network Functions Virtualisation
api-tests
Commits
5a6e72a1
Commit
5a6e72a1
authored
4 years ago
by
uihassan
Browse files
Options
Downloads
Patches
Plain Diff
Added SOL006 descriptors in 6.3.5.1.1
parent
d7494b97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!199
Merge "3.3.1 dev" into "release 3" master
,
!193
Merge 2.7.1 dev into Master, for TST010ed271 publication
,
!142
SOL002 - Implementation of additional test steps for checks against VNFD content in v2.7.1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
+19
-9
19 additions, 9 deletions
.../VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
SOL002/VNFLifecycleManagement-API/environment/variables.txt
+8
-1
8 additions, 1 deletion
SOL002/VNFLifecycleManagement-API/environment/variables.txt
with
27 additions
and
10 deletions
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
+
19
−
9
View file @
5a6e72a1
...
...
@@ -80,15 +80,9 @@ POST Create a new vnfInstance
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get key for VNF Descriptor
${descriptor_id}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.descriptor_id}
${provider}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.provider}
${product_name}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.product_name}
${software_version}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.software_version}
${descriptor_version}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.descriptor_version}
${flavour_id}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.flavour_id}
Run Keyword If
${check_descriptors}
=
= 1
Add VNF Descriptor Content to VNF Instance Post
${template}
=
Get File
jsons/createVnfRequest.json
${body}
=
Format String
${template}
vnfdId=
${descriptor_id}
vnfProvider=
${provider}
vnfProductName=
${product_name}
vnfSoftwareVersion=
${software_version}
vnfdVersion=
${descriptor_version}
flavourId=
${flavour_id}
${body}
=
Format String
${template}
vnfdId=
${descriptor_id}
vnfProvider=
${provider}
vnfProductName=
${product_name}
vnfSoftwareVersion=
${software_version}
vnfdVersion=
${descriptor_version}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_instances
${body}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
...
...
@@ -1057,7 +1051,6 @@ Parse SOL001
Should Be Equal As Strings
${response['body']['instantiatedVnfInfo']['flavourId']}
${flavour_id}
Parse SOL006
#Log SOL006 code
${descriptor_id}
=
Get Variable Value
${nfv.vnfd[0].id}
${provider}
=
Get Variable Value
${nfv.vnfd[0].provider}
${product_name}
=
Get Variable Value
${nfv.vnfd[0].product-name}
...
...
@@ -1070,3 +1063,20 @@ Parse SOL006
Should Be Equal As Strings
${response['body']['vnfSoftwareVesion']}
${software_version}
Should Be Equal As Strings
${response['body']['vnfdVersion']}
${descriptor_version}
Add VNF Descriptor Content to VNF Instance Post
Run Keyword If
'
${descriptorType}
'=='SOL001'
Parse SOL001 VNF Instance
ELSE
Parse SOL006 VNF Instance
Parse SOL001 VNF Instance
Get key for VNF Descriptor
${descriptor_id}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.descriptor_id}
${provider}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.provider}
${product_name}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.product_name}
${software_version}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.software_version}
${descriptor_version}
=
Get Variable Value
${topology_template.node_templates.${vnfKey}.properties.descriptor_version}
Parse SOL006 VNF Instance
${descriptor_id}
=
Get Variable Value
${nfv.vnfd[0].id}
${provider}
=
Get Variable Value
${nfv.vnfd[0].provider}
${product_name}
=
Get Variable Value
${nfv.vnfd[0].product-name}
${software_version}
=
Get Variable Value
${nfv.vnfd[0].software-version}
${descriptor_version}
=
Get Variable Value
${nfv.vnfd[0].version}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
SOL002/VNFLifecycleManagement-API/environment/variables.txt
+
8
−
1
View file @
5a6e72a1
...
...
@@ -81,4 +81,11 @@ ${callbackResp} localhost
${descriptorType} SOL001
${vnfKey} {}
${check_descriptors} 1
\ No newline at end of file
${check_descriptors} 1
${descriptor_id}
${provider}
${product_name}
${software_version}
${descriptor_version}
Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances ${body}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment