${result} = Scan Message With Rspamc ${URL4}
Check Rspamc ${result} REDIS_URL_RE_TLD inverse=1
+MAP - REDIS - URL NOFILTER - HIT
+ Redis HSET urlnofilter www.example.net ${EMPTY}
+ ${result} = Scan Message With Rspamc ${URL5}
+ Check Rspamc ${result} REDIS_URL_NOFILTER
+
+MAP - REDIS - URL NOFILTER - MISS
+ ${result} = Scan Message With Rspamc ${URL4}
+ Check Rspamc ${result} REDIS_URL_NOFILTER inverse=1
+
*** Keywords ***
Multimap Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/multimap.conf
${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
*** Test Cases ***
-Scan Message
+Rspamc Client
${result} = Run Rspamc -h ${LOCAL_ADDR}:${PORT_PROXY} -p ${MESSAGE}
Custom Follow Rspamd Log ${PROXY_TMPDIR}/rspamd.log ${PROXY_LOGPOS} PROXY_LOGPOS Suite
Custom Follow Rspamd Log ${SLAVE_TMPDIR}/rspamd.log ${SLAVE_LOGPOS} SLAVE_LOGPOS Suite
Should Contain ${result.stdout} SIMPLE_TEST
Should Be Equal As Integers ${result.rc} 0
+SPAMC
+ ${result} = Spamc ${LOCAL_ADDR} ${PORT_PROXY} ${MESSAGE}
+ Custom Follow Rspamd Log ${PROXY_TMPDIR}/rspamd.log ${PROXY_LOGPOS} PROXY_LOGPOS Suite
+ Custom Follow Rspamd Log ${SLAVE_TMPDIR}/rspamd.log ${SLAVE_LOGPOS} SLAVE_LOGPOS Suite
+ Should Contain ${result} SIMPLE_TEST
+
+RSPAMC Legacy Protocol
+ ${result} = Rspamc ${LOCAL_ADDR} ${PORT_PROXY} ${MESSAGE}
+ Custom Follow Rspamd Log ${PROXY_TMPDIR}/rspamd.log ${PROXY_LOGPOS} PROXY_LOGPOS Suite
+ Custom Follow Rspamd Log ${SLAVE_TMPDIR}/rspamd.log ${SLAVE_LOGPOS} SLAVE_LOGPOS Suite
+ Should Contain ${result} SIMPLE_TEST
+
*** Keywords ***
Proxy Setup
&{d} = Run Rspamd CONFIG=${TESTDIR}/configs/lua_test.conf