aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/109_composites.robot
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-15 15:49:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-15 15:49:58 +0100
commit5dfabf334545326059c7b652cae9e0789c965e9f (patch)
tree0a92133be579b083be3744d120667d38e5341b13 /test/functional/cases/109_composites.robot
parent9c8d32c7a237d889153d0bc3a444d568195eaabf (diff)
downloadrspamd-5dfabf334545326059c7b652cae9e0789c965e9f.tar.gz
rspamd-5dfabf334545326059c7b652cae9e0789c965e9f.zip
[Test] Add options in composites tests
Diffstat (limited to 'test/functional/cases/109_composites.robot')
-rw-r--r--test/functional/cases/109_composites.robot20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/cases/109_composites.robot b/test/functional/cases/109_composites.robot
index d24c505e9..1216e4c88 100644
--- a/test/functional/cases/109_composites.robot
+++ b/test/functional/cases/109_composites.robot
@@ -63,3 +63,23 @@ Composites - Symbol groups
Should Contain ${result.stdout} ANY_A (-1.00)
Should Contain ${result.stdout} NEGATIVE_B (1.00)
Should Not Contain ${result.stdout} NEGATIVE_A
+
+Composites - Opts Plain
+ ${result} = Scan Message With Rspamc ${MESSAGE} --header=opts:sym1
+ Check Rspamc ${result} SYMOPTS1 (5.00)
+ Should Not Contain ${result.stdout} SYMOPTS2
+
+Composites - Opts RE Miss one
+ ${result} = Scan Message With Rspamc ${MESSAGE} --header=opts:sym1,foo1
+ Check Rspamc ${result} SYMOPTS1 (5.00)
+ Should Not Contain ${result.stdout} SYMOPTS2
+
+Composites - Opts RE Miss both
+ ${result} = Scan Message With Rspamc ${MESSAGE} --header=opts:sym2
+ Should Not Contain ${result.stdout} SYMOPTS1
+ Should Not Contain ${result.stdout} SYMOPTS2
+
+Composites - Opts RE Hit
+ ${result} = Scan Message With Rspamc ${MESSAGE} --header=opts:sym2,foo1
+ Check Rspamc ${result} SYMOPTS2 (6.00)
+ Should Not Contain ${result.stdout} SYMOPTS1 \ No newline at end of file