From 893ccaa8f28e202d1f8f7792bdeaa751b5a51ff3 Mon Sep 17 00:00:00 2001 From: karavasi Date: Fri, 29 Nov 2024 12:36:13 -0500 Subject: [PATCH] Update ASIC namespace fixture following changes in dependent PR #15182 --- tests/generic_config_updater/test_pfcwd_interval.py | 4 ++-- tests/generic_config_updater/test_pfcwd_status.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/generic_config_updater/test_pfcwd_interval.py b/tests/generic_config_updater/test_pfcwd_interval.py index c19391e6fd1..932b22991bd 100644 --- a/tests/generic_config_updater/test_pfcwd_interval.py +++ b/tests/generic_config_updater/test_pfcwd_interval.py @@ -165,8 +165,8 @@ def get_new_interval(duthost, is_valid, namespace=None): @pytest.mark.parametrize("field_pre_status", ["existing", "nonexistent"]) @pytest.mark.parametrize("is_valid_config_update", [True, False]) def test_pfcwd_interval_config_updates(duthost, ensure_dut_readiness, oper, - field_pre_status, is_valid_config_update, rand_front_end_asic_namespace): - asic_namespace, _asic_id = rand_front_end_asic_namespace + field_pre_status, is_valid_config_update, rand_asic_namespace): + asic_namespace, _asic_id = rand_asic_namespace new_interval = get_new_interval(duthost, is_valid_config_update, asic_namespace) operation_to_new_value_map = {"add": "{}".format(new_interval), "replace": "{}".format(new_interval)} diff --git a/tests/generic_config_updater/test_pfcwd_status.py b/tests/generic_config_updater/test_pfcwd_status.py index 4a445c8af6c..1cac8b6beab 100644 --- a/tests/generic_config_updater/test_pfcwd_status.py +++ b/tests/generic_config_updater/test_pfcwd_status.py @@ -213,7 +213,7 @@ def _confirm_value_in_flex_db(): @pytest.mark.parametrize('port', ['single', 'all']) -def test_stop_pfcwd(duthost, rand_front_end_asic_namespace, +def test_stop_pfcwd(duthost, rand_asic_namespace, extract_pfcwd_config, ensure_dut_readiness, port): """ Tests GCU config for pfcwd stop scenario @@ -222,7 +222,7 @@ def test_stop_pfcwd(duthost, rand_front_end_asic_namespace, 3. Validates the number of PFC_WD related entries in FLEX DB is as expected 4. Validates that orchagent is running fine pre and post test """ - asic_namespace, _asic_id = rand_front_end_asic_namespace + asic_namespace, _asic_id = rand_asic_namespace pfcwd_config = extract_pfcwd_config initial_count = len(pfcwd_config) * FLEXDB_COUNTERS_PER_PORT @@ -263,7 +263,7 @@ def test_stop_pfcwd(duthost, rand_front_end_asic_namespace, @pytest.mark.parametrize('port', ['single', 'all']) -def test_start_pfcwd(duthost, rand_front_end_asic_namespace, +def test_start_pfcwd(duthost, rand_asic_namespace, extract_pfcwd_config, ensure_dut_readiness, stop_pfcwd, port): """ Tests GCU config for pfcwd start scenario @@ -272,7 +272,7 @@ def test_start_pfcwd(duthost, rand_front_end_asic_namespace, 3. Validates the number of PFC_WD related entries in FLEX DB is as expected 4. Validates that orchagent is running fine pre and post test """ - asic_namespace, _asic_id = rand_front_end_asic_namespace + asic_namespace, _asic_id = rand_asic_namespace pfcwd_config = extract_pfcwd_config if port == 'single':