aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorkorgoth1 <vladislav.stakhov@gmail.com>2020-06-24 22:13:17 +0300
committerkorgoth1 <vladislav.stakhov@gmail.com>2020-06-24 22:13:17 +0300
commitf3ed090a70e0c9b14ada0150471b46535d4e023f (patch)
tree149d500232ab071b31b053ec71b32b848a7f786a /test/functional
parentc31bf17fc483952e01468c7ff0f70b9ec0b8ad1d (diff)
downloadrspamd-f3ed090a70e0c9b14ada0150471b46535d4e023f.tar.gz
rspamd-f3ed090a70e0c9b14ada0150471b46535d4e023f.zip
[TEST] New bitcoin addr
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/cases/280_rules.robot8
-rw-r--r--test/functional/messages/btc2.eml22
-rw-r--r--test/functional/messages/btc3.eml22
-rw-r--r--test/functional/messages/yand_forward.eml2
4 files changed, 53 insertions, 1 deletions
diff --git a/test/functional/cases/280_rules.robot b/test/functional/cases/280_rules.robot
index a847fbbc7..18e3f3850 100644
--- a/test/functional/cases/280_rules.robot
+++ b/test/functional/cases/280_rules.robot
@@ -60,6 +60,14 @@ BITCOIN ADDR
${result} = Scan Message With Rspamc ${TESTDIR}/messages/btc.eml
Should Contain ${result.stdout} BITCOIN_ADDR
+BITCOIN ADDR 2
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/btc2.eml
+ Should Contain ${result.stdout} BITCOIN_ADDR
+
+BITCOIN ADDR 3
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/btc3.eml
+ Should Contain ${result.stdout} BITCOIN_ADDR
+
RCVD_COUNT_ONE
${result} = Scan Message With Rspamc ${TESTDIR}/messages/btc.eml
Should Contain ${result.stdout} RCVD_COUNT_ONE
diff --git a/test/functional/messages/btc2.eml b/test/functional/messages/btc2.eml
new file mode 100644
index 000000000..fe4819c70
--- /dev/null
+++ b/test/functional/messages/btc2.eml
@@ -0,0 +1,22 @@
+Received: by mail-lf1-f54.gulugulu.com with SMTP id j14so14439709lfg.9
+ for <test@test.ru>; Mon, 27 Apr 2020 09:54:21 -0700 (PDT)
+From: test@test.com
+Date: Mon, 27 Apr 2020 19:54:10 +0300
+Message-ID: <CA+1S=h4aGimA6vSBJF=t1F+5z-Mua5+Cimf+NU_NDWJk8ZNOcw@mail.gmail.com>
+Subject: Fwd:
+To: <test@test.ru>
+Content-Type: multipart/alternative; boundary="00000000000004de7805a4489190"
+
+--0000000000004bee6805a4484c02
+Content-Type: text/plain; charset="UTF-8"
+Content-Transfer-Encoding: base64
+
+qq5llzv84punzrx2vlv33m5d5jm3tnr8aqqz3kwel3 - bech32
+
+--0000000000004bee6805a4484c02
+Content-Type: text/html; charset="UTF-8"
+Content-Transfer-Encoding: quoted-printable
+
+qq5llzv84punzrx2vlv33m5d5jm3tnr8aqqz3kwel3 - bech32
+
+--0000000000004bee6805a4484c02-- \ No newline at end of file
diff --git a/test/functional/messages/btc3.eml b/test/functional/messages/btc3.eml
new file mode 100644
index 000000000..cb9dfa2a9
--- /dev/null
+++ b/test/functional/messages/btc3.eml
@@ -0,0 +1,22 @@
+Received: by mail-lf1-f54.gulugulu.com with SMTP id j14so14439709lfg.9
+ for <test@test.ru>; Mon, 27 Apr 2020 09:54:21 -0700 (PDT)
+From: test@test.com
+Date: Mon, 27 Apr 2020 19:54:10 +0300
+Message-ID: <CA+1S=h4aGimA6vSBJF=t1F+5z-Mua5+Cimf+NU_NDWJk8ZNOcw@mail.gmail.com>
+Subject: Fwd:
+To: <test@test.ru>
+Content-Type: multipart/alternative; boundary="00000000000004de7805a4489190"
+
+--0000000000004bee6805a4484c02
+Content-Type: text/plain; charset="UTF-8"
+Content-Transfer-Encoding: base64
+
+bitcoincash:qztslqhavnjcgth9zwu6dw0jjcfy4zahfy7vf0smwpp
+
+--0000000000004bee6805a4484c02
+Content-Type: text/html; charset="UTF-8"
+Content-Transfer-Encoding: quoted-printable
+
+bitcoincash:qztslqhavnjcgth9zwu6dw0jjcfy4zahfy7vf0smwpp
+
+--0000000000004bee6805a4484c02-- \ No newline at end of file
diff --git a/test/functional/messages/yand_forward.eml b/test/functional/messages/yand_forward.eml
index b95309f33..8ea2636de 100644
--- a/test/functional/messages/yand_forward.eml
+++ b/test/functional/messages/yand_forward.eml
@@ -1,4 +1,4 @@
-Return-Path: <test@test.eu>
+Return-Path: <test@test.net>
Received: from mx7.test.ru ([0.0.0.0] verified)
by mail.test.ru (test mail)
with ESMTP id 60578244