diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-14 16:33:23 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-14 16:33:23 +0100 |
commit | 533f9e950db55559a06c8e76d1f50c7f13438311 (patch) | |
tree | a4c17ce7e5486655c0b13bb6dfeaaca8cc015740 /test | |
parent | 1af89c35663dd364c8d46523f0d71adc64f8bde4 (diff) | |
download | rspamd-533f9e950db55559a06c8e76d1f50c7f13438311.tar.gz rspamd-533f9e950db55559a06c8e76d1f50c7f13438311.zip |
[Test] Added few more fake records
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/102_multimap.robot | 2 | ||||
-rw-r--r-- | test/functional/configs/plugins.conf | 30 | ||||
-rw-r--r-- | test/functional/configs/stats.conf | 5 |
3 files changed, 36 insertions, 1 deletions
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot index 7aac43e4e..3b0995d56 100644 --- a/test/functional/cases/102_multimap.robot +++ b/test/functional/cases/102_multimap.robot @@ -66,7 +66,7 @@ MAP - FROM MISS MAP - FROM REGEXP ${result} = Scan Message With Rspamc ${MESSAGE} --from user123@test.com Check Rspamc ${result} REGEXP_MAP - ${result} = Scan Message With Rspamc ${MESSAGE} --from somebody@exAmplE.com + ${result} = Scan Message With Rspamc ${MESSAGE} --from somebody@example.com Check Rspamc ${result} REGEXP_MAP MAP - FROM REGEXP MISS diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf index 2b3e48b04..eab954333 100644 --- a/test/functional/configs/plugins.conf +++ b/test/functional/configs/plugins.conf @@ -233,6 +233,11 @@ options = { replies = ["$Id: example.com 4415 2015-08-24 20:12:23Z davids $", "v=spf1 -all"]; }, { + name = "example.com", + type = "a"; + replies = ["93.184.216.34"]; + }, + { name = "testdkim1._domainkey.dnssec-failed.org", type = "txt"; rcode = 'timeout'; @@ -391,6 +396,31 @@ options = { name = "114.47.228.46.asn.rspamd.com", type = "txt"; replies = ["34010|46.228.40.0/21|GB|ripencc|"]; + }, + { + name = "10.0.1.10.rspamd.com", + type = "a"; + rcode = 'nxdomain'; + }, + { + name = "10.0.1.11.rspamd.com", + type = "a"; + rcode = 'nxdomain'; + }, + { + name = "other.org", + type = "txt"; + rcode = 'norec'; + }, + { + name = "8.8.8.8.rspamd.com", + type = "a"; + rcode = 'nxdomain'; + }, + { + name = "rspamd.tk", + type = "txt"; + replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"]; }]; } } diff --git a/test/functional/configs/stats.conf b/test/functional/configs/stats.conf index afa405baf..e770de2e8 100644 --- a/test/functional/configs/stats.conf +++ b/test/functional/configs/stats.conf @@ -5,6 +5,11 @@ options = { dns { retransmits = 10; timeout = 2s; + fake_records = [{ + name = "example.net"; + type = txt; + replies = ["v=spf1 -all"]; + }] } } logging = { |