Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
TFS
controller
Commits
4a4c9dae
Commit
4a4c9dae
authored
1 month ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Common - Type Checkers - Assertions:
- Corrected definition of endpoint
parent
2f3891fd
No related branches found
No related tags found
1 merge request
!359
Release TeraFlowSDN 5.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/type_checkers/Assertions.py
+5
-1
5 additions, 1 deletion
src/common/type_checkers/Assertions.py
with
5 additions
and
1 deletion
src/common/type_checkers/Assertions.py
+
5
−
1
View file @
4a4c9dae
...
...
@@ -472,7 +472,7 @@ def validate_topology(message, num_devices=None, num_links=None):
def
validate_endpoint
(
message
):
assert
isinstance
(
message
,
dict
)
assert
len
(
message
.
keys
())
==
4
assert
len
(
message
.
keys
())
==
6
assert
'
endpoint_id
'
in
message
validate_endpoint_id
(
message
[
'
endpoint_id
'
])
assert
'
name
'
in
message
...
...
@@ -482,6 +482,10 @@ def validate_endpoint(message):
assert
'
kpi_sample_types
'
in
message
assert
isinstance
(
message
[
'
kpi_sample_types
'
],
list
)
for
kpi_sample_type
in
message
[
'
kpi_sample_types
'
]:
validate_kpi_sample_types_enum
(
kpi_sample_type
)
assert
'
endpoint_location
'
in
message
# TODO: validate "endpoint_location"
assert
'
capabilities
'
in
message
# TODO: validate "capabilities"
def
validate_component
(
component
):
assert
isinstance
(
component
,
dict
)
...
...
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