zeek/testing/btest/scripts/base/frameworks
Johanna Amann 6b9abe85a7 Add error events to input framework.
This change introduces error events for Table and Event readers. Users
can now specify an event that is called when an info, warning, or error
is emitted by their input reader. This can, e.g., be used to raise
notices in case errors occur when reading an important input stream.

Example:

event error_event(desc: Input::TableDescription, msg: string, level: Reporter::Level)
	{
	...
	}

event bro_init()
	{
	Input::add_table([$source="a", $error_ev=error_event, ...]);
	}

For the moment, this converts all errors in the Asciiformatter into
warnings (to show that they are non-fatal) - the Reader itself also has
to throw an Error to show that a fatal error occurred and processing
will be abort.

It might be nicer to change this and require readers to mark fatal
errors as such when throwing them.

Addresses BIT-1181
2016-07-22 19:45:28 -07:00
..
analyzer SSH: Update baselines 2015-03-18 13:02:33 -04:00
cluster Unit test reliability adjustment. 2012-09-13 12:59:40 -05:00
communication Drain events before terminating log/thread managers. 2012-06-28 12:42:32 -05:00
control Add sleeps to configuration_update test for better reliability. 2012-09-05 16:20:34 -05:00
file-analysis Fix a bug in the core files framework with handling the BOF buffer. 2015-02-05 09:09:08 -05:00
input Add error events to input framework. 2016-07-22 19:45:28 -07:00
intel Canonfying an intel test to not depend on output order. 2013-11-01 05:03:54 -07:00
logging Escape the empty indicator in logs if it occurs literally as a field's 2016-07-05 16:34:24 -07:00
netcontrol NetControl: slightly update catch and release logging 2016-05-31 11:52:42 -07:00
notice Updates for the notices framework. 2013-02-11 14:36:14 -05:00
openflow Fix Bro and unit tests when broker is not enabled 2016-05-10 06:24:35 -05:00
packet-filter Add a Reporter::fatal BIF. 2011-08-25 13:13:39 -05:00
reporter Updating baselines. 2012-08-10 13:25:18 -07:00
software Adding tests for Flash version parsing and plugin detection. 2015-07-30 07:23:14 -07:00
sumstats define empty request_key method for sumstats in cluster mode. 2014-04-18 16:29:51 -07:00