mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Test fixed modlist generation code
https://fedorahosted.org/freeipa/ticket/4138 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
c0c38ed314
commit
fa5cbe7cb2
@ -278,6 +278,12 @@ class test_attr(Declarative):
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
dict(
|
||||||
|
desc='Try to "remove" empty location from %r' % user1,
|
||||||
|
command=('user_mod', [user1], dict(l=None)),
|
||||||
|
expected=errors.EmptyModlist(),
|
||||||
|
),
|
||||||
|
|
||||||
dict(
|
dict(
|
||||||
desc='Lock %r using setattr' % user1,
|
desc='Lock %r using setattr' % user1,
|
||||||
command=(
|
command=(
|
||||||
|
@ -270,6 +270,16 @@ class test_permission_negative(Declarative):
|
|||||||
'(e.g. target, targetfilter, attrs)'),
|
'(e.g. target, targetfilter, attrs)'),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
dict(
|
||||||
|
desc='Try to "remove" empty memberof from %r' % permission1,
|
||||||
|
command=(
|
||||||
|
'permission_mod', [permission1], dict(
|
||||||
|
memberof=None,
|
||||||
|
)
|
||||||
|
),
|
||||||
|
expected=errors.EmptyModlist(),
|
||||||
|
),
|
||||||
|
|
||||||
dict(
|
dict(
|
||||||
desc='Try to remove targetfilter and memberof from %r' % permission1,
|
desc='Try to remove targetfilter and memberof from %r' % permission1,
|
||||||
command=(
|
command=(
|
||||||
@ -285,7 +295,7 @@ class test_permission_negative(Declarative):
|
|||||||
),
|
),
|
||||||
|
|
||||||
dict(
|
dict(
|
||||||
desc='Try to rename %r to invalid invalid %r' % (
|
desc='Try to rename %r to invalid %r' % (
|
||||||
permission1, invalid_permission1),
|
permission1, invalid_permission1),
|
||||||
command=('permission_mod', [permission1], dict(
|
command=('permission_mod', [permission1], dict(
|
||||||
rename=invalid_permission1,
|
rename=invalid_permission1,
|
||||||
|
Loading…
Reference in New Issue
Block a user