-
Notifications
You must be signed in to change notification settings - Fork 147
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 more cortex queries #371
Add more cortex queries #371
Conversation
43b02cc
to
fb1a0e3
Compare
fb1a0e3
to
15a52a5
Compare
I'll take a closer look but on the high level it seems fine! |
Thanks for the review, I applied the changes that you suggested. I added cortex types for the objects returned by the API and added the range parameter to the list_analyzers function. I did not find any other missing parameter. I used python 3.9+ typing ( To better match the documentation, "responder action" and "analyzer job" could be renamed "cortex action" and "cortex job", but I think the first ones are easier to understand. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #371 +/- ##
==========================================
- Coverage 93.08% 92.94% -0.15%
==========================================
Files 27 27
Lines 738 751 +13
==========================================
+ Hits 687 698 +11
- Misses 51 53 +2 ☔ View full report in Codecov by Sentry. |
Nice, great job so far!
Unfortunately we still support 3.8, so can you please fall back to
I agree with the naming convention, more to the point than cortex action and job! My last point to this PR would be the missing integration tests. Unfortunately we don't have a Cortex instance configured yet, so we cannot test all the endpoints, but probably we can add some dummy test for the |
I implemented the changes you suggested. |
First of all thank you very much for the changes, great job just as before!!! To reply to your dummy test concern, unfortunately this is the best we can do at the moment as we don't yet have a live Cortex instance behind the integrator instance of TheHive, so we will always get back empty responder and analyzer lists, but that's okay for now. TheHive cannot create/define analyzers nor responders. Additionally I added some simplification ideas to your tests, if you implement those I think we are done with this PR. |
Thank you for your coop, nice one! |
No description provided.