diff options
author | Sloane Hertel <19572925+s-hertel@users.noreply.github.com> | 2023-04-27 13:19:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 13:19:37 -0400 |
commit | d18d4f84ecb28547220642b39bde08fd47615f0d (patch) | |
tree | df2c7cadd2000b16e0fcd727cc068d749630920d /test/units | |
parent | ed749cf0a02306e82cbd95f01f05697c77fc30b4 (diff) | |
download | ansible-d18d4f84ecb28547220642b39bde08fd47615f0d.tar.gz |
_symbolic_mode_to_octal- fix raising ValueError for invalid symbolic modes (#80449)
validate the full user and perm strings instead of just first character
fixes unhelpful unarchive error for some invalid modes
Diffstat (limited to 'test/units')
-rw-r--r-- | test/units/modules/test_copy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/modules/test_copy.py b/test/units/modules/test_copy.py index 9de86118ae..beeef6d72c 100644 --- a/test/units/modules/test_copy.py +++ b/test/units/modules/test_copy.py @@ -192,6 +192,10 @@ UMASK_DATA = ( INVALID_DATA = ( (0o040000, u'a=foo', "bad symbolic permission for mode: a=foo"), (0o040000, u'f=rwx', "bad symbolic permission for mode: f=rwx"), + (0o100777, u'of=r', "bad symbolic permission for mode: of=r"), + + (0o100777, u'ao=r', "bad symbolic permission for mode: ao=r"), + (0o100777, u'oa=r', "bad symbolic permission for mode: oa=r"), ) |