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/110_statistics | |
parent | 27ad207da620685499aa04c8e9c7d4e4eafa11dc (diff) | |
download | rspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.tar.gz rspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.zip |
[Test] Use HTTP & simplified test style
Diffstat (limited to 'test/functional/cases/110_statistics')
-rw-r--r-- | test/functional/cases/110_statistics/lib.robot | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/cases/110_statistics/lib.robot b/test/functional/cases/110_statistics/lib.robot index c20c0f651..9dd313cd3 100644 --- a/test/functional/cases/110_statistics/lib.robot +++ b/test/functional/cases/110_statistics/lib.robot @@ -22,28 +22,28 @@ Empty Part Test Set Test Variable ${MESSAGE} ${TESTDIR}/messages/empty_part.eml ${result} = Run Rspamc -h ${LOCAL_ADDR}:${PORT_CONTROLLER} learn_spam ${MESSAGE} Check Rspamc ${result} - ${result} = Scan Message With Rspamc ${MESSAGE} - Check Rspamc ${result} BAYES_SPAM + Scan File ${MESSAGE} + Expect Symbol BAYES_SPAM Learn Test Set Suite Variable ${RSPAMD_STATS_LEARNTEST} 0 ${result} = Run Rspamc -h ${LOCAL_ADDR}:${PORT_CONTROLLER} learn_spam ${MESSAGE_SPAM} ${result} = Run Rspamc -h ${LOCAL_ADDR}:${PORT_CONTROLLER} learn_ham ${MESSAGE_HAM} Check Rspamc ${result} - ${result} = Scan Message With Rspamc ${MESSAGE_SPAM} - Check Rspamc ${result} BAYES_SPAM - ${result} = Scan Message With Rspamc ${MESSAGE_HAM} - Check Rspamc ${result} BAYES_HAM + Scan File ${MESSAGE_SPAM} + Expect Symbol BAYES_SPAM + Scan File ${MESSAGE_HAM} + Expect Symbol BAYES_HAM Set Suite Variable ${RSPAMD_STATS_LEARNTEST} 1 Relearn Test Run Keyword If ${RSPAMD_STATS_LEARNTEST} == 0 Fail "Learn test was not run" ${result} = Run Rspamc -h ${LOCAL_ADDR}:${PORT_CONTROLLER} learn_ham ${MESSAGE_SPAM} Check Rspamc ${result} - ${result} = Scan Message With Rspamc ${MESSAGE_SPAM} - ${pass} = Run Keyword And Return Status Check Rspamc ${result} BAYES_HAM + Scan File ${MESSAGE_SPAM} + ${pass} = Run Keyword And Return Status Expect Symbol BAYES_HAM Run Keyword If ${pass} Pass Execution What Me Worry - Should Not Contain ${result.stdout} BAYES_SPAM + Do Not Expect Symbol BAYES_SPAM Redis Statistics Setup ${tmpdir} = Make Temporary Directory |