summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorGanna Kaihorodova <gkaihoro@redhat.com>2016-12-08 15:08:41 +0100
committerMartin Basti <mbasti@redhat.com>2017-01-19 17:39:08 +0100
commit91c050b4e093802d8c6b510a22d6e435faba965f (patch)
tree4171a63849627b4ba0170b5a17ed73054522c96d /ipatests/test_xmlrpc
parentfa7aaef1de2c97ac9d24925ca9adb25c7151055f (diff)
downloadfreeipa-91c050b4e093802d8c6b510a22d6e435faba965f.tar.gz
freeipa-91c050b4e093802d8c6b510a22d6e435faba965f.tar.xz
freeipa-91c050b4e093802d8c6b510a22d6e435faba965f.zip
User Tracker: Test to create user with minimal values
Test to create user with minimal values, where uid is not specified https://fedorahosted.org/freeipa/ticket/6126 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com> Reviewed-By: Milan Kubik <mkubik@redhat.com> Reviewed-By: Lenka Doudova <ldoudova@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_user_plugin.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_user_plugin.py b/ipatests/test_xmlrpc/test_user_plugin.py
index c09d793b5..d33c4d776 100644
--- a/ipatests/test_xmlrpc/test_user_plugin.py
+++ b/ipatests/test_xmlrpc/test_user_plugin.py
@@ -79,6 +79,13 @@ isodate_re = re.compile('^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$')
@pytest.fixture(scope='class')
+def user_min(request):
+ """ User tracker fixture for testing user with uid no specified """
+ tracker = UserTracker(givenname=u'Testmin', sn=u'Usermin')
+ return tracker.make_fixture(request)
+
+
+@pytest.fixture(scope='class')
def user(request):
tracker = UserTracker(name=u'user1', givenname=u'Test', sn=u'User1')
return tracker.make_fixture(request)
@@ -405,6 +412,12 @@ class TestUpdate(XMLRPC_test):
@pytest.mark.tier1
class TestCreate(XMLRPC_test):
+ def test_create_user_with_min_values(self, user_min):
+ """ Create user with uid not specified """
+ user_min.ensure_missing()
+ command = user_min.make_create_command()
+ command()
+
def test_create_with_krb_ticket_policy(self):
""" Try to create user with krbmaxticketlife set """
testuser = UserTracker(