Loading src/tests/ofc25/tests/test_functional_create_vlinks.py +1 −1 Original line number Diff line number Diff line Loading @@ -77,5 +77,5 @@ def test_create_virtual_link( expected_virtual_link_uuids=None, expected_virtual_link_names=expected_virtual_link_names, expected_e2e_services=index, expected_opt_connections=1, expected_opt_connections=1 + index, # 1 optical band + N optical lightpaths within the band ) src/tests/ofc25/tests/test_functional_delete_vlinks.py +8 −2 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ def test_delete_virtual_links( expected_virtual_link_uuids=None, expected_virtual_link_names=expected_virtual_link_names, expected_e2e_services=3, expected_opt_connections=1, expected_opt_connections=1 + 3, # 1 optical band + N optical lightpaths within the band ) for remaining, (descriptor_name, virtual_link_name) in zip( Loading @@ -74,6 +74,12 @@ def test_delete_virtual_links( 'expected_e2e_services=%d', virtual_link_name, str(sorted(expected_virtual_link_names)), remaining ) # 1 optical band + N optical lightpaths within the band # if only remains optical band, it is assumed it is auto-removed opt_remaining = 1 + remaining if opt_remaining == 1: opt_remaining = 0 wait_for_state_or_raise( ip_context_client=ip_context_client, e2e_context_client=e2e_context_client, Loading @@ -81,5 +87,5 @@ def test_delete_virtual_links( expected_virtual_link_uuids=None, expected_virtual_link_names=expected_virtual_link_names, expected_e2e_services=remaining, expected_opt_connections=(1 if remaining > 0 else 0), expected_opt_connections=opt_remaining, ) Loading
src/tests/ofc25/tests/test_functional_create_vlinks.py +1 −1 Original line number Diff line number Diff line Loading @@ -77,5 +77,5 @@ def test_create_virtual_link( expected_virtual_link_uuids=None, expected_virtual_link_names=expected_virtual_link_names, expected_e2e_services=index, expected_opt_connections=1, expected_opt_connections=1 + index, # 1 optical band + N optical lightpaths within the band )
src/tests/ofc25/tests/test_functional_delete_vlinks.py +8 −2 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ def test_delete_virtual_links( expected_virtual_link_uuids=None, expected_virtual_link_names=expected_virtual_link_names, expected_e2e_services=3, expected_opt_connections=1, expected_opt_connections=1 + 3, # 1 optical band + N optical lightpaths within the band ) for remaining, (descriptor_name, virtual_link_name) in zip( Loading @@ -74,6 +74,12 @@ def test_delete_virtual_links( 'expected_e2e_services=%d', virtual_link_name, str(sorted(expected_virtual_link_names)), remaining ) # 1 optical band + N optical lightpaths within the band # if only remains optical band, it is assumed it is auto-removed opt_remaining = 1 + remaining if opt_remaining == 1: opt_remaining = 0 wait_for_state_or_raise( ip_context_client=ip_context_client, e2e_context_client=e2e_context_client, Loading @@ -81,5 +87,5 @@ def test_delete_virtual_links( expected_virtual_link_uuids=None, expected_virtual_link_names=expected_virtual_link_names, expected_e2e_services=remaining, expected_opt_connections=(1 if remaining > 0 else 0), expected_opt_connections=opt_remaining, )