[Intelmq-dev] Harmonization configuration

Sebastian Wagner wagner at cert.at
Mon Aug 21 16:01:26 CEST 2017


Hi,
On 08/21/2017 03:53 PM, Vaclav Bruzek wrote:
> "AssertionError: Regex matched: 'ERROR' matches '(ERROR.*?){1}'
> Traceback (most recent call last):
> File "/usr/local/lib/python3.5/dist-packages/intelmq/lib/bot.py", line
> 145, in start\n  self.process()
> File "/untitled/test_bot.py", line 34, in process  
> event.add("test.field", 50)
> File "/usr/local/lib/python3.5/dist-packages/intelmq/lib/message.py",
> line 188, in add  raise exceptions.InvalidKey(key)
> intelmq.lib.exceptions.InvalidKey: invalid key \'test.field\'
>
> Configuration in harmonization.conf is as follows for event and for
> report:
> "'test.field": {"description": "test value", "type": "Integer"},
>
> I checked whether I am using the version in /opt/intelmq/etc/ and
> everything seemed to be ok. I couldn't figure out what is wrong
> because everything seems to be in order. I am using the 1.0.0 version
> of intelmq, on elementary OS 0.4.1.
How do you start the tests? The mix of local/lib and some custom
directory looks strange.
The test suite uses the harmonization.conf in
intelmq/etc/harmonization.conf, not the installed one. You can run the
tests for a locally changed intelmq without affecting a installation or
requiring root to run them.

Sebastian

-- 
// Sebastian Wagner <wagner at cert.at> - T: +43 1 5056416 7201
// CERT Austria - https://www.cert.at/
// Eine Initiative der nic.at GmbH - https://www.nic.at/
// Firmenbuchnummer 172568b, LG Salzburg


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.cert.at/pipermail/intelmq-dev/attachments/20170821/a3dbe2d9/attachment.sig>


More information about the Intelmq-dev mailing list