diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-02 19:11:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-02 19:11:18 +0100 |
commit | 6f6a371987d351aa2cb6f14bf3ce6d235ced814f (patch) | |
tree | 6e3b1e4bd7e9e07bdcb9b7515d2e84170fa9dce0 /test | |
parent | 98a46bf694fba3a9130d5d6ce4a2399083423a15 (diff) | |
download | rspamd-6f6a371987d351aa2cb6f14bf3ce6d235ced814f.tar.gz rspamd-6f6a371987d351aa2cb6f14bf3ce6d235ced814f.zip |
Add encryption test.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/tests.bats | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/tests.bats b/test/functional/tests.bats index b9d71a2a5..147020077 100644 --- a/test/functional/tests.bats +++ b/test/functional/tests.bats @@ -12,6 +12,17 @@ RSPAMC="$BATS_TEST_DIRNAME/../../src/client/rspamc" echo $output | grep 'Action: reject' } +@test "Test rspamd encrypted using gtube" { + export RSPAMD_CONFIG="$BATS_TEST_DIRNAME/configs/trivial.conf" + run_rspamd + run ${RSPAMC} -h localhost:56789 \ + --key y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty \ + "$BATS_TEST_DIRNAME/messages/gtube.eml" + [ "$status" -eq 0 ] + + echo $output | grep 'Action: reject' +} + @test "Test rspamd spamc gtube" { export RSPAMD_CONFIG="$BATS_TEST_DIRNAME/configs/trivial.conf" run_rspamd |