]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix tests
authorAndrew Lewis <nerf@judo.za.org>
Wed, 16 Aug 2017 20:20:55 +0000 (22:20 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 16 Aug 2017 20:26:39 +0000 (22:26 +0200)
test/functional/cases/115_dmarc.robot
test/functional/cases/131_dkim_signing/001_simple.robot
test/functional/cases/131_dkim_signing/002_redis.robot
test/functional/configs/dkim.conf
test/functional/messages/dmarc/bad_dkim1.eml
test/functional/messages/dmarc/bad_dkim3.eml
test/functional/messages/dmarc/fail_none.eml
test/functional/messages/dmarc/fail_quarantine.eml
test/functional/messages/dmarc/fail_reject.eml
test/functional/messages/dmarc/pass_none.eml
test/lua/unit/test_tld.dat

index a2a94c50c87a88e514dabd015d2d0f0459651e2f..4e504ebd00b472a78397fe7ebb962be42eca0dad 100644 (file)
@@ -17,7 +17,7 @@ DMARC NONE PASS DKIM
 
 DMARC NONE PASS SPF
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/dmarc/fail_none.eml
-  ...  -i  212.47.245.199  --from  foo@rspamd.tk
+  ...  -i  8.8.4.4  --from  foo@spf.cacophony.za.org
   Check Rspamc  ${result}  DMARC_POLICY_ALLOW
 
 DMARC NONE FAIL
index c715b472357d9ef798dd0c7c5a1d189901478627..66bcffe3795dec03b2442a5fa4f9b8389b5d4da6 100644 (file)
@@ -14,7 +14,7 @@ ${URL_TLD}      ${TESTDIR}/../lua/unit/test_tld.dat
 
 *** Test Cases ***
 TEST SIGNED
-  ${result} =  Scan Message With Rspamc  ${MESSAGE}  -u  bob@rspamd.tk
+  ${result} =  Scan Message With Rspamc  ${MESSAGE}  -u  bob@cacophony.za.org
   Check Rspamc  ${result}  DKIM-Signature:
   Should Contain  ${result.stdout}  DKIM_SIGNED (1.00)
 
index f7d590c1c309c258903f5d2ddef5627f3f4083c2..891e7138515917cbb31ff5848b2d44948ae53ec8 100644 (file)
@@ -14,7 +14,7 @@ ${URL_TLD}      ${TESTDIR}/../lua/unit/test_tld.dat
 
 *** Test Cases ***
 TEST SIGNED
-  ${result} =  Scan Message With Rspamc  ${MESSAGE}  -u  bob@rspamd.tk
+  ${result} =  Scan Message With Rspamc  ${MESSAGE}  -u  bob@cacophony.za.org
   Check Rspamc  ${result}  DKIM-Signature:
   Should Contain  ${result.stdout}  DKIM_SIGNED (1.00)
 
@@ -29,9 +29,9 @@ DKIM Signing Setup
   Set Suite Variable  ${PLUGIN_CONFIG}
   Generic Setup  PLUGIN_CONFIG
   Run Redis
-  Redis HSET  TEST_DKIM_SELECTORS  rspamd.tk  test
+  Redis HSET  TEST_DKIM_SELECTORS  cacophony.za.org  dkim
   ${key} =  Get File  ${TESTDIR}/configs/dkim.key
-  Redis HSET  TEST_DKIM_KEYS  test.rspamd.tk  ${key}
+  Redis HSET  TEST_DKIM_KEYS  dkim.cacophony.za.org  ${key}
 
 DKIM Signing Teardown
   Normal Teardown
index c2ff522751ac1838a6c467411a0596bb386dfa7f..b10cff0c47fc3e0b33342ae92b990f8f9cacba5f 100644 (file)
@@ -46,8 +46,8 @@ return function(task)
   if not dodkim then return end
   return {
     key = "${TESTDIR}/configs/dkim.key",
-    domain = "rspamd.tk",
-    selector = "testdkim"
+    domain = "cacophony.za.org",
+    selector = "dkim"
   }
 end
 EOD;
index 6b3f32eccb05fa3d09c807a8fc3e030b9c9b0bbb..4183686552969c21ced219d92f78d72cbd9811c0 100644 (file)
@@ -1,6 +1,6 @@
 Date: Tue, 09 Aug 2016 10:01:27 +0200
 Message-ID: <20160809100127@rspamd.tk>
-From: Rspamd <foo@rspamd.tk>
+From: Rspamd <foo@cacophony.za.org>
 To: foo@rspamd.tk
 Subject: hello
 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
index 40dc525c9c6deb820deab46a4d54fc52d968b1ea..d178a48d0be8b122fd19ecf0cf7655b130c2e4f1 100644 (file)
@@ -1,6 +1,6 @@
 Date: Tue, 09 Aug 2016 10:01:27 +0200
 Message-ID: <20160809100127@rspamd.tk>
-From: Rspamd <foo@rspamd.tk>
+From: Rspamd <foo@cacophony.za.org>
 To: foo@rspamd.tk
 Subject: hello
 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
index 1dc97c2ea3222d2fa6c995d2cd623b50b4f0570a..7fbff77384f0ff1dcbd6d45004e6c298b2f2f941 100644 (file)
@@ -1,3 +1,3 @@
-From: Rspamd <foo@rspamd.tk>
+From: Rspamd <foo@cacophony.za.org>
 
 hello
index 6af9d218649a35afbc6b68e7cf7d71e5629d6f8d..2d4e4629998b68dd71079efa77c94418cae62d0d 100644 (file)
@@ -1,3 +1,3 @@
-From: Rspamd <foo@quarantine.rspamd.tk>
+From: Rspamd <foo@quarantine.cacophony.za.org>
 
 hello
index 014d20c067af5afc60cebc61a28d4d3a650e457e..e21248cf015f97bebc25e629f2a3e7e166b5475d 100644 (file)
@@ -1,3 +1,3 @@
-From: Rspamd <foo@reject.rspamd.tk>
+From: Rspamd <foo@reject.cacophony.za.org>
 
 hello
index e29e6a5de1a381959f62664db1c671185d0200bf..f7fa3808398887475c9a35ac30c8a52f0b497438 100644 (file)
@@ -1,16 +1,17 @@
 Date: Tue, 09 Aug 2016 10:01:27 +0200
 Message-ID: <20160809100127@rspamd.tk>
-From: Rspamd <foo@rspamd.tk>
+From: Rspamd <foo@cacophony.za.org>
 To: foo@rspamd.tk
 Subject: hello
 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
 MIME-Version: 1.0
 Content-Disposition: inline
-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rspamd.tk; s=testdkim;
-       t=1470729879; h=from:subject:date:message-id:to:mime-version:content-type;
-       bh=7HkRgYnNru3SR2EWfgWU8yhM0MOH6ZZrPoEIgNIh8wc=;
-       b=kTIV4jcgv9sWFh2JFrS/+PcNxiloituqjmHHqeJOTfa+/9C+Er8BjnMysTJyYVq36Gnv0OZDgLr3Yy4YP5Lzbt1M9ZdN5cJqO7yn1N7wyaGfkt++b09rIYBy5Dkk7OWyP3cDThqDzv8C9heSvqBSEsirFsbt3Wx2g/hWiJlnjew=
-
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cacophony.za.org;
+       s=dkim; t=1502912195; h=from:subject:date:message-id:to:mime-version:content-type;
+       bh=zS7KNTV0HyeorkDDGwxB1AV6enuRKzO5rthkhdHIRnY=;
+       b=GEGigFZw2oSlVM+lZcMsnq6XHsoIQ3HsehPjbfn9nZjpLpuZ5Yzc/Oki8eiyDg+Dw+203N
+       lRott5+RToquJiGTM0uhxG7bcLu72HmT/JvGO/kNSML9w4GuzBp8OinZLhZqmaxz4RlkLx
+       41feLYvmQnWWfNhssQNp/5ifi4+AXxM=
 
 hello
 
index fbdaa71e7e03f8a3322db5295751fc6540309e16..95fbae5a83a4f778d30795261076cc680984f936 100644 (file)
@@ -1,4 +1,5 @@
 com
 org
 net
-рф
\ No newline at end of file
+рф
+za.org