-
Notifications
You must be signed in to change notification settings - Fork 30
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 user #877
feat(anta): Added the test case to verify SNMP user #877
Conversation
CodSpeed Performance ReportMerging #877 will not alter performanceComparing Summary
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
8dd61b3
to
1119961
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Quality Gate passedIssues Measures |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
anta/input_models/snmp.py
Outdated
base_string = f"User: {self.username}" | ||
if self.group_name: | ||
base_string += f" Group: {self.group_name}" | ||
if self.version: | ||
base_string += f" Version: {self.version}" | ||
return base_string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that group_name
and version
are required fields, you can update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. Thanks!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Quality Gate passedIssues Measures |
* Added TC for SNMP user * Updated input model refactoring changes * updated documentation apis * added unit tests for the input models * addressed review comments: updated docstrings, input model * updated field validator * Addressed review comments: updated input model docstrings * Remove unnecessary TypeVar --------- Co-authored-by: VitthalMagadum <yvitthal.magadum-ext@arista.com> Co-authored-by: Carl Baillargeon <carl.baillargeon@arista.com>
Description
Verifies the SNMP user configurations for specified version(s).
Fixes #852
Checklist:
pre-commit run
)tox -e testenv
)