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

[sonic_eeprom] Add unit test for eeprom_tlvinfo_test #282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bill-nokia
Copy link
Contributor

Description

Added unit test for eeprom_tlvinfo.py tool

Motivation and Context

Greater than 50% unit test code coverage required for PRs

How Has This Been Tested?

Unit test passes and code coverage requirement met

@prgeor prgeor requested a review from lizhuhuams July 5, 2022 22:37
@prgeor
Copy link
Collaborator

prgeor commented Jul 5, 2022

@lizhuhuams @sujinmkang please review

assert(tf == True)
assert(s[2].decode() == "3HE16794AARA01")

assert(tlvInfo.base_mac_addr(e) == "50:E0:EF:51:27:91")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume MAC address is configured per device. So it cannot always be 50:E0:ED:51:27:91, right?

How come platform name is not tested?
Can CRC be tested?


(tf, s) = tlvInfo.get_tlv_field(e, tlvInfo._TLV_CODE_PRODUCT_NAME)
assert(tf == True)
assert(s[2].decode() == "7215 IXS-T1")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is common code, pleas do not assume your product name on line 52 and part number on line 56.

oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-platform-common that referenced this pull request Oct 25, 2024
* [ycabled] remove some spurious logs

For Ports which do not belong to active-active or active-standby type, we should not try to post muxcable telemetry information for them. This PR remove the warning message for such a posting.
Also fixes the PR pipeline by changing the ConsumerTable to SubscriberStateTable


Signed-off-by: vaibhav-dahiya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants