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

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.

Co-authored-by: Ikki Zhu <79439153+qnos@users.noreply.github.com>
This commit is contained in:
mssonicbld 2023-02-11 01:19:38 +08:00 committed by GitHub
parent 5e52b92d0a
commit 268e866c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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