diff options
Diffstat (limited to 'test/functional/cases/151_rspamadm_async.robot')
-rw-r--r-- | test/functional/cases/151_rspamadm_async.robot | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/functional/cases/151_rspamadm_async.robot b/test/functional/cases/151_rspamadm_async.robot index 5a848d274..31fa84245 100644 --- a/test/functional/cases/151_rspamadm_async.robot +++ b/test/functional/cases/151_rspamadm_async.robot @@ -1,6 +1,6 @@ *** Settings *** -Test Setup Http Setup -Test Teardown Http Teardown +Test Setup Rspamadm test Setup +Test Teardown Rspamadm test Teardown Library Process Library ${TESTDIR}/lib/rspamd.py Resource ${TESTDIR}/lib/rspamd.robot @@ -18,15 +18,23 @@ Tcp client Should Be Equal As Integers ${result.rc} 0 Should Be Equal ${result.stdout} hello post +Redis client + ${result} = Run Process ${RSPAMADM} lua -b ${TESTDIR}/lua/rspamadm/test_redis_client.lua + Should Match Regexp ${result.stderr} ^$ + Should Be Equal As Integers ${result.rc} 0 + Should Be Equal ${result.stdout} true\thello from lua on redis + *** Keywords *** -Http Setup +Rspamadm test Setup Run Dummy Http + Run Redis -Http Teardown +Rspamadm test Teardown ${http_pid} = Get File /tmp/dummy_http.pid Shutdown Process With Children ${http_pid} Remove file /tmp/dummy_http.pid + Shutdown Process With Children ${REDIS_PID} Run Dummy Http [Arguments] |