chore(cli): remove dead decnet correlate command
The CLI was a day-one debug helper that read a log file or stdin and printed a traversal table. It hadn't been wired to the live data path since the engine moved into the profiler worker (DEBT.md:218). No deploy unit, no caller, no doc relied on it. Removed the command and its two tests; `decnet/correlation/` stays as a library consumed by the profiler and the reuse correlator.
This commit is contained in:
@@ -324,26 +324,6 @@ class TestWebCommand:
|
||||
assert "Serving DECNET Web Dashboard" in result.stdout
|
||||
|
||||
|
||||
# ── correlate command ─────────────────────────────────────────────────────────
|
||||
|
||||
class TestCorrelateCommand:
|
||||
def test_correlate_no_input(self):
|
||||
with patch("sys.stdin.isatty", return_value=True):
|
||||
result = runner.invoke(app, ["correlate"])
|
||||
if result.exit_code != 0:
|
||||
assert result.exit_code == 1
|
||||
assert "Provide --log-file" in result.stdout
|
||||
|
||||
def test_correlate_with_file(self, tmp_path):
|
||||
log_file = tmp_path / "test.log"
|
||||
log_file.write_text(
|
||||
"<134>1 2024-01-15T12:00:00+00:00 decky-01 ssh - auth "
|
||||
'[relay@55555 src_ip="10.0.0.5" username="admin"] login\n'
|
||||
)
|
||||
result = runner.invoke(app, ["correlate", "--log-file", str(log_file)])
|
||||
assert result.exit_code == 0
|
||||
|
||||
|
||||
# ── api command ───────────────────────────────────────────────────────────────
|
||||
|
||||
class TestApiCommand:
|
||||
|
||||
Reference in New Issue
Block a user