mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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>
This commit is contained in:
parent
fa7aaef1de
commit
91c050b4e0
@ -78,6 +78,13 @@ expired_expiration_string = "1991-12-07T19:54:13Z"
|
||||
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')
|
||||
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user