diff options
author | Jan Rybar <jrybar@redhat.com> | 2021-04-13 16:56:11 +0000 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2021-04-13 16:56:11 +0000 |
commit | 7dd61b9ccf44a4811ae1257d9ff4fecfd40894bd (patch) | |
tree | d39df4d83361122ef2395867010145eff34367d8 /test/data | |
parent | 2c8287fbd55c5d092370428a1bdbbf0a9fd7d537 (diff) | |
download | polkit-revert-2c8287fb.tar.gz |
Revert "Merge branch 'pwithnall/polkit-51-usr-local-share-is-my-homeboy' into 'master'"revert-2c8287fb
This reverts merge request !75
Diffstat (limited to 'test/data')
5 files changed, 0 insertions, 87 deletions
diff --git a/test/data/etc/polkit-1/rules.d/15-testing.rules b/test/data/etc/polkit-1/rules.d/15-testing.rules index b1ae6dd..00e214b 100644 --- a/test/data/etc/polkit-1/rules.d/15-testing.rules +++ b/test/data/etc/polkit-1/rules.d/15-testing.rules @@ -16,12 +16,6 @@ polkit.addRule(function(action, subject) { 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.YES; } }); diff --git a/test/data/usr/local/share/polkit-1/rules.d/10-testing.rules b/test/data/usr/local/share/polkit-1/rules.d/10-testing.rules deleted file mode 100644 index cf3cf26..0000000 --- a/test/data/usr/local/share/polkit-1/rules.d/10-testing.rules +++ /dev/null @@ -1,24 +0,0 @@ -/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */ - -/* see test/polkitbackend/test-polkitbackendjsauthority.c */ - -/* NOTE: this is the /usr/local/share/polkit-1/rules.d version of 10-testing.rules */ - -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.YES; - } -}); - 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 deleted file mode 100644 index df373b6..0000000 --- a/test/data/usr/local/share/polkit-1/rules.d/25-testing.rules +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- 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 - } -}); 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 5650945..1d553f6 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 @@ -12,12 +12,6 @@ polkit.addRule(function(action, subject) { 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.YES; } }); 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 802577f..071f135 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,15 +19,3 @@ 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; - } -}); |