[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:
parent
35e41687b4
commit
1dec473495
@ -106,3 +106,13 @@ class FanDrawer(FanDrawerBase):
|
||||
bool: True if it is replaceable.
|
||||
"""
|
||||
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
|
||||
|
@ -135,7 +135,7 @@ class Watchdog(WatchdogBase):
|
||||
ret = WDT_COMMON_ERROR
|
||||
if seconds < 0:
|
||||
return ret
|
||||
if seconds > 16779:
|
||||
if seconds > 16777:
|
||||
return ret
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user