diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-07-31 16:03:56 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-07-31 17:26:49 +0200 |
commit | 0a4f412a17a6c76e6ba9bf1a3e6ad7d9f80b6d53 (patch) | |
tree | 6aa4acfb9cfd85257cf461dbe1566daaefcc9560 /test | |
parent | bd925cbcbe16cf9f088cc3b187a052095c5760db (diff) | |
download | rspamd-0a4f412a17a6c76e6ba9bf1a3e6ad7d9f80b6d53.tar.gz rspamd-0a4f412a17a6c76e6ba9bf1a3e6ad7d9f80b6d53.zip |
[Test] Add test for hostname map
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/102_maps.robot | 8 | ||||
-rw-r--r-- | test/functional/configs/maps.conf | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/cases/102_maps.robot b/test/functional/cases/102_maps.robot index 03291a49f..6070cf5e4 100644 --- a/test/functional/cases/102_maps.robot +++ b/test/functional/cases/102_maps.robot @@ -97,3 +97,11 @@ MAP - UTF MAP - UTF MISS ${result} = Scan Message With Rspamc ${MESSAGE} Check Rspamc ${result} HEADER_MAP inverse=1 rc_noinverse=1 + +MAP - HOSTNAME + ${result} = Scan Message With Rspamc ${MESSAGE} --ip 127.0.0.1 --hostname example.com + Check Rspamc ${result} HOSTNAME_MAP + +MAP - HOSTNAME MISS + ${result} = Scan Message With Rspamc ${MESSAGE} --ip 127.0.0.1 --hostname rspamd.com + Check Rspamc ${result} HOSTNAME_MAP inverse=1 rc_noinverse=1 diff --git a/test/functional/configs/maps.conf b/test/functional/configs/maps.conf index 0817dd7cf..039ef3fb0 100644 --- a/test/functional/configs/maps.conf +++ b/test/functional/configs/maps.conf @@ -69,4 +69,8 @@ multimap { map = "${TESTDIR}/configs/maps/utf.list"; regexp = true; } + HOSTNAME_MAP { + type = "hostname"; + map = "${TESTDIR}/configs/maps/domains.list"; + } } |