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/140_proxy.robot | |
parent | 27ad207da620685499aa04c8e9c7d4e4eafa11dc (diff) | |
download | rspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.tar.gz rspamd-c07cb6a8c4f45d0cf35baacf539d5c78145fe1de.zip |
[Test] Use HTTP & simplified test style
Diffstat (limited to 'test/functional/cases/140_proxy.robot')
-rw-r--r-- | test/functional/cases/140_proxy.robot | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/cases/140_proxy.robot b/test/functional/cases/140_proxy.robot index fabc5a4fd..39b3faf87 100644 --- a/test/functional/cases/140_proxy.robot +++ b/test/functional/cases/140_proxy.robot @@ -11,11 +11,10 @@ ${MESSAGE} ${TESTDIR}/messages/spam_message.eml ${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat *** Test Cases *** -Rspamc Client - ${result} = Run Rspamc -h ${LOCAL_ADDR}:${PORT_PROXY} -p ${MESSAGE} - Run Keyword If ${result.rc} != 0 Log ${result.stderr} - Should Contain ${result.stdout} SIMPLE_TEST - Should Be Equal As Integers ${result.rc} 0 +HTTP PROTOCOL + Set Test Variable ${PORT_NORMAL} ${PORT_PROXY} + Scan File ${MESSAGE} + Expect Symbol SIMPLE_TEST SPAMC ${result} = Spamc ${LOCAL_ADDR} ${PORT_PROXY} ${MESSAGE} |