Skip to content
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

JinjaExpert - modify message fields using jinja2 #2040

Merged
1 commit merged into from
Aug 24, 2021
Merged

Conversation

ghost
Copy link

@ghost ghost commented Aug 16, 2021

This commit adds a simple jinja expert bot, that lets you modify message
data using jinja2 templates.
It add the relevant documentation to the bots file and also a couple of
unit tests.

@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2021

Codecov Report

Merging #2040 (88f1084) into develop (c843349) will decrease coverage by 0.13%.
The diff coverage is 37.50%.

@@             Coverage Diff             @@
##           develop    #2040      +/-   ##
===========================================
- Coverage    76.07%   75.94%   -0.14%     
===========================================
  Files          425      429       +4     
  Lines        22824    23038     +214     
  Branches      3023     3067      +44     
===========================================
+ Hits         17364    17496     +132     
- Misses        4754     4835      +81     
- Partials       706      707       +1     
Impacted Files Coverage Δ
intelmq/bots/experts/jinja/expert.py 37.50% <37.50%> (ø)
intelmq/bots/experts/tor_nodes/expert.py 46.42% <0.00%> (-2.33%) ⬇️
intelmq/bots/experts/asn_lookup/expert.py 35.83% <0.00%> (-1.89%) ⬇️
...telmq/bots/experts/recordedfuture_iprisk/expert.py 41.93% <0.00%> (-1.89%) ⬇️
intelmq/bots/experts/domain_suffix/expert.py 43.18% <0.00%> (-1.53%) ⬇️
intelmq/bots/experts/maxmind_geoip/expert.py 20.80% <0.00%> (-0.69%) ⬇️
intelmq/lib/harmonization.py 87.21% <0.00%> (-0.31%) ⬇️
...q/tests/bots/outputs/sql/test_output_postgresql.py 86.95% <0.00%> (-0.19%) ⬇️
intelmq/tests/lib/test_upgrades.py 100.00% <0.00%> (ø)
intelmq/tests/bots/outputs/smtp/test_output.py 100.00% <0.00%> (ø)
... and 14 more

@ghost ghost marked this pull request as ready for review August 16, 2021 07:05
@ghost ghost added feature request Indicates new feature requests component: bots labels Aug 16, 2021
@ghost ghost added this to the 3.1.0 milestone Aug 20, 2021
@ghost ghost self-requested a review August 20, 2021 14:28
docs/user/bots.rst Outdated Show resolved Hide resolved
intelmq/bots/experts/jinja/expert.py Outdated Show resolved Hide resolved
intelmq/bots/experts/jinja/expert.py Show resolved Hide resolved
intelmq/bots/experts/jinja/expert.py Outdated Show resolved Hide resolved
intelmq/bots/experts/jinja/expert.py Outdated Show resolved Hide resolved
intelmq/bots/experts/jinja/expert.py Outdated Show resolved Hide resolved
@ghost ghost force-pushed the schacht/jinja-expert branch 2 times, most recently from 22268f8 to 88f1084 Compare August 23, 2021 07:05
This commit adds a simple jinja expert bot, that lets you modify message
data using jinja2 templates.
It add the relevant documentation to the bots file and also a couple of
unit tests.
@ghost ghost force-pushed the schacht/jinja-expert branch from 88f1084 to 91aa829 Compare August 23, 2021 07:36
@ghost ghost merged commit a662c84 into develop Aug 24, 2021
@ghost ghost deleted the schacht/jinja-expert branch September 2, 2021 08:33
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: bots feature request Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant