Example #1
0
    def test_get_thermal_manager(self, duthosts, enum_rand_one_per_hwsku_hostname, localhost, platform_api_conn):
        duthost = duthosts[enum_rand_one_per_hwsku_hostname]
        thermal_manager_available = True
        if duthost.facts.get("chassis"):
            thermal_manager_available = duthost.facts.get("chassis").get("thermal_manager", True)

        if not thermal_manager_available:
            pytest.skip("skipped as thermal manager is not available")

        thermal_mgr = chassis.get_thermal_manager(platform_api_conn)
        pytest_assert(thermal_mgr is not None, "Failed to retrieve thermal manager")
Example #2
0
 def test_get_thermal_manager(self, localhost, platform_api_conn,
                              thermal_manager_enabled):
     thermal_mgr = chassis.get_thermal_manager(platform_api_conn)
     pytest_assert(thermal_mgr is not None,
                   "Failed to retrieve thermal manager")
Example #3
0
 def test_get_thermal_manager(self, duthosts,
                              enum_rand_one_per_hwsku_hostname, localhost,
                              platform_api_conn):
     thermal_mgr = chassis.get_thermal_manager(platform_api_conn)
     pytest_assert(thermal_mgr is not None,
                   "Failed to retrieve thermal manager")