Skip to content
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

Merged
merged 1 commit into from
Jan 31, 2018

Conversation

andriymoroz-mlnx
Copy link
Contributor

@andriymoroz-mlnx andriymoroz-mlnx commented Dec 11, 2017

Signed-off-by: Andriy Moroz [email protected]

Description of PR

Tests for the QoS/ECN configuration and ecnconfig utility

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

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

@andriymoroz-mlnx
Copy link
Contributor Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/ojgects/objects ?

- name: Test QoS Config and utility test
include: qos_config.yml
tags: qosconfig

Copy link
Collaborator

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:

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
Copy link
Collaborator

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.

Copy link
Collaborator

@yxieca yxieca left a 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.

@andriymoroz-mlnx andriymoroz-mlnx changed the title Add QoS configuration and ECN WRED get/set tests Add ECN WRED configuration test Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants