Skip to content

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") No newline at end of file

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