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

[platform_tests/counterpoll]: Don't run counterpoll_watermark test on supervisor #14724

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions tests/platform_tests/counterpoll/test_counterpoll_watermark.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@


@pytest.fixture(scope='module')
def dut_vars(duthosts, enum_rand_one_per_hwsku_hostname, request):
def dut_vars(duthosts, enum_rand_one_per_hwsku_frontend_hostname, request):
inv_files = get_inventory_files(request)
dut_vars = get_host_visible_vars(inv_files, enum_rand_one_per_hwsku_hostname)
dut_vars = get_host_visible_vars(inv_files, enum_rand_one_per_hwsku_frontend_hostname)
yield dut_vars


def check_counters_populated(duthost, key):
return bool(redis_get_keys(duthost, 'COUNTERS_DB', key))


def test_counterpoll_queue_watermark_pg_drop(duthosts, localhost, enum_rand_one_per_hwsku_hostname, dut_vars,
def test_counterpoll_queue_watermark_pg_drop(duthosts, localhost, enum_rand_one_per_hwsku_frontend_hostname, dut_vars,
backup_and_restore_config_db): # noqa F811
"""
@summary: Verify FLEXCOUNTERS_DB and COUNTERS_DB content after `counterpoll queue/watermark/queue enable`
Expand All @@ -84,7 +84,7 @@ def test_counterpoll_queue_watermark_pg_drop(duthosts, localhost, enum_rand_one_
no WATERMARK or QUEUE stats in FLEX_COUNTER_DB
4. enables all three counterpolls (queue,watermark,pg-drop) and count stats per type
"""
duthost = duthosts[enum_rand_one_per_hwsku_hostname]
duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
skip_release(duthost, ["202205", "202111", "202106", "202012", "201911", "201811", "201803"])

counted_dict = {}
Expand Down Expand Up @@ -124,7 +124,8 @@ def test_counterpoll_queue_watermark_pg_drop(duthosts, localhost, enum_rand_one_
# Delay to allow the counterpoll to generate the maps in COUNTERS_DB
with allure.step("waiting {} seconds for counterpoll to generate maps in COUNTERS_DB"):
delay = RELEVANT_MAPS[tested_counterpoll][DELAY]
wait_until(120, 5, delay, check_counters_populated, duthost, MAPS_LONG_PREFIX.format('*'))
pytest_assert(wait_until(120, 5, delay, check_counters_populated, duthost, MAPS_LONG_PREFIX.format('*')),
"COUNTERS_DB failed to populate")
# verify QUEUE or PG maps are generated into COUNTERS_DB after enabling relevant counterpoll
with allure.step("Verifying MAPS in COUNTERS_DB on {}...".format(duthost.hostname)):
maps_dict = RELEVANT_MAPS[tested_counterpoll]
Expand Down
Loading