| 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 |
${GTUBE} ${RSPAMD_TESTDIR}/messages/gtube.eml |
| 8 |
${SETTINGS_NOSYMBOLS} {symbols_enabled = []} |
| 9 |
|
| 10 |
*** Test Cases *** |
| 11 |
Controller SSL - stat |
| 12 |
[Documentation] Fetch /stat over HTTPS from the controller SSL port |
| 13 |
@{result} = HTTPS GET ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_CONTROLLER_SSL} /stat |
| 14 |
Should Be Equal As Integers ${result}[0] 200 |
| 15 |
|
| 16 |
Controller SSL - errors |
| 17 |
[Documentation] Fetch /errors over HTTPS from the controller SSL port |
| 18 |
@{result} = HTTPS GET ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_CONTROLLER_SSL} /errors |
| 19 |
Should Be Equal As Integers ${result}[0] 200 |
| 20 |
|
| 21 |
Controller plain still works alongside SSL |
| 22 |
[Documentation] Plain HTTP controller port must still work when SSL port is also configured |
| 23 |
@{result} = HTTP GET ${RSPAMD_LOCAL_ADDR} ${RSPAMD_PORT_CONTROLLER} /stat |
| 24 |
Should Be Equal As Integers ${result}[0] 200 |
| 25 |
|
| 26 |
Normal worker SSL - checkv2 |
| 27 |
[Documentation] Scan a message via /checkv2 over HTTPS on the normal worker SSL port |
| 28 |
Scan File SSL ${GTUBE} Settings=${SETTINGS_NOSYMBOLS} |
| 29 |
Expect Symbol GTUBE |
| 30 |
|
| 31 |
Normal worker SSL - checkv3 |
| 32 |
[Documentation] Scan a message via /checkv3 over HTTPS on the normal worker SSL port |
| 33 |
Scan File V3 SSL ${GTUBE} Settings=${SETTINGS_NOSYMBOLS} |
| 34 |
Expect Symbol GTUBE |
| 35 |
|
| 36 |
Normal worker plain still works alongside SSL |
| 37 |
[Documentation] Plain HTTP normal port must still work when SSL port is also configured |
| 38 |
Scan File ${GTUBE} Settings=${SETTINGS_NOSYMBOLS} |
| 39 |
Expect Symbol GTUBE |