Skip to content
Merged
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
39 changes: 38 additions & 1 deletion tests/common/plugins/conditional_mark/tests_mark_conditions.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
#######################################
##### Define Anchors #####
#######################################

# yaml files don't let an anchor be defined outside a yaml entry, so this block just
# creates an entry for pre-test but ensure it will always run, then the other
# conditions can just be used to define anchors for further use in this file

test_pretest.py:
skip:
reason: "Dummy entry to allow anchors to be defined at the top of this file"
conditions_logical_operator: and
conditions:
- "False" # Ensure pretest always runs
- &lossyTopos |
topo_name in [
't0-isolated-d128u128s1', 't0-isolated-v6-d128u128s1',
't0-isolated-d128u128s2', 't0-isolated-v6-d128u128s2',
't0-isolated-d16u16s1', 't0-isolated-v6-d16u16s1',
't0-isolated-d16u16s2', 't0-isolated-v6-d16u16s2',
't0-isolated-d256u256s2', 't0-isolated-v6-d256u256s2',
't0-isolated-d32u32s2', 't0-isolated-v6-d32u32s2',
't1-isolated-d224u8', 't1-isolated-v6-d224u8',
't1-isolated-d28u1', 't1-isolated-v6-d28u1',
't1-isolated-d448u15-lag', 't1-isolated-v6-d448u15-lag',
't1-isolated-d448u16', 't1-isolated-v6-d448u16',
't1-isolated-d56u1-lag', 't1-isolated-v6-d56u1-lag',
't1-isolated-d56u2', 't1-isolated-v6-d56u2' ]

#######################################
##### cutsom_acl #####
#######################################
Expand Down Expand Up @@ -1988,6 +2017,7 @@ generic_config_updater/test_pfcwd_status.py:
conditions_logical_operator: or
conditions:
- "topo_type in ['m0', 'mx']"
- *lossyTopos
- "release in ['202211']"
- hwsku in ['Mellanox-SN5600-C224O8', 'Mellanox-SN5600-C256S1', 'Mellanox-SN5640-C448O16', 'Mellanox-SN5640-C512S2',
'Arista-7060X6-64PE-C256S2', 'Arista-7060X6-64PE-C224O8', 'Arista-7060X6-64PE-B-C512S2', 'Arista-7060X6-64PE-B-C448O16']
Expand Down Expand Up @@ -2678,9 +2708,11 @@ pfc_asym/test_pfc_asym.py:
#######################################
pfcwd:
skip:
reason: "Pfcwd tests skipped on m0/mx testbed."
reason: "Pfcwd tests skipped on m0/mx testbed, and some isolated topologies."
conditions_logical_operator: or
conditions:
- "topo_type in ['m0', 'mx']"
- *lossyTopos

pfcwd/test_pfc_config.py::TestPfcConfig::test_forward_action_cfg:
skip:
Expand All @@ -2689,6 +2721,7 @@ pfcwd/test_pfc_config.py::TestPfcConfig::test_forward_action_cfg:
conditions:
- "asic_type in ['cisco-8000']"
- "topo_type in ['m0', 'mx']"
- *lossyTopos

pfcwd/test_pfcwd_all_port_storm.py:
skip:
Expand All @@ -2699,6 +2732,7 @@ pfcwd/test_pfcwd_all_port_storm.py:
conditions:
- "hwsku in ['Arista-7060X6-64PE-256x200G']"
- "topo_type in ['m0', 'mx']"
- *lossyTopos

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions:
xfail:
Expand All @@ -2713,6 +2747,7 @@ pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_no_traffic:
conditions:
- "asic_type != 'cisco-8000'"
- "topo_type in ['m0', 'mx']"
- *lossyTopos

pfcwd/test_pfcwd_warm_reboot.py:
skip:
Expand All @@ -2725,6 +2760,7 @@ pfcwd/test_pfcwd_warm_reboot.py:
- "asic_type in ['cisco-8000']"
- "'isolated' in topo_name"
- "'dualtor' in topo_name and https://github.com/sonic-net/sonic-mgmt/issues/8400"
- *lossyTopos

pfcwd/test_pfcwd_warm_reboot.py::TestPfcwdWb::test_pfcwd_wb[async_storm:
skip:
Expand All @@ -2736,6 +2772,7 @@ pfcwd/test_pfcwd_warm_reboot.py::TestPfcwdWb::test_pfcwd_wb[async_storm:
- "topo_type in ['m0', 'mx']"
- "asic_type in ['vs'] and https://github.com/sonic-net/sonic-mgmt/issues/16233"
- "release in ['202412']"
- *lossyTopos

#######################################
##### process_monitoring #####
Expand Down