aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/learn_siphash.sh
blob: a91fe9ae91e19796930ed4e4fd80ad81d3f632e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Test rspamd learn using siphash

. ${TEST_DIRNAME}/functions.sh

export RSPAMD_CONFIG="$TEST_DIRNAME/configs/stats.conf" \
	STATSDIR=${TMPDIR} \
	STATS_HASH="siphash"

run_rspamd
run_rspamc learn_spam \
	 --key y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty \
	"$BATS_TEST_DIRNAME/messages/spam_message.eml"
check_output $output 'success.*true'
	
run_rspamc symbols \
	 --key y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty \
	"$BATS_TEST_DIRNAME/messages/spam_message.eml"
check_output $output 'BAYES_SPAM'