From 1c7074c76ba587e206b41d8eeccd17e565620396 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 Jun 2018 14:46:29 +0100 Subject: [PATCH] [Test] Add a simple test for zerofont --- test/functional/cases/100_general.robot | 6 ++++++ test/functional/messages/zerofont.eml | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 test/functional/messages/zerofont.eml diff --git a/test/functional/cases/100_general.robot b/test/functional/cases/100_general.robot index 31d82c4f89..63ebe1946b 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 0000000000..79fa5ede4a --- /dev/null +++ b/test/functional/messages/zerofont.eml @@ -0,0 +1,17 @@ +From: foobar@example.com +Content-Type: text/html + + + + + + + New Tab + + + + + +
file sharing
+ + -- 2.47.3