Compare commits

..

No commits in common. "1db59c0e614f00a09a3f9daa69afa400415e5872" and "7fe8afba38a2e6bd721b5f0819b8093b679c2236" have entirely different histories.

3 changed files with 47 additions and 105 deletions

View File

@ -52,7 +52,7 @@ def parse_permission(strpermission):
permap_s = { permap_s = {
'r': 'read', 'r': 'read',
'w': 'write', 'w': 'write',
'x': 'execute', 'e': 'execute',
} }
outmap = DEFAULT_PERMISSIONS.copy() outmap = DEFAULT_PERMISSIONS.copy()

View File

@ -1,5 +1,5 @@
--- ---
user:user:r: - user:user:r:
user: user:
user: user:
read: true read: true
@ -20,7 +20,7 @@ user:user:r:
read: true read: true
write: false write: false
execute: false execute: false
user:user:-w-: - user:user:-w-:
user: user:
user: user:
read: false read: false
@ -41,66 +41,3 @@ user:user:-w-:
read: true read: true
write: false write: false
execute: false execute: false
user:user:--x:
user:
user:
read: false
write: false
execute: true
group:
null:
read: true
write: false
execute: false
mask:
null:
read: true
write: false
execute: true
other:
null:
read: true
write: false
execute: false
user:user:r-x:
user:
user:
read: true
write: false
execute: true
group:
null:
read: true
write: false
execute: false
mask:
null:
read: true
write: false
execute: true
other:
null:
read: true
write: false
execute: false
user:user:rwx:
user:
user:
read: true
write: true
execute: true
group:
null:
read: true
write: false
execute: false
mask:
null:
read: true
write: true
execute: true
other:
null:
read: true
write: false
execute: false

View File

@ -20,7 +20,12 @@ def load_yaml(file):
with open(join(dirname(__file__), file)) as fh: with open(join(dirname(__file__), file)) as fh:
data = safe_load(fh) data = safe_load(fh)
return list(data.items()) out = []
for entry in data:
out.append(tuple(entry.items())[0])
return out
@mark.parametrize('aclin, aclout', load_yaml('matrix.yaml')) @mark.parametrize('aclin, aclout', load_yaml('matrix.yaml'))