Browse Source

[Test] Add test for hostname map

pull/775/head
Andrew Lewis 9 years ago
parent
commit
0a4f412a17
  1. 8
      test/functional/cases/102_maps.robot
  2. 4
      test/functional/configs/maps.conf

8
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

4
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";
}
}
Loading…
Cancel
Save