aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/220_http.robot16
-rw-r--r--test/functional/cases/230_tcp.robot16
-rw-r--r--test/functional/cases/231_tcp_down.robot2
-rw-r--r--test/functional/cases/240_redis.robot1
4 files changed, 26 insertions, 9 deletions
diff --git a/test/functional/cases/220_http.robot b/test/functional/cases/220_http.robot
index 7166b2a56..b4292897e 100644
--- a/test/functional/cases/220_http.robot
+++ b/test/functional/cases/220_http.robot
@@ -15,25 +15,25 @@ ${RSPAMD_SCOPE} Test
*** Test Cases ***
Simple HTTP request
- Check url /request get HTTP_DNS_200 HTTP_200 method_get hello world
- Check url /request post HTTP_DNS_200 HTTP_200 method_post hello post
+ Check url /request get HTTP_DNS_200 HTTP_200 HTTP_CORO_DNS_200 HTTP_CORO_200 method_get hello world HTTP_CORO_200 (0.00)[hello world]
+ Check url /request post HTTP_DNS_200 HTTP_200 HTTP_CORO_DNS_200 HTTP_CORO_200 method_post hello post HTTP_CORO_DNS_200 (0.00)[hello post]
*** Test Cases ***
HTTP request 403
- Check url /error_403 get HTTP_DNS_403 HTTP_403 method_get
- Check url /error_403 post HTTP_DNS_403 HTTP_403 method_post
+ Check url /error_403 get HTTP_DNS_403 HTTP_403 HTTP_CORO_DNS_403 HTTP_CORO_403 method_get
+ Check url /error_403 post HTTP_DNS_403 HTTP_403 HTTP_CORO_DNS_403 HTTP_CORO_403 method_post
*** Test Cases ***
HTTP timeout
- Check url /timeout get HTTP_ERROR HTTP_ERROR method_get IO timeout
- Check url /timeout post HTTP_DNS_ERROR HTTP_ERROR method_post IO timeout
+ Check url /timeout get HTTP_ERROR HTTP_ERROR HTTP_CORO_DNS_ERROR HTTP_CORO_ERROR method_get IO timeout
+ Check url /timeout post HTTP_DNS_ERROR HTTP_ERROR HTTP_CORO_DNS_ERROR HTTP_CORO_ERROR method_post IO timeout
*** Test Cases ***
HTTP empty response
- Check url /empty get HTTP_ERROR HTTP_ERROR method_get IO read error: unexpected EOF
- Check url /empty post HTTP_DNS_ERROR HTTP_ERROR method_post IO read error: unexpected EOF
+ Check url /empty get HTTP_ERROR HTTP_ERROR HTTP_CORO_DNS_ERROR HTTP_CORO_ERROR method_get IO read error: unexpected EOF
+ Check url /empty post HTTP_DNS_ERROR HTTP_ERROR HTTP_CORO_DNS_ERROR HTTP_CORO_ERROR method_post IO read error: unexpected EOF
*** Keywords ***
diff --git a/test/functional/cases/230_tcp.robot b/test/functional/cases/230_tcp.robot
index b7828f84e..4d8b2fbd6 100644
--- a/test/functional/cases/230_tcp.robot
+++ b/test/functional/cases/230_tcp.robot
@@ -19,6 +19,22 @@ Simple TCP request
Check Rspamc ${result} HTTP_ASYNC_RESPONSE
Check Rspamc ${result} HTTP_ASYNC_RESPONSE_2
+
+Sync API TCP request
+ ${result} = Scan Message With Rspamc ${MESSAGE}
+ Check Rspamc ${result} HTTP_SYNC_RESPONSE
+ Check Rspamc ${result} HTTP_SYNC_RESPONSE_2
+ Check Rspamc ${result} hello world
+ Check Rspamc ${result} hello post
+
+Sync API TCP get request
+ Check url /request get HTTP_SYNC_EOF_get (0.00)[hello world]
+ Check url /content-length get HTTP_SYNC_CONTENT_get (0.00)[hello world]
+
+Sync API TCP post request
+ Check url /request post HTTP_SYNC_EOF_post (0.00)[hello post]
+ Check url /content-length post HTTP_SYNC_CONTENT_post (0.00)[hello post]
+
*** Keywords ***
Lua Setup
[Arguments] ${LUA_SCRIPT}
diff --git a/test/functional/cases/231_tcp_down.robot b/test/functional/cases/231_tcp_down.robot
index 6131bc9fb..f852724ad 100644
--- a/test/functional/cases/231_tcp_down.robot
+++ b/test/functional/cases/231_tcp_down.robot
@@ -19,7 +19,7 @@ Sync API TCP get request when server is down
[Documentation] We don't create HTTP server here, that's why
... all requests fail with "connection refused"
Check url /request get HTTP_ASYNC_RESPONSE (0.00)[Socket error detected: Connection refused]
-#Check url /content-length HTTP_SYNC_WRITE_ERROR (0.00)[Socket error detected: Connection refused]
+ Check url /content-length HTTP_SYNC_WRITE_ERROR (0.00)[Socket error detected: Connection refused]
*** Keywords ***
diff --git a/test/functional/cases/240_redis.robot b/test/functional/cases/240_redis.robot
index 83a8f28d5..cf73f59ad 100644
--- a/test/functional/cases/240_redis.robot
+++ b/test/functional/cases/240_redis.robot
@@ -20,6 +20,7 @@ ${MESSAGE} ${TESTDIR}/messages/spam_message.eml
Redis client
Redis SET test_key test value
${result} = Scan Message With Rspamc ${MESSAGE}
+ Check Rspamc ${result} REDIS (0.00)[hello from lua on redis]
Check Rspamc ${result} REDIS_ASYNC (0.00)[test value]
Check Rspamc ${result} REDIS_ASYNC201809 (0.00)[test value]