Add ECN WRED configuration test#384
Conversation
|
Requires sonic-net/sonic-buildimage#1226 to work properly on Mellanox switch |
ansible/roles/test/tasks/sonic.yml
Outdated
There was a problem hiding this comment.
Can you also add an access point of this test case in test by test name infrastructure?
I think you need to change following file:
- https://github.com/Azure/sonic-mgmt/blob/master/ansible/roles/test/vars/testcases.yml
This file organizes test cases in alphabetic order.You can following any existing test case as example.
Thanks,
Ying
There was a problem hiding this comment.
I am not sure if this is a big deal or not. But we do have some devices doesn't yet have qos config.
Failing test on a dut which doesn't have qos config seems to be too harsh?
Is there a way to early exit instead of failing the test?
Please don't spend too much time on this question. It is a very minor issue. I am ok with it not fixed.
yxieca
left a comment
There was a problem hiding this comment.
The test looks pretty good to me.
A few minor issues has been noted. Please take a look.
15480d0 to
3b9366f
Compare
Signed-off-by: Andriy Moroz <[email protected]>
3b9366f to
cc00eed
Compare
…os (sonic-net#384) <!-- Please make sure you've read and understood our contributing guidelines; https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md Please provide following information to help code review process a bit easier: --> ### Description of PR <!-- - Please include a summary of the change and which issue is fixed. - Please also include relevant motivation and context. Where should reviewer start? background context? - List any dependencies that are required for this change. --> Summary: Fixes # (issue) ### Type of change <!-- - Fill x for your type of change. - e.g. - [x] Bug fix --> - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] New Test case - [ ] Skipped for non-supported platforms - [ ] Test case improvement ### Back port request - [ ] 202205 - [ ] 202305 - [ ] 202311 - [ ] 202405 - [ ] 202411 - [ ] 202505 ### Approach #### What is the motivation for this PR? The ansible-playbook checks container's reachability on the wrong host. If the number of neighbors is large, it can waste a lot of time. #### How did you do it? Fix the wrong host from ansible executing host to container host. #### How did you verify/test it? Check it locally. #### Any platform specific information? #### Supported testbed topology if it's a new test case? ### Documentation <!-- (If it's a new feature, new test case) Did you update documentation/Wiki relevant to your implementation? Link to the wiki page? -->
Signed-off-by: Andriy Moroz [email protected]
Description of PR
Tests for the QoS/ECN configuration and ecnconfig utility
Type of change
Approach
How did you verify/test it?
ansible-playbook test_sonic.yml -i inventory --limit {DUT_NAME} --become --tags ecn_wredAny platform specific information?
Platform independent. Requires SAI support set for ECN/WRED parameters
Supported testbed topology if it's a new test case?
Topology independent
Documentation
Test plan:
QoS configuration in Config DB. ECN WRED configuration utility test plan