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

[snmp] Added snmp memory test case #3027

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

AndriiLozovyi
Copy link
Contributor

Signed-off-by: Andrii-Yosafat Lozovyi [email protected]

Description of PR

Summary: This PR implements a new test case test_snmp_memory according to the following test plan.
Test should verify that SNMP memory MIB objects are functioning properly.
Fixes # (issue)

Testplan:

  • Retrieve facts for a device using SNMP
  • Get expected values for a device from system
  • Compare that facts received by SNMP are equal to values received from system
  • Run script that should slightly load RAM memory
  • Retrieve facts for a device using SNMP, verify that SNMP value differs from system data less that 4%

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

What is the motivation for this PR?

This PR is to add a new test case for snmp.

How did you do it?

How did you verify/test it?

Run test on t0 and t1 topo.
snmp/test_snmp_memory.py::test_snmp_memory PASSED
snmp/test_snmp_memory.py::test_snmp_memory_load PASSED

Any platform specific information?

SONiC.master.126-dirty-20210217.092943
Distribution: Debian 10.8
Kernel: 4.19.0-12-2-amd64
Build commit: 6998aef1
Build date: Wed Feb 17 09:42:41 UTC 2021
Platform: x86_64-arista_7170_64c
HwSKU: Arista-7170-64C

Supported testbed topology if it's a new test case?

Any

Documentation

Signed-off-by: Andrii-Yosafat Lozovyi <[email protected]>
@AndriiLozovyi AndriiLozovyi requested review from wangxin, yxieca and a team as code owners February 23, 2021 14:35
@yxieca
Copy link
Collaborator

yxieca commented Feb 26, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca yxieca merged commit bc32586 into sonic-net:master Feb 26, 2021
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.

2 participants