-
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
fix(anta.tests): Cleaning up Services tests module (VerifyErrdisableRecovery) #955
fix(anta.tests): Cleaning up Services tests module (VerifyErrdisableRecovery) #955
Conversation
CodSpeed Performance ReportMerging #955 will not alter performanceComparing Summary
|
anta/tests/services.py
Outdated
continue | ||
|
||
if not all([error_reason.status == (act_status := reason_output["status"]), error_reason.interval == (act_interval := int(reason_output["interval"]))]): | ||
self.result.is_failure(f"{error_reason} - Incorrect reason details - Status: {act_status} Interval: {act_interval}") |
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.
self.result.is_failure(f"{error_reason} - Incorrect reason details - Status: {act_status} Interval: {act_interval}") | |
self.result.is_failure(f"{error_reason} - Incorrect configuration - Status: {act_status} Interval: {act_interval}") |
Quality Gate passedIssues Measures |
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 if CI passes.
…ecovery) (aristanetworks#955) * Refactored VerifyErrdisableRecovery test for input models * addressed review comments: updated the input model, docstring * Addressed review comments: updated input models, unit tests for input model * improved the test coverage * removed field validator as 'Field' constraints the input * updated input models and deprecation warning * updated unit test cases * Minor fixes --------- Co-authored-by: Carl Baillargeon <carl.baillargeon@arista.com>
Description
Refactoring Services tests module to address the following issues:
Checklist:
pre-commit run
)tox -e testenv
)