-
Notifications
You must be signed in to change notification settings - Fork 727
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
Add BBR testcases #14117
Add BBR testcases #14117
Conversation
a59dea4
to
3a16ca2
Compare
3a16ca2
to
5269d1f
Compare
5269d1f
to
a8db02b
Compare
/azp run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
@pytest.fixture(scope='module') | ||
def setup(duthosts, rand_one_dut_hostname, tbinfo, nbrhosts): | ||
duthost = duthosts[rand_one_dut_hostname] | ||
|
||
constants_stat = duthost.stat(path=CONSTANTS_FILE) | ||
if not constants_stat['stat']['exists']: | ||
pytest.skip('No file {} on DUT, BBR is not supported') | ||
pytest.skip('No constants.yml file on DUT, BBR is not supported') |
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.
If there is no constants.yml, is it a correct status? In my understanding, constants.yml should store many constans, right? If the file doesn't exist, it is in fatal condition, not just BBR is not supported, we have to fail the case, not just skip it, is it correct?
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.
I don't think constants file not exist should fail the case, it's not the bbr case's responsibility to make sure the file exists.
13b3835
to
77e8a79
Compare
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
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
hi @ZhaohuiS any concern to approve? |
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
What is the motivation for this PR? Add a new case to verify the BBR initialized behavior. How did you do it? Add the following new case under test_bgp_bbr.py test_bbr_status_consistent_after_reload How did you verify/test it? https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
What is the motivation for this PR? Add a new case to verify the BBR initialized behavior. How did you do it? Add the following new case under test_bgp_bbr.py test_bbr_status_consistent_after_reload How did you verify/test it? https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
What is the motivation for this PR? Add a new case to verify the BBR initialized behavior. How did you do it? Add the following new case under test_bgp_bbr.py test_bbr_status_consistent_after_reload How did you verify/test it? https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
Cherry-pick PR to 202405: #14975 |
What is the motivation for this PR? Add a new case to verify the BBR initialized behavior. How did you do it? Add the following new case under test_bgp_bbr.py test_bbr_status_consistent_after_reload How did you verify/test it? https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
Description of PR
After the fix in sonic-net/sonic-buildimage#19590, add a new test case to test the bbr behavior after config reload.
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Add a new case to verify the BBR initialized behavior.
How did you do it?
Add the following new case under test_bgp_bbr.py
test_bbr_status_consistent_after_reload
How did you verify/test it?
https://dev.azure.com/mssonic/internal/_build/results?buildId=619063&view=results
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation