Browse Source

[Test] Add test for CDB maps

pull/805/head
Andrew Lewis 9 years ago
parent
commit
842657ed75
  1. 8
      test/functional/cases/102_maps.robot
  2. 4
      test/functional/configs/maps.conf
  3. BIN
      test/functional/configs/maps/domains.cdb

8
test/functional/cases/102_maps.robot

@ -105,3 +105,11 @@ MAP - HOSTNAME
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
MAP - CDB - HOSTNAME
${result} = Scan Message With Rspamc ${MESSAGE} --ip 127.0.0.1 --hostname example.com
Check Rspamc ${result} HOSTNAME_MAP
MAP - CDB - 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

@ -73,4 +73,8 @@ multimap {
type = "hostname";
map = "${TESTDIR}/configs/maps/domains.list";
}
HOSTNAME_MAP_CDB {
type = "hostname";
map = "cdb://${TESTDIR}/configs/maps/domains.cdb";
}
}

BIN
test/functional/configs/maps/domains.cdb

Loading…
Cancel
Save