Skip to content

Commit

Permalink
Remove autorulecorpustester (#665)
Browse files Browse the repository at this point in the history
* Remove autorulecorpustester
  • Loading branch information
ekneg54 authored Sep 10, 2024
1 parent feb5ca0 commit c59242d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 969 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

## next release
### Breaking

* remove AutoRuleCorpusTester

### Features
### Improvements

* remove AutoRuleCorpusTester

### Bugfix

* ensure `logprep.abc.Component.Config` is immutable and can be applied multiple times
Expand Down
1 change: 0 additions & 1 deletion doc/source/user_manual/testing_rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Testing Rules

.. automodule:: logprep.util.rule_dry_runner
.. automodule:: logprep.util.auto_rule_tester.auto_rule_tester
.. automodule:: logprep.util.auto_rule_tester.auto_rule_corpus_tester


Custom Tests
Expand Down
18 changes: 0 additions & 18 deletions logprep/run_logprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from logprep.generator.http.controller import Controller
from logprep.generator.kafka.run_load_tester import LoadTester
from logprep.runner import Runner
from logprep.util.auto_rule_tester.auto_rule_corpus_tester import RuleCorpusTester
from logprep.util.auto_rule_tester.auto_rule_tester import AutoRuleTester
from logprep.util.configuration import Configuration, InvalidConfigurationError
from logprep.util.defaults import DEFAULT_LOG_CONFIG, EXITCODES
Expand Down Expand Up @@ -160,23 +159,6 @@ def test_rules(configs: tuple[str]) -> None:
tester.run()


@test.command(
short_help="Run the rule corpus tester against a given configuration", name="integration"
)
@click.argument("configs", nargs=-1, required=False)
@click.argument("testdata")
def test_ruleset(configs: tuple[str], testdata: str):
"""Test the given ruleset against specified test data
\b
CONFIG is a path to configuration file (filepath or URL).
TESTDATA is a path to a set of test files.
"""
_ = _get_configuration(configs)
tester = RuleCorpusTester(configs, testdata)
tester.run()


@cli.group(short_help="Generate load for a running logprep instance")
def generate():
"""
Expand Down
Loading

0 comments on commit c59242d

Please sign in to comment.