summaryrefslogtreecommitdiff
path: root/test/data/usr/local/share/polkit-1/rules.d/25-testing.rules
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/usr/local/share/polkit-1/rules.d/25-testing.rules')
-rw-r--r--test/data/usr/local/share/polkit-1/rules.d/25-testing.rules39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/data/usr/local/share/polkit-1/rules.d/25-testing.rules b/test/data/usr/local/share/polkit-1/rules.d/25-testing.rules
new file mode 100644
index 0000000..df373b6
--- /dev/null
+++ b/test/data/usr/local/share/polkit-1/rules.d/25-testing.rules
@@ -0,0 +1,39 @@
+/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */
+
+/* see test/polkitbackend/test-polkitbackendjsauthority.c */
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "net.company.order0") {
+ return polkit.Result.NO; // earlier rule should win
+ }
+});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "net.company.order1") {
+ return polkit.Result.NO; // earlier rule should win
+ }
+});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "net.company.order2") {
+ 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.NO; // earlier rule should win
+ }
+});
+
+polkit.addRule(function(action, subject) {
+ if (action.id == "net.company.order5") {
+ return polkit.Result.NO; // earlier rule should win
+ }
+});