diff options
author | Andrew Lewis <nerf@judo.za.org> | 2023-12-06 14:30:14 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2023-12-06 14:30:14 +0200 |
commit | 356574a219e1b5ac22017d9d152e9b48fde6fe25 (patch) | |
tree | bbc9794eb90a73fdbd3b00815c2a21c9d5865d7c /test/functional/lua | |
parent | a301805803dff09f2819cabb3f7e5c7e9f64d14f (diff) | |
download | rspamd-356574a219e1b5ac22017d9d152e9b48fde6fe25.tar.gz rspamd-356574a219e1b5ac22017d9d152e9b48fde6fe25.zip |
[Test] Exercise rspamadm lua logger in functional tests
Diffstat (limited to 'test/functional/lua')
-rw-r--r-- | test/functional/lua/rspamadm/test_batch.lua | 5 | ||||
-rw-r--r-- | test/functional/lua/rspamadm/test_verbose.lua | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/lua/rspamadm/test_batch.lua b/test/functional/lua/rspamadm/test_batch.lua index e75154b7c..dd50c9db5 100644 --- a/test/functional/lua/rspamadm/test_batch.lua +++ b/test/functional/lua/rspamadm/test_batch.lua @@ -1 +1,4 @@ -print("hello world")
\ No newline at end of file +local rspamd_logger = require "rspamd_logger" + +rspamd_logger.info(rspamd_config, "nope") +rspamd_logger.err(rspamd_config, "hello world") diff --git a/test/functional/lua/rspamadm/test_verbose.lua b/test/functional/lua/rspamadm/test_verbose.lua new file mode 100644 index 000000000..4470c63e2 --- /dev/null +++ b/test/functional/lua/rspamadm/test_verbose.lua @@ -0,0 +1,3 @@ +local rspamd_logger = require "rspamd_logger" + +rspamd_logger.info(rspamd_config, "hello world") |