-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dualtor][non-functional] add test template for active-active
cable type
#5545
Conversation
…c-net#5424) Approach What is the motivation for this PR? Modify testcase test_normal_op.py::test_normal_op_upstream to support parameterization based on cable type(active-active or active-standby). This PR acts as a roadmap on how to support cable type parameterization further for all dualtor_io testcases. Signed-off-by: Longxiang Lyu lolv@microsoft.com How did you do it? 1. Add parameterization fixture cable_type. 2. Let existing fixtures for dualtor active-standby selects ports in active-standby cable type to test. 3. List out the basic APIs for active-active tests control/data plane fixtures. How did you verify/test it? Run the test test_normal_op.py::test_normal_op_upstream:
This pull request introduces 13 alerts when merging 9dfe02b into 3212c2f - view on LGTM.com new alerts:
|
/azp run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
/azp run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
@zjswhhh did you address the LGTM issues? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This pull request introduces 14 alerts when merging ef53d71 into fcc122b - view on LGTM.com new alerts:
|
This pull request introduces 14 alerts when merging 90520fa into 4dc8cfd - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@zjswhhh are you able to solve the 14 unused imports identified by LGTM? |
Hi Ying, the alerting for unused import is false positive. Let me check if I can find a work-around. |
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
Back port request
Approach
What is the motivation for this PR?
Re-add the roadmap for supporting
active-active
dualtor_io testcases.How did you do it?
cable_type
fixture where the modified fixtures are requested.data_plane_utils.py
to re-useDualtorIO
object.How did you verify/test it?
Tested test cases below, all passed:
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation