summaryrefslogtreecommitdiff
path: root/test/data/usr/share/polkit-1/rules.d/20-testing.rules
diff options
context:
space:
mode:
authorJan Rybar <jrybar@redhat.com>2021-02-25 18:34:30 +0000
committerJan Rybar <jrybar@redhat.com>2021-02-25 18:34:30 +0000
commitf1979ce4ceb34d1140e759ec920d0cd2532993d3 (patch)
tree12b44b9e19ccb6f2a120ba16e6f8e055c970a258 /test/data/usr/share/polkit-1/rules.d/20-testing.rules
parent6e8b2263200d5b95b88b26ab10adfb3d5eb66b6d (diff)
downloadpolkit-f1979ce4ceb34d1140e759ec920d0cd2532993d3.tar.gz
test: Fix a typo in a comment
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'test/data/usr/share/polkit-1/rules.d/20-testing.rules')
-rw-r--r--test/data/usr/share/polkit-1/rules.d/20-testing.rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/data/usr/share/polkit-1/rules.d/20-testing.rules b/test/data/usr/share/polkit-1/rules.d/20-testing.rules
index 071f135..802577f 100644
--- a/test/data/usr/share/polkit-1/rules.d/20-testing.rules
+++ b/test/data/usr/share/polkit-1/rules.d/20-testing.rules
@@ -19,3 +19,15 @@ polkit.addRule(function(action, subject) {
return polkit.Result.NO; // earlier rule should win
}
});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "net.company.order3") {
+ return polkit.Result.NO; // earlier rule should win
+ }
+});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "net.company.order4") {
+ return polkit.Result.YES;
+ }
+});