-
Notifications
You must be signed in to change notification settings - Fork 185
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: split spec_cleaner to multiple sub-modules #4324
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4324 +/- ##
==========================================
+ Coverage 76.99% 77.07% +0.08%
==========================================
Files 735 742 +7
Lines 41311 41361 +50
Branches 8773 8774 +1
==========================================
+ Hits 31809 31881 +72
+ Misses 8438 8429 -9
+ Partials 1064 1051 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
85bdcc5
to
6476011
Compare
6476011
to
eee70eb
Compare
This is a preparation for the support of IPv6 and MAC address obfuscation. By splitting it to multiple sub-modules, it will be easy for adding new modules, e.g. IPv6 and MAC obfuscation. Jira: RHINENG-15077 - replace the `get_obfuscate_functions` with a new keyword argument `width`, for specs that need to keep the original words width, this `width` needs to be set by hand before content cleaning. In the future, it will be moved to the RegistryPoint for user to set by hand per specs. - the processing of "password" and "keyword" is kind of "obfuscation" which replace the potential `password value` and specified `keywords` to kind of fixed strings/words, so moved it to the obfuscation module. User can exclude it by specifying it with, e.g. "no_obfuscate=['password']" while adding its RegistryPoint in `insights.specs.Specs`. Jira: RHINENG-14756 Signed-off-by: Xiangce Liu <[email protected]>
eee70eb
to
135fd52
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.
Look good to me logically. Consider the importance of this spec_cleaner refactor, we may lean on the QE testing more for this case.
This is a preparation for IPv6 and MAC address obfuscation. By splitting it to multiple sub-modules, it will be easy for adding new modules, e.g. IPv6 and MAC obfuscation. Jira: RHINENG-15077
get_obfuscate_functions
with a new keyword argumentwidth
, for specs that need to keep the original words width, thiswidth
needs to be set by hand before content cleaning. In the future, it will be moved to the RegistryPoint for user to set by hand per specs.password value
and specifiedkeywords
to kind of fixed strings/words, so moved it to the obfuscation module. User can exclude it by specifying it with, e.g. "no_obfuscate=['password']" while adding its RegistryPoint ininsights.specs.Specs
. Jira: RHINENG-14756All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Add your description here