diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-28 20:18:37 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-28 20:18:37 +0000 |
commit | 1ac38c40153c947e6b4ae87ce191a766a4bfacdb (patch) | |
tree | 7a4635650af4dc588520afdbcaeaa204a7ae6d81 /test/functional/lua/redis.lua | |
parent | 8c44b934303bbc2a983398addf8cc001fe74c8e9 (diff) | |
download | rspamd-1ac38c40153c947e6b4ae87ce191a766a4bfacdb.tar.gz rspamd-1ac38c40153c947e6b4ae87ce191a766a4bfacdb.zip |
[Test] Remove more broken tests
Diffstat (limited to 'test/functional/lua/redis.lua')
-rw-r--r-- | test/functional/lua/redis.lua | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/test/functional/lua/redis.lua b/test/functional/lua/redis.lua index e4512b5e4..075660063 100644 --- a/test/functional/lua/redis.lua +++ b/test/functional/lua/redis.lua @@ -2,17 +2,11 @@ -- Just a test for Redis API --]] -local logger = require "rspamd_logger" local redis_lua = require "lua_redis" local redis_params local N = 'redis_test' -local lua_script = [[ -local f = function() end -return "hello from lua on redis" -]] - local function redis_simple_async_symbol(task) local function redis_cb(err, data) if err then @@ -23,12 +17,12 @@ local function redis_simple_async_symbol(task) end redis_lua.rspamd_redis_make_request( - task, + task, redis_params, "test_key", false, redis_cb, - 'GET', + 'GET', {'test_key'} ) end @@ -47,12 +41,12 @@ local function redis_simple_async_api201809(task) callback = redis_cb } local request = { - 'GET', + 'GET', 'test_key' } redis_lua.request(redis_params, attrs, request) end - +--[[ local function redis_symbol(task) local attrs = {task = task} @@ -87,7 +81,7 @@ local function redis_symbol(task) task:insert_result('REDIS', 1.0, data) end - +--]] redis_params = rspamd_parse_redis_server(N) rspamd_config:register_symbol({ @@ -103,7 +97,7 @@ rspamd_config:register_symbol({ callback = redis_simple_async_api201809, no_squeeze = true }) - +--[[ rspamd_config:register_symbol({ name = 'REDIS_TEST', score = 1.0, |