Commit 5e444c22 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

OFC25 test:

- Fixed number of optical connections in tests
parent ee2033b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
        )
+8 −2
Original line number Diff line number Diff line
@@ -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(
@@ -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,
@@ -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,
        )