diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-04-03 09:23:39 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-04-08 17:10:39 -0400 |
commit | dcea80fc1700aff5a87e3f3bff442e80455243a0 (patch) | |
tree | e6578859de1b0298d15209bf81b1fa999591409c /tests | |
parent | 7471ba22370626b26413c0f861c4ebb4a7128948 (diff) | |
download | freeipa.git-dcea80fc1700aff5a87e3f3bff442e80455243a0.tar.gz freeipa.git-dcea80fc1700aff5a87e3f3bff442e80455243a0.tar.xz freeipa.git-dcea80fc1700aff5a87e3f3bff442e80455243a0.zip |
Check configured maximum user login length on user rename.
ticket 2587
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_xmlrpc/test_user_plugin.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_user_plugin.py b/tests/test_xmlrpc/test_user_plugin.py index 8bd2d163..3fcd10a1 100644 --- a/tests/test_xmlrpc/test_user_plugin.py +++ b/tests/test_xmlrpc/test_user_plugin.py @@ -686,6 +686,13 @@ class test_user(Declarative): dict( + desc='Try to rename to a username that is too long %r' % user1, + command=('user_mod', [user1], dict(rename=invaliduser2)), + expected=errors.ValidationError(name='uid', error='can be at most 33 characters'), + ), + + + dict( desc='Create %r' % group1, command=( 'group_add', [group1], dict(description=u'Test desc') |