diff options
author | Andrew Lewis <nerf@judo.za.org> | 2020-09-07 15:14:22 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2020-09-07 15:14:22 +0200 |
commit | c07cb6a8c4f45d0cf35baacf539d5c78145fe1de (patch) | |
tree | b67b987e045203d927aa87c1982dc43ea6fda5e6 /test/functional/cases/104_get_from.robot | |
parent | 27ad207da620685499aa04c8e9c7d4e4eafa11dc (diff) | |
download | rspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.tar.gz rspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.zip |
[Test] Use HTTP & simplified test style
Diffstat (limited to 'test/functional/cases/104_get_from.robot')
-rw-r--r-- | test/functional/cases/104_get_from.robot | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/functional/cases/104_get_from.robot b/test/functional/cases/104_get_from.robot index 94f2590a4..c15e0cdba 100644 --- a/test/functional/cases/104_get_from.robot +++ b/test/functional/cases/104_get_from.robot @@ -10,44 +10,44 @@ ${CONFIG} ${TESTDIR}/configs/lua_script.conf ${LUA_SCRIPT} ${TESTDIR}/lua/get_from.lua ${RSPAMD_SCOPE} Suite -${SYMBOL} GET_FROM (0.00) -${SYMBOL1} ${SYMBOL}\[,user@example.org,user,example.org] -${SYMBOL2} ${SYMBOL}\[First Last,user@example.org,user,example.org] -${SYMBOL3} ${SYMBOL}\[First M. Last,user@example.org,user,example.org] +${SYMBOL} GET_FROM +${OPTIONS1} ,user@example.org,user,example.org +${OPTIONS2} First Last,user@example.org,user,example.org +${OPTIONS3} First M. Last,user@example.org,user,example.org *** Test Cases *** task:get_from('mime') - address only - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from.eml - Check Rspamc ${result} ${SYMBOL1} + Scan File ${TESTDIR}/messages/from/from.eml + Expect Symbol ${SYMBOL} task:get_from('mime') - comment - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_comment.eml - Check Rspamc ${result} ${SYMBOL1} + Scan File ${TESTDIR}/messages/from/from_comment.eml + Expect Symbol With Exact Options ${SYMBOL} ${OPTIONS1} task:get_from('mime') - display name - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_dn.eml - Check Rspamc ${result} ${SYMBOL2} + Scan File ${TESTDIR}/messages/from/from_dn.eml + Expect Symbol With Exact Options ${SYMBOL} ${OPTIONS2} task:get_from('mime') - display name Base64 - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_dn_base64.eml - Check Rspamc ${result} ${SYMBOL}\[Кириллица,user@example.org,user,example.org] + Scan File ${TESTDIR}/messages/from/from_dn_base64.eml + Expect Symbol With Exact Options ${SYMBOL} Кириллица,user@example.org,user,example.org task:get_from('mime') - display name and comment - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_dn_comment.eml - Check Rspamc ${result} ${SYMBOL2} + Scan File ${TESTDIR}/messages/from/from_dn_comment.eml + Expect Symbol With Exact Options ${SYMBOL} ${OPTIONS2} task:get_from('mime') - quoted display name - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_quoted_dn.eml - Check Rspamc ${result} ${SYMBOL3} + Scan File ${TESTDIR}/messages/from/from_quoted_dn.eml + Expect Symbol With Exact Options ${SYMBOL} ${OPTIONS3} task:get_from('mime') - quoted display name and comment - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_quoted_dn_comment.eml - Check Rspamc ${result} ${SYMBOL3} + Scan File ${TESTDIR}/messages/from/from_quoted_dn_comment.eml + Expect Symbol With Exact Options ${SYMBOL} ${OPTIONS3} task:get_from('mime') - quoted in the middle of DN (outer spaces) - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_quoted_dn_middle.eml - Check Rspamc ${result} ${SYMBOL3} + Scan File ${TESTDIR}/messages/from/from_quoted_dn_middle.eml + Expect Symbol With Exact Options ${SYMBOL} ${OPTIONS3} task:get_from('mime') - quoted in the middle of DN (inner spaces) - ${result} = Scan Message With Rspamc ${TESTDIR}/messages/from/from_quoted_dn_middle_inner.eml - Check Rspamc ${result} ${SYMBOL3} + Scan File ${TESTDIR}/messages/from/from_quoted_dn_middle_inner.eml + Expect Symbol With Exact Options ${SYMBOL} ${OPTIONS3} |