mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Sort the perms
This commit is contained in:
parent
b4caaad4a0
commit
b8fa7d33a5
2 changed files with 8 additions and 7 deletions
|
@ -931,6 +931,7 @@ def dacl(obj_name=None, obj_type='file'):
|
|||
if ace[1] & perm == perm:
|
||||
ace_perms.append(
|
||||
self.ace_perms[obj_type]['advanced'][perm])
|
||||
ace_perms.sort()
|
||||
|
||||
# If still nothing, it must be undefined
|
||||
if not ace_perms:
|
||||
|
|
|
@ -295,10 +295,10 @@ class WinDaclRegTestCase(TestCase, LoaderModuleMockMixin):
|
|||
'NETWORK SERVICE': {
|
||||
'deny': {
|
||||
'applies to': 'This key and subkeys',
|
||||
'permissions': ['Set Value',
|
||||
'Delete',
|
||||
'Write Owner',
|
||||
'Write DAC']}}}}
|
||||
'permissions': ['Delete',
|
||||
'Set Value',
|
||||
'Write DAC',
|
||||
'Write Owner']}}}}
|
||||
self.assertDictEqual(
|
||||
win_dacl.get_permissions(
|
||||
obj_name=self.obj_name,
|
||||
|
@ -595,10 +595,10 @@ class WinDaclFileTestCase(TestCase, LoaderModuleMockMixin):
|
|||
'NETWORK SERVICE': {
|
||||
'deny': {
|
||||
'applies to': 'Not Inherited (file)',
|
||||
'permissions': ['Delete',
|
||||
'permissions': ['Change permissions',
|
||||
'Create files / write data',
|
||||
'Write attributes',
|
||||
'Change permissions']}}}}
|
||||
'Delete',
|
||||
'Write attributes']}}}}
|
||||
self.assertDictEqual(
|
||||
win_dacl.get_permissions(
|
||||
obj_name=self.obj_name,
|
||||
|
|
Loading…
Add table
Reference in a new issue