-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dualtor][non-functional] add test template for
active-active
cable…
… type (#5545) ### Description of PR Summary: Fixes # (issue) Submitting this PR to re-add test template for `active-active` cable type. The change (#5424) was reverted earlier due to regression. sign-off: Jing Zhang zhangjing@microsoft.com ### Type of change - [x] Test case(new/improvement) #### What is the motivation for this PR? Re-add the roadmap for supporting `active-active` dualtor_io testcases. #### How did you do it? 1. Pick the commit from the original PR. 2. Import `cable_type` fixture where the modified fixtures are requested. 3. Update `data_plane_utils.py` to re-use `DualtorIO` object. #### How did you verify/test it? Tested `test_normal_op` and `test_link_failure`, all passed.
- Loading branch information
Showing
16 changed files
with
196 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from tests.common.dualtor.dual_tor_utils import * | ||
from tests.common.dualtor.mux_simulator_control import * | ||
from tests.common.dualtor.nic_simulator_control import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""DualToR related common utilities for other modules.""" | ||
import pytest | ||
|
||
|
||
class CableType(object): | ||
"""Dualtor cable type.""" | ||
active_active = "active-active" | ||
active_standby = "active-standby" | ||
|
||
|
||
@pytest.fixture(params=[CableType.active_standby]) | ||
def cable_type(request): | ||
"""Dualtor cable type.""" | ||
return request.param |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.