aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/280_rules.robot
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/cases/280_rules.robot')
-rw-r--r--test/functional/cases/280_rules.robot11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/cases/280_rules.robot b/test/functional/cases/280_rules.robot
index 882fc7275..b6b347313 100644
--- a/test/functional/cases/280_rules.robot
+++ b/test/functional/cases/280_rules.robot
@@ -13,6 +13,8 @@ ${MESSAGE2} ${TESTDIR}/messages/fws_fp.eml
${MESSAGE3} ${TESTDIR}/messages/fws_tp.eml
${MESSAGE4} ${TESTDIR}/messages/broken_richtext.eml
${MESSAGE5} ${TESTDIR}/messages/badboundary.eml
+${MESSAGE6} ${TESTDIR}/messages/pdf_encrypted.eml
+${MESSAGE7} ${TESTDIR}/messages/pdf_js.eml
${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
${RSPAMD_SCOPE} Test
@@ -45,6 +47,15 @@ Broken boundary
${result} = Scan Message With Rspamc ${MESSAGE4}
Check Rspamc ${result} BROKEN_CONTENT_TYPE
+PDF encrypted
+ ${result} = Scan Message With Rspamc ${MESSAGE6}
+ Check Rspamc ${result} PDF_ENCRYPTED
+
+PDF javascript
+ ${result} = Scan Message With Rspamc ${MESSAGE7}
+ Check Rspamc ${result} PDF_JAVASCRIPT
+
+
*** Keywords ***
Rules Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/regexp.conf