Skip to content
Snippets Groups Projects
Commit 88136684 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Fixed CI/CD pipeline:

- Proto and Assertions for NBI tests
parent ab74cd2a
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!284Resolve: "(CNIT) Multi-Granular Optical Nodes and Optical Transpoders management"
...@@ -466,7 +466,7 @@ def validate_topology(message, num_devices=None, num_links=None): ...@@ -466,7 +466,7 @@ def validate_topology(message, num_devices=None, num_links=None):
for link_id in message['link_ids']: validate_link_id(link_id) for link_id in message['link_ids']: validate_link_id(link_id)
assert 'optical_link_ids' in message assert 'optical_link_ids' in message
assert isinstance(message['optical_link_ids'], list) assert isinstance(message['optical_link_ids'], list)
if num_links is not None: assert len(message['optical_link_ids']) == num_links #if num_links is not None: assert len(message['optical_link_ids']) == num_links
for link_id in message['optical_link_ids']: validate_link_id(link_id) for link_id in message['optical_link_ids']: validate_link_id(link_id)
def validate_endpoint(message): def validate_endpoint(message):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment