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

feat(anta): Added the test case to verify SNMP Logging Configuration #849

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

vitthalmagadum
Copy link
Collaborator

@vitthalmagadum vitthalmagadum commented Oct 3, 2024

Description

This test performs the following checks for each specified host:

 1. Verifies that the SNMP logging is enabled on the device.
 2. Verifies SNMP host matches the expected value.
 3. Ensures that VRF provided matches the expected value.

Expected Results
----------------
* Success: The test will pass if all of the following conditions are met:
    - The SNMP logging is enabled on the device.
    - The SNMP host matches the expected value.
    - The VRF provided matches the expected value.
* Failure: The test will fail if any of the following conditions is met:
    - The SNMP logging is disabled on the device.
    - The SNMP host do not matches the expected value.
    - The VRF provided do not matches the expected value.

Fixes #821

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)

Copy link

codspeed-hq bot commented Oct 3, 2024

CodSpeed Performance Report

Merging #849 will not alter performance

Comparing vitthalmagadum:issue_821 (9eac14a) with main (c91193e)

Summary

✅ 22 untouched benchmarks

anta/tests/snmp.py Outdated Show resolved Hide resolved
anta/tests/snmp.py Outdated Show resolved Hide resolved
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

Copy link

Copy link
Contributor

github-actions bot commented Dec 2, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Conflicts have been resolved. A maintainer will review the pull request shortly.

@vitthalmagadum vitthalmagadum marked this pull request as ready for review January 13, 2025 07:31
anta/input_models/snmp.py Outdated Show resolved Hide resolved
anta/input_models/snmp.py Outdated Show resolved Hide resolved
anta/input_models/snmp.py Outdated Show resolved Hide resolved
anta/tests/snmp.py Outdated Show resolved Hide resolved
anta/tests/snmp.py Outdated Show resolved Hide resolved
anta/tests/snmp.py Outdated Show resolved Hide resolved
anta/tests/snmp.py Outdated Show resolved Hide resolved
anta/tests/snmp.py Outdated Show resolved Hide resolved
anta/tests/snmp.py Outdated Show resolved Hide resolved
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

Copy link
Contributor

@carl-baillargeon carl-baillargeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if CI passes.

@gmuloc gmuloc merged commit 509c3cf into aristanetworks:main Jan 14, 2025
25 checks passed
geetanjalimanegslab added a commit to geetanjalimanegslab/anta that referenced this pull request Jan 15, 2025
…ristanetworks#849)

* issue_821 Added TC for SNMP logging

* Issue_821: Refactored testcase with latest changes of input modules and updated TC, docstrings

* Issue_821: Updated docstrings and test class, variable names

* Minor updates

---------

Co-authored-by: VitthalMagadum <[email protected]>
Co-authored-by: Geetanjali.mane <[email protected]>
Co-authored-by: Carl Baillargeon <[email protected]>
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.

Add the test case to verify SNMP Logging Configuration.
5 participants