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

Remove autorulecorpustester #665

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

djkhl marked this conversation as resolved.
Show resolved Hide resolved
### Bugfix

## 13.1.2
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
Loading