-
Notifications
You must be signed in to change notification settings - Fork 29
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
Enhancement: Input subclasses refactoring #388
Milestone
Comments
6 tasks
8 tasks
8 tasks
6 tasks
carl-baillargeon
changed the title
enhancement: Input subclasses refactoring
Enhancement: Input subclasses refactoring
Nov 4, 2024
This was referenced Nov 5, 2024
This was referenced Nov 6, 2024
6 tasks
This was referenced Nov 25, 2024
This was referenced Dec 4, 2024
Open
6 tasks
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tests Input subclasses should be moved outside of test classes, in other modules to allow reusability across tests and easier imports by external framework leveraging ANTA (AVD).
Solution:
Models are being moved to
anta.input_models.<module>
. Each test will keep a class variable as a reference of these models to avoid breaking changes. The references will be removed in ANTA v2.0.Example:
model_config = ConfigDict(extra="forbid")
should be added to these models to fix Extra attributes should be forbidden in nested Input models #809.__str__
should also be added to the models and be leveraged to improve failure messages, to fix Have nicer result failure messages #587.Checklist (in priority):
High priority (AVD tests or high reusability):
The following 3 BGP tests should use the same model to replace <VerifyBGP...>.Input.BgpAfi:
These BGP tests should use the same
BgpPeer
model:The BFD tests should use the same
BFDPeer
model:Low priority (low reusability):
The text was updated successfully, but these errors were encountered: