-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Update tests golden files and assets
- Loading branch information
1 parent
0707b7e
commit 49185ad
Showing
118 changed files
with
129 additions
and
23 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...dmin_conf_(simple)_and_set_client_admins/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
..._(with_adsys_file)_and_set_client_admins/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
7 changes: 7 additions & 0 deletions
7
...dmin_conf_and_set_client_admins/etc/polkit-1/rules.d/00-adsys-privilege-enforcement.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
polkit.addAdminRule(function(action, subject){ | ||
return ["unix-user:local40admin1","unix-user:local40admin2","unix-user:[email protected]"]; | ||
}); |
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...admins_with_previous_local_admin_conf_and_set_client_admins/etc/sudoers.d/40-local-admins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"[email protected]" ALL=(ALL:ALL) ALL | ||
|
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...s_local_admin_conf_and_set_client_admins/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...n_new_polkit_version_and_remove_old_file/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
# Any changes will be overwritten. | ||
|
||
polkit.addAdminRule(function(action, subject){ | ||
return ["unix-group:sudo","unix-group:admin","unix-user:[email protected]"]; | ||
return ["unix-user:[email protected]"]; | ||
}); |
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...admins_with_previous_local_admin_conf_and_set_client_admins/etc/sudoers.d/40-local-admins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"[email protected]" ALL=(ALL:ALL) ALL | ||
|
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...s_local_admin_conf_and_set_client_admins/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...den/don't_overwrite_other_existing_files/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...den/no_rules_still_overwrite_those_files/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...ta/TestApplyPolicy/golden/not_a_computer/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...cy/golden/overwrite_existing_polkit_file/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...y/golden/overwrite_existing_sudoers_file/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
# Any changes will be overwritten. | ||
|
||
polkit.addAdminRule(function(action, subject){ | ||
return ["unix-group:sudo","unix-group:admin","unix-user:alice@domain.com"]; | ||
return ["unix-group:[email protected]"]; | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
# Any changes will be overwritten. | ||
|
||
polkit.addAdminRule(function(action, subject){ | ||
return ["unix-group:sudo","unix-group:admin","unix-user:alice@domain.com"]; | ||
return ["unix-user:[email protected]","unix-group:group@domain.com"]; | ||
}); |
File renamed without changes.
7 changes: 0 additions & 7 deletions
7
...t_mixed_with_users_and_group_admins/polkit-1/rules.d/00-adsys-privilege-enforcement.rules
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...et_client_multiple_users_admins/etc/polkit-1/rules.d/00-adsys-privilege-enforcement.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
polkit.addAdminRule(function(action, subject){ | ||
return ["unix-user:[email protected]","unix-user:bob@domain","unix-user:carole [email protected]"]; | ||
}); |
File renamed without changes.
7 changes: 0 additions & 7 deletions
7
...en/set_client_multiple_users_admins/polkit-1/rules.d/00-adsys-privilege-enforcement.rules
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ege/testdata/TestPolkitAdminIdentitiesFromRules/golden/consider_only_first_returned_value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"unix-user:local50admin1","unix-user:local50admin2" | ||
"unix-user:local40admin1","unix-user:local40admin2" |
2 changes: 1 addition & 1 deletion
2
...vilege/testdata/TestPolkitAdminIdentitiesFromRules/golden/fetch_previous_admin_identities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"unix-user:local50admin1","unix-user:local50admin2" | ||
"unix-user:local40admin1","unix-user:local40admin2" |
File renamed without changes.
File renamed without changes.
Empty file.
3 changes: 3 additions & 0 deletions
3
...licies/privilege/testdata/existing-files/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...ivilege/testdata/existing-old-adsys-conf/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.../privilege/testdata/existing-other-files/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...ies/privilege/testdata/existing-previous-local-admins-multi/etc/sudoers.d/40-local-admins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"[email protected]" ALL=(ALL:ALL) ALL | ||
|
7 changes: 7 additions & 0 deletions
7
...ies/privilege/testdata/existing-previous-local-admins-multi/etc/sudoers.d/50-local-admins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"[email protected]" ALL=(ALL:ALL) ALL | ||
|
3 changes: 3 additions & 0 deletions
3
...ata/existing-previous-local-admins-multi/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...icies/privilege/testdata/existing-previous-local-admins-one/etc/sudoers.d/40-local-admins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"[email protected]" ALL=(ALL:ALL) ALL | ||
|
3 changes: 3 additions & 0 deletions
3
...tdata/existing-previous-local-admins-one/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...sting-previous-local-admins-return-early/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...ege/testdata/existing-previous-local-admins-with-adsys-file/etc/sudoers.d/40-local-admins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"[email protected]" ALL=(ALL:ALL) ALL | ||
|
7 changes: 7 additions & 0 deletions
7
...ege/testdata/existing-previous-local-admins-with-adsys-file/etc/sudoers.d/50-local-admins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"[email protected]" ALL=(ALL:ALL) ALL | ||
|
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...ng-previous-local-admins-with-adsys-file/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...testdata/incorrect-policikit-conf-is-dir/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
3 changes: 3 additions & 0 deletions
3
.../privilege/testdata/only-base-polkit-dir/usr/share/polkit-1/rules.d/49-ubuntu-admin.rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
polkit.addAdminRule(function(action, subject) { | ||
return ["unix-group:sudo", "unix-group:admin"]; | ||
}); |