Skip to content

Commit

Permalink
Update ASIC namespace fixture following changes in dependent PR sonic…
Browse files Browse the repository at this point in the history
  • Loading branch information
okaravasi committed Nov 29, 2024
1 parent fa289ec commit 893ccaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/generic_config_updater/test_pfcwd_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
8 changes: 4 additions & 4 deletions tests/generic_config_updater/test_pfcwd_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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':
Expand Down

0 comments on commit 893ccaa

Please sign in to comment.