summaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-07-31 16:03:56 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-07-31 17:26:49 +0200
commit0a4f412a17a6c76e6ba9bf1a3e6ad7d9f80b6d53 (patch)
tree6aa4acfb9cfd85257cf461dbe1566daaefcc9560 /test/functional/cases
parentbd925cbcbe16cf9f088cc3b187a052095c5760db (diff)
downloadrspamd-0a4f412a17a6c76e6ba9bf1a3e6ad7d9f80b6d53.tar.gz
rspamd-0a4f412a17a6c76e6ba9bf1a3e6ad7d9f80b6d53.zip
[Test] Add test for hostname map
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/102_maps.robot8
1 files changed, 8 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