-
Notifications
You must be signed in to change notification settings - Fork 492
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
Add testcase to check for related_integrations based on index #4096
base: main
Are you sure you want to change the base?
Conversation
Enhancement - GuidelinesThese guidelines serve as a reminder set of considerations when addressing adding a feature to the code. Documentation and Context
Code Standards and Practices
Testing
Additional Checks
|
Discussion Point from @Mikaayenson
|
tests/test_all_rules.py
Outdated
index_map = [key for key, value in | ||
definitions.INTEGRATION_TO_INDEX_MAP.items() if re.search(value, index)] |
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.
The challenge here is that we are checking against TRADE definitions and will need to manage these overtime, plus they are subjective to what we define them as versus actually comparing with the datastreams available in each package per version. I'd investigate if we can pull expected datastream patterns from packages and store along our manifests or schemas, then check against these.
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.
Based on definitions.INTEGRATION_TO_INDEX_MAP
, it seems like the key is already in the value, where the key represents what we already have defined in each rule. So can do dynamically define the value to check against by concatenating f"logs-{rule.contents.meta.integration}"
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.
Not exactly this way, because this would again give us a partial data what the authors would have updated. Keeping in the idea of dynamic mapping and datastream patterns, we have a new way to generate this mapping!
Testing is also updated.
Pull Request
Issue link(s): #4046
Summary - What I changed
How To Test
Failing Rules
Dynamic Integration Mapping
Failure Check
Checklist
bug
,enhancement
,schema
,Rule: New
,Rule: Deprecation
,Rule: Tuning
,Hunt: New
, orHunt: Tuning
so guidelines can be generatedmeta:rapid-merge
label if planning to merge within 24 hoursContributor checklist