[Platform API][pytest] Add basic tests for SFP class#1830
Merged
jleveque merged 4 commits intosonic-net:masterfrom Jun 30, 2020
jleveque:add_sfp_tests
Merged
[Platform API][pytest] Add basic tests for SFP class#1830jleveque merged 4 commits intosonic-net:masterfrom jleveque:add_sfp_tests
jleveque merged 4 commits intosonic-net:masterfrom
jleveque:add_sfp_tests
Conversation
Contributor
Author
|
Retest vsimage please |
yxieca
reviewed
Jun 30, 2020
yxieca
reviewed
Jun 30, 2020
yxieca
approved these changes
Jun 30, 2020
jleveque
added a commit
that referenced
this pull request
Jul 1, 2020
Add test methods to test the Chassis class methods which are inherited from the DeviceBase class: ``` test_get_name test_get_presence test_get_model test_get_serial test_get_status ``` Also add the new 'module_ignore_errors=True' to a `wait_for()` call in conftest.py that needs it. Depends on `PlatformApiTestBase`, which is implemented in #1830
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
sairedis: *[recorder] Fix incorrect attribute enum value capability query (sonic-net#843) d86b051 *[syncd] Fix fdb flood queue size limit check (sonic-net#863) 3a2af76 *[vslib] implement query for SAI_DEBUG_COUNTER_TYPE enum values (sonic-net#842) 575dcb4 swss: *[portsorch] fix errors when moving port from one lag to anoth… a67d8af *[debugcounterorch] check if counter type is supported before querying… ( 04105a4 *Td2: Reclaim buffer from unused ports (sonic-net#1830) ac7f5cf *[Dynamic Buffer Calc][202012]Bug fix: Don't create lossless buffer pr… f54b7d0 Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
0dcb2b6 Open record file in append mode (sonic-net#1845) 03ce2ee [vnet/vxlan] Add support of multiple mappers for the VxLAN tunnel (sonic-net#1843) c5e90ab VOQ: Nexthop for remote VOQ LC should be created on inband OIF. (sonic-net#1823) 834c5c8 Td2: Reclaim buffer from unused ports (sonic-net#1830) a5ad55c [Dynamic Buffer Calc] Bug fix: Don't create lossless buffer profile for active ports without speed configured (sonic-net#1822) f50368f [cfgmgr] Update Makefile.am to consume lib zmq (sonic-net#1865)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a basic test suite for the SFP class of the new platform API, utilizing the platform API HTTP server, including the following functions:
Also introduce a new
PlatformApiTestBasebase class withexpect()andassert_expectations()methods to allow for accumulating errors before asserting.Example test results summary (showing legitimate test failures):