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.tests): Added the testcase to verify hostname, location and contact #523

Merged
merged 6 commits into from
Feb 7, 2024

Conversation

MaheshGSLAB
Copy link
Collaborator

@MaheshGSLAB MaheshGSLAB commented Jan 15, 2024

Description

Added the testcase to verify hostname, location and contact details.

Fixes #521

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)

@MaheshGSLAB MaheshGSLAB self-assigned this Jan 15, 2024
@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review January 15, 2024 11:57

name = "VerifySnmpLocation"
description = "Verifies the SNMP location of a device."
categories = ["security"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

going to change the categories in next commit. missed to update. Same for VerifySnmpContact

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please. There is an snmp category :)

Suggested change
categories = ["security"]
categories = ["snmp"]

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 after changing the categories of the tests.

anta/tests/security.py Outdated Show resolved Hide resolved

name = "VerifySnmpLocation"
description = "Verifies the SNMP location of a device."
categories = ["security"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please. There is an snmp category :)

Suggested change
categories = ["security"]
categories = ["snmp"]

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.

@titom73 titom73 self-requested a review February 7, 2024 14:48
@titom73 titom73 merged commit 6e26ba4 into aristanetworks:main Feb 7, 2024
19 checks passed
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 the system information(name, location, contact)
3 participants