| 26 | | expected = {'VERSION' : ('S_ISREG', '0640', 'root', 'www-data'), |
| 27 | | 'cleverbox.ini' : ('S_ISREG', '0640', 'root', 'www-data'), |
| 28 | | 'clients-available' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| 29 | | 'clients-enabled' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| 30 | | 'projects-available' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| 31 | | 'projects-enabled' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| 32 | | 'profiles' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| 33 | | 'profiles/default' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| 34 | | 'profiles/default/trac-defaults.ini' : ('S_ISREG', '0640', 'root', 'www-data'), |
| 35 | | 'profiles/default/project.apache.conf' : ('S_ISREG', '0640', 'root', 'www-data'), |
| | 26 | expected = {'VERSION' : ('S_ISREG', '0640', 'root', 'www-data'), |
| | 27 | 'cleverbox.ini' : ('S_ISREG', '0640', 'root', 'www-data'), |
| | 28 | 'clients-available' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| | 29 | 'clients-enabled' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| | 30 | 'projects-available' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| | 31 | 'projects-enabled' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| | 32 | 'profiles' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| | 33 | 'profiles/default' : ('S_ISDIR', '0750', 'root', 'www-data'), |
| | 34 | 'profiles/default/trac-defaults.ini' : ('S_ISREG', '0640', 'root', 'www-data'), |
| | 35 | 'profiles/default/project.apache.conf' : ('S_ISREG', '0640', 'root', 'www-data'), |
| 54 | | assert uid == expected_uid, '"%s" owner is correct (expected %s, got %s)' % (entry, pwd.getpwuid(uid)[0], spec[2]) |
| 55 | | assert gid == expected_gid, '"%s" group is correct (expected %s, got %s)' % (entry, grp.getgrgid(uid)[0], spec[3]) |
| | 54 | assert uid == expected_uid, '"%s" owner is correct (expected %s, got %s)' % (entry, spec[2], pwd.getpwuid(uid)[0]) |
| | 55 | assert gid == expected_gid, '"%s" group is correct (expected %s, got %s)' % (entry, spec[3], grp.getgrgid(uid)[0]) |