-
Notifications
You must be signed in to change notification settings - Fork 50
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
e64f6a7
commit e55daf3
Showing
60 changed files
with
87 additions
and
11 deletions.
There are no files selected for viewing
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:local40admin1","unix-user:local40admin2","unix-user:[email protected]"]; | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...cal_admins_with_previous_local_admin_conf_and_set_client_admins/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.
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]"]; | ||
}); |
7 changes: 7 additions & 0 deletions
7
...cal_admins_with_previous_local_admin_conf_and_set_client_admins/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.
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-group:[email protected]"]; | ||
return ["unix-group:[email protected]"]; | ||
}); |
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]","unix-group:[email protected]"]; | ||
return ["unix-user:[email protected]","unix-group:[email protected]"]; | ||
}); |
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]","unix-user:bob@domain","unix-user:carole [email protected]"]; | ||
return ["unix-user:[email protected]","unix-user:bob@domain","unix-user:carole [email protected]"]; | ||
}); |
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]"]; | ||
}); |
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"]; | ||
}); |