-
Notifications
You must be signed in to change notification settings - Fork 31
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
refactor(anta.tests): Nicer result failure messages interface(part-2) test module #1046
base: main
Are you sure you want to change the base?
refactor(anta.tests): Nicer result failure messages interface(part-2) test module #1046
Conversation
CodSpeed Performance ReportMerging #1046 will not alter performanceComparing Summary
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@@ -1306,7 +1306,7 @@ | |||
}, | |||
], | |||
"inputs": None, | |||
"expected": {"result": "failure", "messages": ["The following port-channels have inactive port(s): ['Port-Channel42']"]}, | |||
"expected": {"result": "failure", "messages": ["Port-Channel: Port-Channel42 - Inactive port(s) - Ethernet8"]}, |
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.
"expected": {"result": "failure", "messages": ["Port-Channel: Port-Channel42 - Inactive port(s) - Ethernet8"]}, | |
"expected": {"result": "failure", "messages": ["Port-Channel42 - Inactive port(s) - Ethernet8"]}, |
@@ -1362,7 +1362,7 @@ | |||
"inputs": None, | |||
"expected": { | |||
"result": "failure", | |||
"messages": ["The following port-channels have received illegal LACP packets on the following ports: [{'Port-Channel42': 'Ethernet8'}]"], | |||
"messages": ["Port-Channel: Port-Channel42 Interface: Ethernet8 - Illegal LACP packets found"], |
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.
Same as above.
"expected": { | ||
"result": "failure", | ||
"messages": [ | ||
"Interface: Loopback666 LineProtocolStatus: up interfaceStatus: Connected - Not up - Actual: LineProtocolStatus: down InterfaceStatus: notconnect" |
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.
This is confusing.
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.
Hi, @carl-baillargeon,
I have updated the above single failure message with two separated messages,
- incorrect Lineprotocolstatus
- incorrect Interface status
Could you kindly review this and share your thoughts?
"expected": { | ||
"result": "failure", | ||
"messages": [ | ||
"SVI: Vlan42 LineProtocolStatus: up interfaceStatus: Connected - Not up - Actual: LineProtocolStatus: lowerLayerDown InterfaceStatus: notconnect" |
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.
Same thing here. It's confusing. We should simplify this somehow.
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. please share your thoughts on the same, Thanks!
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
Nicer result failure messages Interface test module following testcases are covers.
Fixes #587
Checklist:
pre-commit run
)tox -e testenv
)