-
Notifications
You must be signed in to change notification settings - Fork 41
Welkin large db v31 #266
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
Welkin large db v31 #266
Conversation
* Clean up get_vpc_nodes() and its pytest * Split the main script execution code into each func and add pytest * Retire json_log and adopt json per rule for both PUV and regular use + linting
…on (#259) * feat: Support QA version and AciVersion instance as input in AciVersion * fix: Use supported version format in older_than * fix: Use ValueError in AciVersion
* -c (cversion) and -d (debug_function) for dev testing * pytest fix WIP * fixed pytest
A new decorator `@check_wrapper` is to move most of the I/O functionalities, such as printing and writing the result into a file, outside of each check function so that each check can focus on the validation logic itself by minimizing the impact from a requirement change in the output format and so on. To support this, a new class `Result` is also introduced to make it clear what a check function is expected to return. As long as `Result` class is returned, the decorator `@check_wrapper` handles the printing them to stdout and files.
monrog2
left a comment
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.
Review changes / questions. Use the new pytest cmd_outputs fixture for subprocess check uniformity, let me know if you have questions/suggestions on it.
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.
update pytest dir + filename to match function name update
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.
done.
Applied the same naming change to test. Changes to be committed: modified: aci-preupgrade-validation-script.py modified: docs/docs/validations.md renamed: tests/large_apic_database_check/infraWiNode.json -> tests/apic_database_size_check/infraWiNode.json renamed: tests/large_apic_database_check/test_large_apic_database_check.py -> tests/apic_database_size_check/test_large_apic_database_check.py Changes not staged for commit: modified: aci-preupgrade-validation-script.py modified: tests/apic_database_size_check/test_large_apic_database_check.py
monrog2
left a comment
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.
pytests good, intergration tests good. merging
monrog2
left a comment
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.
good for real this time
|
latest pytest output: |
No description provided.