diff options
Diffstat (limited to 'test/functional/cases/330_neural.robot')
-rw-r--r-- | test/functional/cases/330_neural.robot | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/test/functional/cases/330_neural.robot b/test/functional/cases/330_neural.robot index c64e9cc0a..89ba19f11 100644 --- a/test/functional/cases/330_neural.robot +++ b/test/functional/cases/330_neural.robot @@ -16,11 +16,12 @@ ${RSPAMD_SCOPE} Suite *** Test Cases *** Train Sleep 2s Wait for redis mess - : FOR ${INDEX} IN RANGE 0 10 - \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]} - \ Check Rspamc ${result} SPAM_SYMBOL (1.00) - \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]} - \ Check Rspamc ${result} HAM_SYMBOL (-1.00) + FOR ${INDEX} IN RANGE 0 10 + ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]} + Check Rspamc ${result} SPAM_SYMBOL (1.00) + ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]} + Check Rspamc ${result} HAM_SYMBOL (-1.00) + END Check Neural HAM Sleep 2s Wait for neural to be loaded @@ -35,11 +36,12 @@ Check Neural SPAM Train INVERSE - : FOR ${INDEX} IN RANGE 0 10 - \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]; SPAM_SYMBOL = -1} - \ Check Rspamc ${result} SPAM_SYMBOL (-1.00) - \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]; HAM_SYMBOL = 1;} - \ Check Rspamc ${result} HAM_SYMBOL (1.00) + FOR ${INDEX} IN RANGE 0 10 + ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]; SPAM_SYMBOL = -1} + Check Rspamc ${result} SPAM_SYMBOL (-1.00) + ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]; HAM_SYMBOL = 1;} + Check Rspamc ${result} HAM_SYMBOL (1.00) + END Check Neural HAM INVERSE Sleep 2s Wait for neural to be loaded |