diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2013-08-20 15:34:39 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-08-28 16:46:15 +0200 |
commit | c392146101422808b8781c85f0f2720db230da28 (patch) | |
tree | 095acec64a62aefff7dc498602d05e38af31f626 /ipatests/test_xmlrpc/test_krbtpolicy.py | |
parent | 023385510a1b9ce6b40e40b788044ba853463696 (diff) | |
download | freeipa.git-c392146101422808b8781c85f0f2720db230da28.tar.gz freeipa.git-c392146101422808b8781c85f0f2720db230da28.tar.xz freeipa.git-c392146101422808b8781c85f0f2720db230da28.zip |
Fix tests which fail after ipa-adtrust-install
Some unit tests were failing after ipa-adtrust-install has been run on the
IPA server, due to missing attributes ('ipantsecurityidentifier') and
objectclasses ('ipantuserattrs' and 'ipantgroupattrs'). This patch detects if
ipa-adtrust-install has been run, and adds missing attributes and objectclasses
where appropriate.
https://fedorahosted.org/freeipa/ticket/3852
Diffstat (limited to 'ipatests/test_xmlrpc/test_krbtpolicy.py')
-rw-r--r-- | ipatests/test_xmlrpc/test_krbtpolicy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipatests/test_xmlrpc/test_krbtpolicy.py b/ipatests/test_xmlrpc/test_krbtpolicy.py index b940c5e5..2fac11f1 100644 --- a/ipatests/test_xmlrpc/test_krbtpolicy.py +++ b/ipatests/test_xmlrpc/test_krbtpolicy.py @@ -22,7 +22,7 @@ Test kerberos ticket policy from ipalib import api, errors from ipatests.test_xmlrpc import objectclasses -from xmlrpc_test import Declarative, fuzzy_digits, fuzzy_uuid +from xmlrpc_test import Declarative, fuzzy_digits, fuzzy_uuid, add_sid, add_oc from ipapython.dn import DN user1 = u'tuser1' @@ -94,13 +94,13 @@ class test_krbtpolicy(Declarative): expected=dict( value=user1, summary=u'Added user "%s"' % user1, - result=dict( + result=add_sid(dict( gecos=[u'Test User1'], givenname=[u'Test'], homedirectory=[u'/home/tuser1'], krbprincipalname=[u'tuser1@' + api.env.realm], loginshell=[u'/bin/sh'], - objectclass=objectclasses.user, + objectclass=add_oc(objectclasses.user, u'ipantuserattrs'), sn=[u'User1'], uid=[user1], uidnumber=[fuzzy_digits], @@ -118,7 +118,7 @@ class test_krbtpolicy(Declarative): has_keytab=False, has_password=False, dn=DN(('uid',user1),('cn','users'),('cn','accounts'), api.env.basedn) - ), + )), ), ), |