Skip to content

[Platform API][pytest] basic tests for FAN class#1987

Merged
yxieca merged 5 commits intosonic-net:masterfrom
vdahiya12:adding_tests_for_fan_platform_api
Jul 30, 2020
Merged

[Platform API][pytest] basic tests for FAN class#1987
yxieca merged 5 commits intosonic-net:masterfrom
vdahiya12:adding_tests_for_fan_platform_api

Conversation

@vdahiya12
Copy link
Contributor

@vdahiya12 vdahiya12 commented Jul 28, 2020

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

test_get_name
test_get_presence
test_get_model
test_get_serial
test_get_status
test_get_speed
test_get_direction
test_get_fans_speed_target
test_get_fans_speed_tolerance
test_set_fans_speed
test_set_fans_led


Signed-off-by: vaibhav-dahiya <[email protected]>

Add a basic test suite for the FAN class of the new platform API, utilizing the platform API HTTP server, including the following functions:
```
test_get_name
test_get_presence
test_get_model
test_get_serial
test_get_status
test_get_speed
test_get_direction
test_get_fans_speed_target
test_get_fans_speed_tolerance
test_set_fans_speed
test_set_fans_led
'''

Signed-off-by: vaibhav-dahiya <[email protected]>
@lgtm-com
Copy link

lgtm-com bot commented Jul 28, 2020

This pull request introduces 1 alert when merging d6a50d3 into 4e751f7 - view on LGTM.com

new alerts:

  • 1 for Variable defined multiple times

formatting the files

Signed-off-by: vaibhav-dahiya <[email protected]>
Formatting the files

Signed-off-by: vaibhav-dahiya <[email protected]>
formatting some more files

Signed-off-by: vaibhav-dahiya <[email protected]>
formatting

Signed-off-by: vaibhav-dahiya <[email protected]>
@yxieca yxieca merged commit 0102ad2 into sonic-net:master Jul 30, 2020
@vdahiya12 vdahiya12 deleted the adding_tests_for_fan_platform_api branch August 3, 2020 20:40
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
includes:

320591a [DualToR] Handle race condition between tunnel_decap and mux orchestrator (sonic-net#2114)
5027a8f Handling Invalid CRM configuration gracefully (sonic-net#2109)
0b120fa [ci]: use native arm64 and armhf pool (sonic-net#2013)
394e88a Don't handle buffer pool watermark during warm reboot reconciling (sonic-net#1987)
9008a01 patch for issue sonic-net#1971 - enable Rx Drop handling for cisco-8000 (sonic-net#2041)
2723ee3 create debug_shell_enable config to enable debug shell (sonic-net#2060)
d7be0b9 [request parser] Add unit tests for request parser for multiple values (sonic-net#1766)
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
    [8522f4f] Don't handle buffer pool watermark during warm reboot reconciling (sonic-net#1987)
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
4236bc4 [config reload] Fixing config reload when timer based delayed services are disabled (sonic-net#1967)
d2514e4 [GCU] Different apply-patch runs should produce same sorted steps (sonic-net#1988)
2878adb [GCU] Using simulated config instead of target config when validating replace operation in NoDependencyMoveValidator (sonic-net#1987)
fb8ca98 [GCU] Loading yang-models only once (sonic-net#1981)
f88ee92 [GCU] Copying config_db before callding sonic_yang.loadData (sonic-net#1983)
9ed0e91 [GCU] Implementing DryRun by printing patch-sorter steps/imitating config_db (sonic-net#1973)
b36b5e3 [GCU] Moving PatchSorter unit-test to json file to make it easier to read/maintain (sonic-net#1977)
c0fa28b [generic-config-updater] Improving CreateOnly validator and marking /LOOPBACK_INTERFACE/LOOPBACK#/vrf_name as create-only (sonic-net#1969)
0559d04 [generic-config-updater] Adding non-strict mode (sonic-net#1929)
b07f477 [debug dump util] FDB debug dump util changes (sonic-net#1968)
6d8757a [warm/fast-reboot] Fix kexec portion to support platforms based on Device Tree (sonic-net#1966)
cc1409e [Auto Techsupport] Event driven Techsupport Bug Fixes (sonic-net#1986)
6c48bd5 Fix wrong help message for cable length setting (sonic-net#1978)
c0bbbe3 [breakout] Fix the check  when port is not present in BREAKOUT_CFG table (sonic-net#1765)
5bb8cad [doc][DPB] Update DPB related interface breakout command Info (sonic-net#1438)
e6fd990 [config] Fix 'config reload -l' command to get filename by default (sonic-net#1611)
bd8f7bb Update swss_ready check to check per namespace swss service (sonic-net#1974)
5439f94 [soft-reboot] Add support for platforms based on Device Tree (sonic-net#1963)
7c5810a [config] Add portchannel support  for static route  (sonic-net#1857)
7cb6a1b preserve old order for config reload (sonic-net#1964)
20bddbd [Auto-Techsupport] Issues related to Multiple Cores crashing handled (sonic-net#1948)
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