summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-05-15 16:24:54 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-05-15 16:24:54 +0100
commite02eafd845f786282559e11118a05cad41c09404 (patch)
treed0d4debbab8721c96163364e1414f6ff73f0832b
parentc6a0bb10528a05db9153f6987f3d73f791e782bd (diff)
downloadlace-e02eafd845f786282559e11118a05cad41c09404.tar.gz
Add use of anyof and allof to the complex engine test
-rw-r--r--test/test-lace.engine-complexruleset-definitions.rules3
-rw-r--r--test/test-lace.engine-complexruleset.rules4
2 files changed, 6 insertions, 1 deletions
diff --git a/test/test-lace.engine-complexruleset-definitions.rules b/test/test-lace.engine-complexruleset-definitions.rules
index 7feea7b..db67502 100644
--- a/test/test-lace.engine-complexruleset-definitions.rules
+++ b/test/test-lace.engine-complexruleset-definitions.rules
@@ -1,3 +1,6 @@
define first equal state one
define second equal state two
define third equal state three
+
+define any_first_second_third anyof first second third
+define all_first_second_third allof first second third
diff --git a/test/test-lace.engine-complexruleset.rules b/test/test-lace.engine-complexruleset.rules
index ad3c449..cfe12c9 100644
--- a/test/test-lace.engine-complexruleset.rules
+++ b/test/test-lace.engine-complexruleset.rules
@@ -10,10 +10,12 @@ default deny "four"
include complexruleset-definitions
-allow one first
+allow one first any_first_second_third
include complexruleset-allowsecond second
+allow whatever all_first_second_third
+
deny three third
-- Expect four denial, despite last action being a deny