From ffc967b47ab0c38c361ce7a60283ed0b8c618d81 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 9 Dec 2010 14:57:34 -0500 Subject: Fix a slew of tests. - Skip the DNS tests if DNS isn't configured - Add new attributes to user entries (displayname, cn and initials) - Make the nsaccountlock value consistent - Fix the cert subject for cert tests --- tests/test_xmlrpc/test_user_plugin.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/test_xmlrpc/test_user_plugin.py') diff --git a/tests/test_xmlrpc/test_user_plugin.py b/tests/test_xmlrpc/test_user_plugin.py index 18bdc7788..8dc715c9e 100644 --- a/tests/test_xmlrpc/test_user_plugin.py +++ b/tests/test_xmlrpc/test_user_plugin.py @@ -93,6 +93,9 @@ class test_user(Declarative): sn=[u'User1'], uid=[user1], uidnumber=[fuzzy_digits], + displayname=[u'Test User1'], + cn=[u'Test User1'], + initials=[u'TU'], ipauniqueid=[fuzzy_uuid], dn=u'uid=tuser1,cn=users,cn=accounts,' + api.env.basedn, ), @@ -156,6 +159,9 @@ class test_user(Declarative): 'mepmanagedentry': [u'cn=%s,cn=groups,cn=accounts,%s' % (user1, api.env.basedn)], 'krbpwdpolicyreference': [u'cn=global_policy,cn=%s,cn=kerberos,%s' % (api.env.realm, api.env.basedn)], 'nsaccountlock': [u'False'], + 'displayname': [u'Test User1'], + 'cn': [u'Test User1'], + 'initials': [u'TU'], }, ], summary=u'1 user matched', @@ -396,6 +402,9 @@ class test_user(Declarative): sn=[u'User1'], uid=[user1], uidnumber=[fuzzy_digits], + displayname=[u'Test User1'], + cn=[u'Test User1'], + initials=[u'TU'], ipauniqueid=[fuzzy_uuid], dn=u'uid=tuser1,cn=users,cn=accounts,' + api.env.basedn, ), @@ -420,6 +429,9 @@ class test_user(Declarative): sn=[u'User2'], uid=[user2], uidnumber=[fuzzy_digits], + displayname=[u'Test User2'], + cn=[u'Test User2'], + initials=[u'TU'], ipauniqueid=[fuzzy_uuid], dn=u'uid=tuser2,cn=users,cn=accounts,' + api.env.basedn, ), -- cgit