Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add innolight threshold info for SFP platform test #16275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/platform_tests/api/test_sfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,17 @@ class TestSfpApi(PlatformApiTestBase):
'supported_max_tx_power'
]

# EXPECTED INNOLIGHT COMMON_INFO_KEYS
INNOLIGHT_EXPECTED_XCVR_THRESHOLD_INFO_KEYS = [
'postfecberlowalarm',
'postfecberlowwarning',
'prefecberhighwarning',
'postfecberhighalarm',
'prefecberlowalarm',
'postfecberhighwarning',
'prefecberhighalarm',
'prefecberlowwarning'
]
chassis_facts = None
duthost_vars = None

Expand Down Expand Up @@ -484,6 +495,8 @@ def test_get_transceiver_threshold_info(self, duthosts, enum_rand_one_per_hwsku_
in redis TRANSCEIVER_DOM_THRESHOLD table. Skipping this transceiver")
continue
expected_keys += self.QSFPZR_EXPECTED_XCVR_THRESHOLD_INFO_KEYS
if 'PINEWAVE' in info_dict['manufacturer']:
expected_keys += self.INNOLIGHT_EXPECTED_XCVR_THRESHOLD_INFO_KEYS

missing_keys = set(expected_keys) - set(actual_keys)
for key in missing_keys:
Expand Down
Loading