| 1 |
*** Settings *** |
| 2 |
Library ${RSPAMD_TESTDIR}/lib/rspamd.py |
| 3 |
Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot |
| 4 |
Variables ${RSPAMD_TESTDIR}/lib/vars.py |
| 5 |
|
| 6 |
*** Variables *** |
| 7 |
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml |
| 8 |
${SETTINGS_DNS} {symbols_enabled = [SIMPLE_DNS, SIMPLE_DNS_SYNC]} |
| 9 |
|
| 10 |
*** Test Cases *** |
| 11 |
Simple DNS request |
| 12 |
Scan File ${MESSAGE} To-Resolve=example.com |
| 13 |
... Settings=${SETTINGS_DNS} |
| 14 |
Expect Symbol With Exact Options DNS_SYNC 93.184.216.34 |
| 15 |
Expect Symbol With Exact Options DNS 93.184.216.34 |
| 16 |
|
| 17 |
Faulty DNS request |
| 18 |
Scan File ${MESSAGE} To-Resolve=not-resolvable.com |
| 19 |
... Settings=${SETTINGS_DNS} |
| 20 |
Expect Symbol With Exact Options DNS_SYNC_ERROR requested record is not found |
| 21 |
Expect Symbol With Exact Options DNS_ERROR requested record is not found |