diff options
author | Martin Kosek <mkosek@redhat.com> | 2013-04-23 09:59:24 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2013-04-26 10:32:00 -0400 |
commit | 174a89247ef40e27d454387b625a7d6c7112b9bc (patch) | |
tree | 5f81b044ac1d20c35fe2b4dcd6036336d0a67871 /tests | |
parent | 8f47e841d1f2af16fd9a52599a56556df2d169f0 (diff) | |
download | freeipa.git-174a89247ef40e27d454387b625a7d6c7112b9bc.tar.gz freeipa.git-174a89247ef40e27d454387b625a7d6c7112b9bc.tar.xz freeipa.git-174a89247ef40e27d454387b625a7d6c7112b9bc.zip |
Add userClass attribute for hosts
This new freeform host attribute will allow provisioning systems
to add custom tags for host objects which can be later used for
in automember rules or for additional local interpretation.
Design page: http://www.freeipa.org/page/V3/Integration_with_a_provisioning_systems
Ticket: https://fedorahosted.org/freeipa/ticket/3583
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_xmlrpc/test_host_plugin.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py index 37b7e407..25314f2f 100644 --- a/tests/test_xmlrpc/test_host_plugin.py +++ b/tests/test_xmlrpc/test_host_plugin.py @@ -696,6 +696,7 @@ class test_host(Declarative): dict( description=u'Test host 2', l=u'Undisclosed location 2', + userclass=[u'webserver', u'mailserver'], force=True, ), ), @@ -711,6 +712,7 @@ class test_host(Declarative): objectclass=objectclasses.host, ipauniqueid=[fuzzy_uuid], managedby_host=[fqdn2], + userclass=[u'webserver', u'mailserver'], has_keytab=False, has_password=False, ), @@ -718,6 +720,27 @@ class test_host(Declarative): ), + dict( + desc='Retrieve %r' % fqdn2, + command=('host_show', [fqdn2], {}), + expected=dict( + value=fqdn2, + summary=None, + result=dict( + dn=dn2, + fqdn=[fqdn2], + description=[u'Test host 2'], + l=[u'Undisclosed location 2'], + krbprincipalname=[u'host/%s@%s' % (fqdn2, api.env.realm)], + has_keytab=False, + has_password=False, + managedby_host=[fqdn2], + userclass=[u'webserver', u'mailserver'], + ), + ), + ), + + # This test will only succeed when running against lite-server.py # on same box as IPA install. dict( |