Jared Johnson
5f6485e84f
Change fake_{config,hook} to mock_{config,hook}
...
'mock' is more accurate and recognizable
2015-02-12 16:19:44 -06:00
Jared Johnson
f8e220e3b5
Handle missing GeoIP data gracefully
...
Previously, the GeoIP plugin would crash on certain missing GeoIP data.
Now it will continue to operate on whatever data it can get at.
Note that it already warns when any data it's looking for is missing.
2015-01-14 15:28:14 -06:00
Jared Johnson
ea937f89dc
Warn about lack of ASN data when GeoIP2 is loaded
2014-12-18 13:30:26 -06:00
Jared Johnson
a9e7d00177
Tests exclude_connection() and exclude_recipient()
2014-12-11 16:55:59 -06:00
Jared Johnson
4ad56e4117
Add tests for check_genre()
2014-12-11 16:50:06 -06:00
Jared Johnson
ec470ed08e
Tests for ident/p0f rcpt_handler()
2014-12-11 16:29:07 -06:00
Jared Johnson
0a7c6f0f08
Tests for ident/p0f register_genre_blocking()
2014-12-11 16:06:54 -06:00
Jared Johnson
4547677135
Tests for ident/p0f register_headers()
2014-12-11 15:11:51 -06:00
Jared Johnson
30dd9cafeb
Add some p0f results to message headers
2014-11-21 16:51:19 -06:00
Jared Johnson
3b2b720ed5
Add tests for header addition
2014-11-13 13:52:49 -06:00
Jared Johnson
3ffee33d33
Remove extraneous semicolons
...
They confuse my editor
2014-11-11 16:59:40 -06:00
Matt Simerson
84db310736
geoip: don't run ASN tests if ASN db didn't load
2014-11-11 02:02:21 -05:00
Matt Simerson
54abd60239
strip off AS prefix
2014-11-05 14:30:23 -08:00
Matt Simerson
f2eda74074
ASN lookups now work
2014-11-05 14:30:22 -08:00
Matt Simerson
c61dbb5734
added GeoIP2 support, partial ASN support
2014-11-05 14:30:22 -08:00
Matt Simerson
9862cdc042
geoip: simplify the get/set data bits
2014-11-05 14:30:22 -08:00
Matt Simerson
a5420149bd
remove test counters from plugin tests
...
replace with done_testing(), which provides the same "make sure to kvetch if tests fail to run" without requiring humans to do the bookkeeping.
2014-09-17 00:11:32 -07:00
Matt Simerson
4a3452f486
p0f: POD & log message updates
2013-08-05 15:01:48 -07:00
Matt Simerson
7ff2d050f3
initial import - based on my qpsmtpd fork
...
which will merge into the main branch fairly easily
2013-08-05 15:01:47 -07:00
Matt Simerson
0a16621f02
connection consistency
...
- $self->qp->connection->notes
+ $self->connection->notes
and all tests pass.
2012-06-02 00:46:33 -04:00
Matt Simerson
e07488d4f6
hrmm, why didn't Test::Qpsmtpd::Plugin::log work?
2012-05-22 17:41:40 -04:00
Matt Simerson
2dcd34467e
geoip: eval loading of Geo::IP, tests, enabled in config
...
eval Geo::IP and log an error if missing
added 2 tests
enabled in config/plugins
2012-05-22 17:40:02 -04:00
Matt Simerson
c3d1f6b16e
p0f: tests, tests, tests, backward compat
...
minor changes to facilitate testing
improved error reporting of several failures
added p0f v2 compatibility to p0f v3 results: in addition to all the newer values, also report the old ones too.
2012-05-20 23:38:48 -07:00