[Celestica DX010] fix fan drawer and watchdog platform testcase issues (#13426)

Why I did it
fix DX010 fan drawer and watchdog platform test case issues

How I did it
1. Add fan_drawer get_maximum_consumed_power support
2. Adjust maximum watchdog timeout value check

How to verify it
Run test_fan_drawer and test_watchdog test cases.
This commit is contained in:
Ikki Zhu 2023-02-07 01:27:46 +08:00 committed by GitHub
parent 35e41687b4
commit 1dec473495
No account linked to committer's email address
2 changed files with 11 additions and 1 deletions

View File

@ -106,3 +106,13 @@ class FanDrawer(FanDrawerBase):
bool: True if it is replaceable. bool: True if it is replaceable.
""" """
return True return True
def get_maximum_consumed_power(self):
"""
Retrives the maximum power drawn by Fan Drawer
Returns:
A float, with value of the maximum consumable power of the
component.
"""
return 33.60

View File

@ -135,7 +135,7 @@ class Watchdog(WatchdogBase):
ret = WDT_COMMON_ERROR ret = WDT_COMMON_ERROR
if seconds < 0: if seconds < 0:
return ret return ret
if seconds > 16779: if seconds > 16777:
return ret return ret