intelmq
intelmq copied to clipboard
asn, fake expert: default paths, asn: add checks
asn, fake expert: use state path for database default asn: Check for database file existence and writability fixes #2566
rebased to fix the tests
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