Check configured maximum user login length on user rename.

ticket 2587
This commit is contained in:
Jan Cholasta
2012-04-03 09:23:39 -04:00
committed by Rob Crittenden
parent 7471ba2237
commit dcea80fc17
2 changed files with 17 additions and 0 deletions

View File

@@ -685,6 +685,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=(