test(db): repository + migration tests (T001); document analyze in README
tests/test_repositories.py covers schema migrations (idempotent), scan lifecycle, request insert/query/cross-source, grow-only blocklist ledger, unblock, whitelist lookup/replace, and firewall snapshots. 10 tests total. README usage documents the 'python app.py analyze' command.
This commit is contained in:
1 parent
2fb4032766
commit
6051d2b548
2 files changed
+170
No files matched your search
@@ -172,6 +172,11 @@ python app.py scan --quiet
|
||||
python app.py scan --update-firewall --dry-run
|
||||
python app.py scan --update-firewall
|
||||
|
||||
# detailed log-analysis report from the SQLite store (needs scans run first)
|
||||
python app.py analyze # top IPs + cross-source + blocklist
|
||||
python app.py analyze --ip 1.2.3.4 # drill into one IP's request history
|
||||
python app.py analyze --json # machine-readable output
|
||||
|
||||
# individual scanners (still runnable directly)
|
||||
python -m app.copyparty
|
||||
python -m app.npm
|
||||
|
||||
Reference in new issue
Block a user