diff options
Diffstat (limited to 'test/data/usr/share/polkit-1/rules.d/10-testing.rules')
-rw-r--r-- | test/data/usr/share/polkit-1/rules.d/10-testing.rules | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/data/usr/share/polkit-1/rules.d/10-testing.rules b/test/data/usr/share/polkit-1/rules.d/10-testing.rules index ab2fd97..48c4957 100644 --- a/test/data/usr/share/polkit-1/rules.d/10-testing.rules +++ b/test/data/usr/share/polkit-1/rules.d/10-testing.rules @@ -3,3 +3,17 @@ /* see test/polkitbackend/test-polkitbackendjsauthority.c */ /* NOTE: this is the /usr/share/polkit-1/rules.d version of 10-testing.rules */ + +polkit.addRule(function(action, subject, details) { + if (action == "net.company.order0") { + details["test_detail"] = "c"; + return "yes"; + } +}); + +polkit.addRule(function(action, subject, details) { + if (action == "net.company.order1") { + details["test_detail"] = "b"; + return "yes"; + } +}); |