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>
To make the logic more resilient towards potential errors or future
output changes, not only consider the string index but also validate
it against a set of expected positions.
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>
For a better code style:
- consistent trailing commas
- use constant instead of repeated "magic" values
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>