mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix expected error messages in tests
Have the test suite check error messages. Since XMLRPC doesn't give us structured error information, just compare the resulting text. Fix messages that tests expect to cause. Minor changes: Make netgroup-mod's NotFound message consistent with other objects and methods. In test_automember_plugin, test with nonexistent automember rules of both types, instead of nonexistent users. https://fedorahosted.org/freeipa/ticket/2549
This commit is contained in:
committed by
Rob Crittenden
parent
689bea6575
commit
6d0e4e58fc
@@ -39,21 +39,24 @@ class test_selfservice(Declarative):
|
||||
dict(
|
||||
desc='Try to retrieve non-existent %r' % selfservice1,
|
||||
command=('selfservice_show', [selfservice1], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
expected=errors.NotFound(
|
||||
reason=u'ACI with name "%s" not found' % selfservice1),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to update non-existent %r' % selfservice1,
|
||||
command=('selfservice_mod', [selfservice1], dict(description=u'Foo')),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
expected=errors.NotFound(
|
||||
reason=u'ACI with name "%s" not found' % selfservice1),
|
||||
),
|
||||
|
||||
|
||||
dict(
|
||||
desc='Try to delete non-existent %r' % selfservice1,
|
||||
command=('selfservice_del', [selfservice1], {}),
|
||||
expected=errors.NotFound(reason='no such entry'),
|
||||
expected=errors.NotFound(
|
||||
reason=u'ACI with name "%s" not found' % selfservice1),
|
||||
),
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user