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

[test_iface_namingmode] Adjusted the test according to the new buffer queue/pg counters optimization #3

Closed
wants to merge 1 commit into from

Conversation

vadymhlushko-mlnx
Copy link
Owner

@vadymhlushko-mlnx vadymhlushko-mlnx commented Sep 28, 2022

Description of PR

DEPENDS ON: INSERT PR

Summary: Adjusted the test test_iface_namingmode.py according to the new buffer queue/pg counters optimization
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Because of the new implementation sonic-swss/pull/2432 from now on, there is a valid case if there are no multicast counters inside the COUNTERS_DB.

In order for multicast counters to be presented in COUNTERS_DB the appropriate queues should be configured inside the CONFIG_DB (e.g "BUFFER_QUEUE|Ethernet14|7-8")

How did you do it?

Change the testcases - test_show_queue_counters, test_show_queue_persistent_watermark_multicast, test_show_queue_watermark_multicast

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@@ -6,6 +6,7 @@
from tests.common.utilities import wait, wait_until
from netaddr import IPAddress
from tests.common.helpers.assertions import pytest_assert
from tests.snmp.test_snmp_phy_entity import redis_get_keys
Copy link
Owner Author

Choose a reason for hiding this comment

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

don't import from another test, copy redis_get_keys method to some common folder

elif mode == 'default':
for intf in setup['default_interfaces']:
assert re.search(r'{}'.format(intf), show_queue_wm_mcast) is not None
if show_queue_wm_mcast != "Object map from COUNTERS_DB is empty, because counters are not configured in CONFIG_DB!":
Copy link
Owner Author

Choose a reason for hiding this comment

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

aling message

@vadymhlushko-mlnx vadymhlushko-mlnx changed the title test_iface_namingmode.py [test_iface_namingmode] Adjusted the test according to new buffer queue/pg counters optimisation Sep 28, 2022
@vadymhlushko-mlnx vadymhlushko-mlnx changed the title [test_iface_namingmode] Adjusted the test according to new buffer queue/pg counters optimisation [test_iface_namingmode] Adjusted the test according to the new buffer queue/pg counters optimization Sep 28, 2022
… queue/pg counters optimization

Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
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.

1 participant