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
0c697141
Commit
0c697141
authored
4 years ago
by
Hammad Zafar
Committed by
Giacomo Bernini
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
updated importing variables for descriptors in LCM-API
parent
d020b80a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!199
Merge "3.3.1 dev" into "release 3" master
,
!157
SOL003 VNF Lifecycle Management - Implementation of deltas between v3.3.1 and v2.7.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
+11
-6
11 additions, 6 deletions
...FLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
with
11 additions
and
6 deletions
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
+
11
−
6
View file @
0c697141
...
...
@@ -9,8 +9,8 @@ Library JSONLibrary
Library
Collections
Library
Process
Library
JSONSchemaLibrary
schemas/
Variables
descriptors/SOL001/VNFD/vnfd_SOL001.yaml
Variables
descriptors/SOL006/VNFD/vnfd_SOL006.yaml
#
Variables descriptors/SOL001/VNFD/vnfd_SOL001.yaml
#
Variables descriptors/SOL006/VNFD/vnfd_SOL006.yaml
*** Keywords ***
Create Sessions
...
...
@@ -1441,6 +1441,7 @@ PARSE the Descriptor File
Run Keyword If
'
${descriptorType}
'=='SOL001'
Fetch Information from SOL001 descriptor file
ELSE
Fetch Information from SOL006 descriptor file
Fetch Information from SOL001 descriptor file
Import Variables
${CURDIR}
/descriptors/SOL001/VNFD/vnfd_SOL001.yaml
@{VDU_labels}
=
Create List
@{VNF_labels}
=
Create List
@{VirtualLink_labels}
=
Create List
...
...
@@ -1467,7 +1468,8 @@ Fetch Information from SOL001 descriptor file
Set Global Variable
@{Storage_IDs}
@{Storage_labels}
Get VNF Attributes from SOL001
[
Arguments
]
${VNF_label}
[
Arguments
]
${VNF_label}
Import Variables
${CURDIR}
/descriptors/SOL001/VNFD/vnfd_SOL001.yaml
${descriptor_id}
=
Get Variable Value
${topology_template.node_templates.${VNF_label}.properties.descriptor_id}
${provider}
=
Get Variable Value
${topology_template.node_templates.${VNF_label}.properties.provider}
${product_name}
=
Get Variable Value
${topology_template.node_templates.${VNF_label}.properties.product_name}
...
...
@@ -1484,6 +1486,7 @@ Get VNF Attributes from SOL001
Fetch Information from SOL006 descriptor file
Import Variables
${CURDIR}
/descriptors/SOL006/VNFD/vnfd_SOL006.yaml
${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']}
...
...
@@ -1511,6 +1514,7 @@ Fetch Information from SOL006 descriptor file
Get VDU IDs
[
Arguments
]
${count}
Import Variables
${CURDIR}
/descriptors/SOL006/VNFD/vnfd_SOL006.yaml
@{VDU_labels}
=
Create List
${Storage_labels}
=
Create List
FOR
${i}
IN RANGE
${count}
...
...
@@ -1523,6 +1527,7 @@ Get VDU IDs
Get Internal CPs for each VDU
[
Arguments
]
${vdu}
Import Variables
${CURDIR}
/descriptors/SOL006/VNFD/vnfd_SOL006.yaml
${count}
=
Get Length
${nfv.vnfd[0].vdu[${vdu}]['int-cpd']}
${internal_CPs}
=
Create List
FOR
${i}
IN RANGE
${count}
...
...
@@ -1532,6 +1537,7 @@ Get Internal CPs for each VDU
Get External CP IDs
[
Arguments
]
${count}
Import Variables
${CURDIR}
/descriptors/SOL006/VNFD/vnfd_SOL006.yaml
@{external_CPs}
=
Create List
FOR
${i}
IN RANGE
${count}
Append To List
${external_CPs}
${nfv.vnfd[0].ext_cpd[${i}].id}
...
...
@@ -1540,6 +1546,7 @@ Get External CP IDs
Get Virtual Link IDs
[
Arguments
]
${count}
Import Variables
${CURDIR}
/descriptors/SOL006/VNFD/vnfd_SOL006.yaml
${VirtualLink_labels}
=
Create List
FOR
${i}
IN RANGE
${count}
Append To List
${VirtualLink_labels}
${nfv.vnfd[0]['int-virtual-link-desc'][${i}]['id']}
...
...
@@ -1548,6 +1555,7 @@ Get Virtual Link IDs
Get Instantiation Levels
[
Arguments
]
${count}
Import Variables
${CURDIR}
/descriptors/SOL006/VNFD/vnfd_SOL006.yaml
@{Instantiation_Levels}
=
Create List
FOR
${i}
IN RANGE
${count}
Append To List
${Instantiation_Levels}
${nfv.vnfd[0].df['instantiation-level'][${i}]['id']}
...
...
@@ -1627,8 +1635,6 @@ DELETE Change Current VNF Package Task
Check HTTP Location Header Contains URI of Created Resource
${URI}
=
Get Value From Json
${response['headers']}
$..Location
Should Not Be Empty
${URI}
*** Keywords ***
POST Create VNF Snapshot Task
Log
Trying to request a snapshot of a VNF instance
...
...
@@ -2029,7 +2035,6 @@ Check HTTP Content-Type Header Is Set
Should Be Equal As Strings
${response['headers']['Content-Type']}
${CONTENT_TYPE_OCTET}
Log
Content type validated
Check HTTP Content-Range Header Is Set
Log
Check Content-Range HTTP Header
Should Contain
${response['headers']}
Content-Range
...
...
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