Skip to content

Commit

Permalink
fix preprocessing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Oct 23, 2023
1 parent 5ed3677 commit f2479a4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tests/acceptance/test_preprocessing.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# pylint: disable=missing-docstring
# pylint: disable=no-self-use
from logging import getLogger, DEBUG, basicConfig
from logging import DEBUG, basicConfig, getLogger

import pytest

from logprep.util.json_handling import dump_config_as_file
from tests.acceptance.util import (
get_default_logprep_config,
get_test_output,
)
from tests.acceptance.util import get_default_logprep_config, get_test_output

basicConfig(level=DEBUG, format="%(asctime)-15s %(name)-5s %(levelname)-8s: %(message)s")
logger = getLogger("Logprep-Test")
Expand All @@ -18,11 +15,10 @@
def get_config():
pipeline = [
{
"normalizername": {
"type": "normalizer",
"specific_rules": ["tests/testdata/acceptance/normalizer/rules_static/specific"],
"generic_rules": ["tests/testdata/acceptance/normalizer/rules_static/generic"],
"regex_mapping": "tests/testdata/acceptance/normalizer/rules_static/regex_mapping.yml",
"dissector": {
"type": "dissector",
"specific_rules": ["tests/testdata/acceptance/dissector/rules/specific"],
"generic_rules": ["tests/testdata/acceptance/dissector/rules/generic"],
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"filter": "message",
"dissector": {},
"description": "do nothing rule for dissector"
},
{
"filter": "message",
"dissector": {
"mapping": {
"message": "%{source} %{target}"
}
},
"description": "do nothing rule for dissector"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"filter": "message",
"dissector": {},
"description": "do nothing rule for dissector"
},
{
"filter": "message",
"dissector": {
"mapping": {
"message": "%{source} %{target}"
}
},
"description": "do nothing rule for dissector"
}
]

0 comments on commit f2479a4

Please sign in to comment.