| 1 |
*** Variables *** |
| 2 |
${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat |
| 3 |
|
| 4 |
*** Keywords *** |
| 5 |
Stat Test |
| 6 |
@{result} = HTTP GET ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_CONTROLLER} /stat |
| 7 |
Check JSON ${result}[1] |
| 8 |
Should Be Equal As Integers ${result}[0] 200 |
| 9 |
|
| 10 |
History Test |
| 11 |
[Arguments] ${rspamc_expected_result} |
| 12 |
${result} = Scan Message With Rspamc ${MESSAGE} |
| 13 |
Check Rspamc ${result} ${rspamc_expected_result} |
| 14 |
@{result} = HTTP GET ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_CONTROLLER} /history |
| 15 |
Check JSON ${result}[1] |
| 16 |
Should Be Equal As Integers ${result}[0] 200 |
| 17 |
|
| 18 |
Scan Test |
| 19 |
${content} = Get File ${MESSAGE} |
| 20 |
@{result} = HTTP POST ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_NORMAL} /check ${content} |
| 21 |
Check JSON ${result}[1] |
| 22 |
Should Be Equal As Integers ${result}[0] 200 |