-
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
fix(anta.tests): First round of cleaning up BGP tests module #888
fix(anta.tests): First round of cleaning up BGP tests module #888
Conversation
CodSpeed Performance ReportMerging #888 will not alter performanceComparing Summary
|
d898a60
to
887c6a1
Compare
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 PR seems quite breaking for the tests as we are suddenly checking more things.
to get a success like Count is now dpeendent on the state of the peer when it did not used to be.
Ideally we could add a flag for this one to not be concerned with the the state (default being we are not) to be backward compatible
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
707d01a
to
44581a0
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
1e15c52
to
c9f240d
Compare
53a3ecf
to
6a4541f
Compare
0692ecb
to
4412d8a
Compare
|
Description
Refactoring BGP tests module to address the following issues:
VerifyBGPPeerCount
orVerifyBGPPeersHealth
test to also checks for a minimum established time for BGP session #635Focusing on VerifyBGPPeerCount, VerifyBGPPeersHealth, VerifyBGPSpecificPeers
Task list:
check_tcp_queues
is Truecheck_bgp_neighbor_capability
(IMP: Added unit tests intest_tools
.)format_data
Changes
or
evaluates lazily, meaning if the first part (InQ := value) != 0 is True, the second part (OutQ := value) != 0 will not be evaluated, results OutQ is never assigned, leading to a NameError._check_bgp_neighbor_capability
to bgp module as intended to BGP module only.