intelmq icon indicating copy to clipboard operation
intelmq copied to clipboard

asn, fake expert: default paths, asn: add checks

Open sebix opened this issue 8 months ago • 1 comments

asn, fake expert: use state path for database default asn: Check for database file existence and writability fixes #2566

sebix avatar Apr 23 '25 20:04 sebix

rebased to fix the tests

sebix avatar Apr 28 '25 08:04 sebix

Hehe, the added check already works:

FAILED intelmq/tests/bots/experts/asn_lookup/test_expert.py::TestASNLookupExpertBot::test_static_bot_check_method - ValueError: checks is [['warning', 'Database (/home/runner/work/intelmq/intelmq/intelmq/tests/bots/experts/asn_lookup/ipasn.dat) is older than one week. Check the auto update, see: https://docs.intelmq.org/latest/user/bots/#asn-lookup.']]

I believe the line raising that exception is actually a bug.

EDIT: Addressed by #2622

sebix avatar Jul 08 '25 08:07 sebix