diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-28 13:57:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-28 13:57:55 +0100 |
commit | d4bab2f70adbabf14e734f4c9bc497843c298f5c (patch) | |
tree | 753fc2f88f493c249d25bc180b282098340b3d8b /test/functional/cases/100_general.robot | |
parent | d7ea09ea1f70fb94fb6f8510af16805c3f71b70f (diff) | |
download | rspamd-d4bab2f70adbabf14e734f4c9bc497843c298f5c.tar.gz rspamd-d4bab2f70adbabf14e734f4c9bc497843c298f5c.zip |
[Test] Reorder tests
Diffstat (limited to 'test/functional/cases/100_general.robot')
-rw-r--r-- | test/functional/cases/100_general.robot | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/functional/cases/100_general.robot b/test/functional/cases/100_general.robot new file mode 100644 index 000000000..8876ef980 --- /dev/null +++ b/test/functional/cases/100_general.robot @@ -0,0 +1,42 @@ +*** Settings *** +Suite Setup Generic Setup +Suite Teardown Generic Teardown +Library ${TESTDIR}/lib/rspamd.py +Resource ${TESTDIR}/lib/rspamd.robot +Variables ${TESTDIR}/lib/vars.py + +*** Variables *** +${CONFIG} ${TESTDIR}/configs/trivial.conf +${GTUBE} ${TESTDIR}/messages/gtube.eml +${RSPAMD_SCOPE} Suite + +*** Test Cases *** +GTUBE + ${result} = Scan Message With Rspamc ${GTUBE} + Check Rspamc ${result} GTUBE ( + +GTUBE - Encrypted + ${result} = Run Rspamc -p -h ${LOCAL_ADDR}:${PORT_NORMAL} --key ${KEY_PUB1} + ... ${GTUBE} + Check Rspamc ${result} GTUBE ( + +GTUBE - Scan File feature + ${result} = Scan File ${LOCAL_ADDR} ${PORT_NORMAL} ${GTUBE} + Follow Rspamd Log + Should Contain ${result} GTUBE + +GTUBE - Scan File feature (encoded) + ${encoded} = Encode Filename ${GTUBE} + ${result} = Scan File ${LOCAL_ADDR} ${PORT_NORMAL} ${encoded} + Follow Rspamd Log + Should Contain ${result} GTUBE + +GTUBE - SPAMC + ${result} = Spamc ${LOCAL_ADDR} ${PORT_NORMAL} ${GTUBE} + Follow Rspamd Log + Should Contain ${result} GTUBE + +GTUBE - RSPAMC + ${result} = Rspamc ${LOCAL_ADDR} ${PORT_NORMAL} ${GTUBE} + Follow Rspamd Log + Should Contain ${result} GTUBE |