Skip to content

[Platform API][pytest] Add basic tests for Chassis class#1759

Merged
yxieca merged 3 commits intosonic-net:masterfrom
jleveque:add_chassis_tests
Jun 19, 2020
Merged

[Platform API][pytest] Add basic tests for Chassis class#1759
yxieca merged 3 commits intosonic-net:masterfrom
jleveque:add_chassis_tests

Conversation

@jleveque
Copy link
Contributor

@jleveque jleveque commented Jun 11, 2020

Add a basic test suite for the Chassis class of the new platform API, utilizing the platform API HTTP server, including the following functions:

test_get_base_mac
test_get_serial_number
test_get_system_eeprom_info
test_components
test_modules
test_fans
test_fan_drawers
test_psus
test_thermals
test_sfps
test_get_thermal_manager
test_get_watchdog
test_get_eeprom

Example test results summary:

=================================== test session starts ===================================
platform linux2 -- Python 2.7.12, pytest-4.6.5, py-1.8.1, pluggy-0.13.1
ansible: 2.8.7
rootdir: /var/src/Networking-acs-sonic-mgmt/tests, inifile: pytest.ini
plugins: forked-1.1.3, xdist-1.28.0, ansible-2.2.2, repeat-0.8.0
collected 14 items
platform_tests/api/test_chassis.py ..............                                    [100%]
=============================== 14 passed in 270.70 seconds ===============================

@yxieca
Copy link
Collaborator

yxieca commented Jun 14, 2020

Can you upload a test result summary?

@jleveque jleveque requested a review from yxieca June 17, 2020 22:37
@yxieca yxieca merged commit dcc4881 into sonic-net:master Jun 19, 2020
@jleveque jleveque deleted the add_chassis_tests branch June 19, 2020 14:37
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
sonic-utilities:
* 8b98d45 2021-05-25 | [show] support for show muxcable firmware version of only active banks (sonic-net#1629) (HEAD -> 202012) [vdahiya12]
* afd0975 2021-05-20 | [show] add support for muxcable metrics (sonic-net#1615) [vdahiya12]

sonic-swss
* 7611df5 2021-05-27 | [tunneldecaporch] Set default MTU for the overlay loopback interface (sonic-net#1756) (HEAD -> 202012) [Volodymyr Samotiy]
* 22fbb5c 2021-05-27 | [202012] Resolve neighbor when nexthop does not exist (sonic-net#1759) (github/202012) [Shi Su]
* ec7710c 2021-05-27 | [Bulk mode] Limit the size of bulker (sonic-net#1760) [Shi Su]

Signed-off-by: Ying Xie <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…tically (#25404)

#### Why I did it
src/sonic-sairedis
```
* d5e03ff7 - (HEAD -> 202505, origin/202505) [202511][ci] use correct slave container for each branch (sonic-net#1759) (21 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants