From: Vsevolod Stakhov Date: Thu, 21 Jun 2018 13:46:29 +0000 (+0100) Subject: [Test] Add a simple test for zerofont X-Git-Tag: 1.7.7~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1c7074c76ba587e206b41d8eeccd17e565620396;p=rspamd.git [Test] Add a simple test for zerofont --- diff --git a/test/functional/cases/100_general.robot b/test/functional/cases/100_general.robot index 31d82c4f8..63ebe1946 100644 --- a/test/functional/cases/100_general.robot +++ b/test/functional/cases/100_general.robot @@ -46,3 +46,9 @@ EMAILS DETECTION 1 Check Rspamc ${result} "jim@example.net" Should Contain ${result.stdout} "bob@example.net" Should Contain ${result.stdout} "rupert@example.net" + +EMAILS DETECTION ZEROFONT + ${result} = Scan File ${LOCAL_ADDR} ${PORT_NORMAL} ${TESTDIR}/messages/zerofont.eml + Follow Rspamd Log + Should Contain ${result} MANY_INVISIBLE_PARTS + Should Contain ${result} ZERO_FONT \ No newline at end of file diff --git a/test/functional/messages/zerofont.eml b/test/functional/messages/zerofont.eml new file mode 100644 index 000000000..79fa5ede4 --- /dev/null +++ b/test/functional/messages/zerofont.eml @@ -0,0 +1,17 @@ +From: foobar@example.com +Content-Type: text/html + + + + + + + New Tab + + + + + +
file sharing
+ +