Skip to content

Commit

Permalink
Added xfail markers to certain platform API tests due to known issues (
Browse files Browse the repository at this point in the history
…#6519)

What is the motivation for this PR?
Several platform API and PSU related tests are failing due to known issues on the Celestica dx010 platform. Github tracker issues #6512 and #6518 raised and tests skipped for the time being.

How did you do it?
Add skip section in tests_mark_conditions_platform_tests.yaml file.
  • Loading branch information
assrinivasan authored and wangxin committed Oct 31, 2022
1 parent 7f9d7f1 commit ff5ee07
Showing 1 changed file with 161 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,34 @@ platform_tests/api/test_chassis.py::TestChassisApi::test_get_watchdog:
conditions:
- "'sw_to3200k' in hwsku"

platform_tests/api/test_chassis.py::TestChassisApi::test_get_model:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis.py::TestChassisApi::test_get_serial:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis.py::TestChassisApi::test_get_base_mac:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis.py::TestChassisApi::test_get_system_eeprom_info:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

#######################################
##### api/test_chassis_fans.py #####
#######################################
Expand Down Expand Up @@ -117,6 +145,55 @@ platform_tests/api/test_chassis_fans.py::TestChassisFans::test_set_fans_speed:
conditions:
- "asic_type in ['mellanox', 'cisco-8000']"

platform_tests/api/test_chassis_fans.py::TestChassisFans::test_get_presence:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis_fans.py::TestChassisFans::test_get_status:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis_fans.py::TestChassisFans::test_get_speed:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis_fans.py::TestChassisFans::test_get_direction:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis_fans.py::TestChassisFans::test_get_fans_target_speed:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis_fans.py::TestChassisFans::test_set_fans_speed:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_chassis_fans.py::TestChassisFans::test_set_fans_led:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

#######################################
##### api/test_component.py #####
#######################################
Expand Down Expand Up @@ -233,6 +310,19 @@ platform_tests/api/test_fan_drawer.py::TestFanDrawerApi::test_set_fan_drawers_le
conditions:
- "asic_type in ['mellanox'] or platform in ['armhf-nokia_ixs7215_52x-r0']"

platform_tests/api/test_fan_drawer.py::TestFanDrawerApi::test_get_status:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_fan_drawer.py::TestFanDrawerApi::test_get_presence:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

#######################################
##### api/test_fan_drawer_fans.py #####
Expand Down Expand Up @@ -274,6 +364,48 @@ platform_tests/api/test_fan_drawer_fans.py::TestFanDrawerFans::test_set_fans_spe
conditions:
- "asic_type in ['mellanox', 'cisco-8000']"

platform_tests/api/test_fan_drawer_fans.py::TestFanDrawerFans::test_get_status:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_fan_drawer_fans.py::TestFanDrawerFans::test_get_presence:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_fan_drawer_fans.py::TestFanDrawerFans::test_get_speed:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_fan_drawer_fans.py::TestFanDrawerFans::test_get_direction:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_fan_drawer_fans.py::TestFanDrawerFans::test_get_fans_target_speed:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_fan_drawer_fans.py::TestFanDrawerFans::test_set_fans_speed:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

#######################################
##### api/test_module.py #####
#######################################
Expand Down Expand Up @@ -309,6 +441,11 @@ platform_tests/api/test_psu.py::TestPsuApi::test_get_status:
reason: "Unsupported platform API"
conditions:
- "asic_type in ['mellanox']"
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_psu.py::TestPsuApi::test_led:
skip:
Expand All @@ -321,13 +458,25 @@ platform_tests/api/test_psu.py::TestPsuApi::test_power:
reason: "Unsupported platform API"
conditions:
- "asic_type in ['mellanox', 'cisco-8000'] or (asic_type in ['barefoot'] and hwsku in ['newport']) or platform in ['armhf-nokia_ixs7215_52x-r0']"

xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_psu.py::TestPsuApi::test_temperature:
skip:
reason: "Unsupported platform API"
conditions:
- "platform in ['armhf-nokia_ixs7215_52x-r0']"

platform_tests/api/test_psu.py::TestPsuApi::test_get_presence:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

#######################################
##### api/test_psu_fans.py #####
#######################################
Expand All @@ -354,13 +503,24 @@ platform_tests/api/test_psu_fans.py::TestPsuFans::test_set_fans_led:
reason: "On Cisco 8000 and mellanox platform, PSU led are unable to be controlled by software"
conditions:
- "asic_type in ['mellanox', 'cisco-8000']"
xfail:
reason:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6512

platform_tests/api/test_psu_fans.py::TestPsuFans::test_set_fans_speed:
skip:
reason: "Unsupported platform API"
conditions:
- "asic_type in ['mellanox']"

platform_tests/api/test_psu_fans.py::TestPsuFans::test_get_presence:
xfail:
reason: "Testcase consistently fails, raised issue to track"
conditions:
- "hwsku in ['Celestica-DX010-C32']"
- https://github.com/sonic-net/sonic-mgmt/issues/6518

#######################################
##### api/test_sfp.py #####
#######################################
Expand Down

0 comments on commit ff5ee07

Please sign in to comment.