| 1 |
*** Settings *** |
| 2 |
Suite Setup UDP Setup |
| 3 |
Suite Teardown UDP Teardown |
| 4 |
Library Process |
| 5 |
Library ${RSPAMD_TESTDIR}/lib/rspamd.py |
| 6 |
Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot |
| 7 |
Variables ${RSPAMD_TESTDIR}/lib/vars.py |
| 8 |
|
| 9 |
*** Variables *** |
| 10 |
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml |
| 11 |
${SETTINGS_UDP} {symbols_enabled = [UDP_FAIL,UDP_SENDTO,UDP_SUCCESS]} |
| 12 |
|
| 13 |
*** Test Cases *** |
| 14 |
Simple UDP request |
| 15 |
Scan File ${MESSAGE} |
| 16 |
... Settings=${SETTINGS_UDP} |
| 17 |
Expect Symbol With Exact Options UDP_SUCCESS helloworld |
| 18 |
|
| 19 |
Sendonly UDP request |
| 20 |
Scan File ${MESSAGE} |
| 21 |
... Settings=${SETTINGS_UDP} |
| 22 |
Expect Symbol UDP_SENDTO |
| 23 |
|
| 24 |
Errored UDP request |
| 25 |
Scan File ${MESSAGE} |
| 26 |
... Settings=${SETTINGS_UDP} |
| 27 |
Expect Symbol With Exact Options UDP_FAIL read timeout |
| 28 |
|
| 29 |
*** Keywords *** |
| 30 |
UDP Setup |
| 31 |
Run Dummy UDP |
| 32 |
|
| 33 |
UDP Teardown |
| 34 |
Terminate Process ${DUMMY_UDP_PROC} |
| 35 |
Wait For Process ${DUMMY_UDP_PROC} |
| 36 |
|
| 37 |
Run Dummy UDP |
| 38 |
[Arguments] |
| 39 |
${result} = Start Process ${RSPAMD_TESTDIR}/util/dummy_udp.py 5005 |
| 40 |
Wait Until Created /tmp/dummy_udp.pid |
| 41 |
Set Suite Variable ${DUMMY_UDP_PROC} ${result} |