-
Notifications
You must be signed in to change notification settings - Fork 740
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 ECN WRED configuration test #384
Conversation
Requires sonic-net/sonic-buildimage#1226 to work properly on Mellanox switch |
@@ -0,0 +1,14 @@ | |||
-- this lua script is used in qosconfig test | |||
-- it automates walking thru WRED ojgects in the ASIC DB |
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.
s/ojgects/objects ?
ansible/roles/test/tasks/sonic.yml
Outdated
- name: Test QoS Config and utility test | ||
include: qos_config.yml | ||
tags: qosconfig | ||
|
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.
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
- name: Check if ASIC DB configured qos parameters | ||
shell: docker exec database redis-cli -n 1 KEYS ASIC_STATE:SAI_OBJECT_TYPE_QUEUE* | grep QUEUE | ||
register: grep_queue | ||
failed_when: grep_queue.rc != 0 |
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 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.
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.
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
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_wred
Any 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