Instead of parsing a string representation, parse the native ACL entries
to construct the ACL mapping. This should yield better reliability.
Keep the existing logic in a renamed function, as it might still be useful
to parse existing string representations.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Add basic functionality for writing ACLs with user and group permissions
to a file.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Simplify YAML structure and parsing by removing the superfluous list
layer.
Add additional matrix entries to cover more user ACL constellations.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
The large amount of test data can be managed more easily if it is
contained in a separate file instead of being in the test code.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Map input ACLs for setfacl with expected pyacl output to allow for
an easily expandable test matrix.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Remove superfluous "acl_" prefix from function names, the module
is already called "acl".
Replace hardcoded test path with functions to parse a given file.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>