mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Stage User: Test to create stage user with minimal values
Test to create stage user with minimal values, where uid is not specified https://fedorahosted.org/freeipa/ticket/6448 Reviewed-By: Lenka Doudova <ldoudova@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
parent
a336de630e
commit
c391f6ba58
@ -85,6 +85,11 @@ def stageduser(request):
|
|||||||
return tracker.make_fixture(request)
|
return tracker.make_fixture(request)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='class')
|
||||||
|
def stageduser_min(request):
|
||||||
|
tracker = StageUserTracker(givenname=u'stagedmin', sn=u'usermin')
|
||||||
|
return tracker.make_fixture(request)
|
||||||
|
|
||||||
@pytest.fixture(scope='class', params=options_ok, ids=options_ids)
|
@pytest.fixture(scope='class', params=options_ok, ids=options_ids)
|
||||||
def stageduser2(request):
|
def stageduser2(request):
|
||||||
tracker = StageUserTracker(u'suser2', u'staged', u'user', **request.param)
|
tracker = StageUserTracker(u'suser2', u'staged', u'user', **request.param)
|
||||||
@ -191,6 +196,12 @@ class TestNonexistentStagedUser(XMLRPC_test):
|
|||||||
|
|
||||||
@pytest.mark.tier1
|
@pytest.mark.tier1
|
||||||
class TestStagedUser(XMLRPC_test):
|
class TestStagedUser(XMLRPC_test):
|
||||||
|
def test_create_with_min_values(self, stageduser_min):
|
||||||
|
""" Create user with uid not specified """
|
||||||
|
stageduser_min.ensure_missing()
|
||||||
|
command = stageduser_min.make_create_command()
|
||||||
|
command()
|
||||||
|
|
||||||
def test_create_duplicate(self, stageduser):
|
def test_create_duplicate(self, stageduser):
|
||||||
stageduser.ensure_exists()
|
stageduser.ensure_exists()
|
||||||
command = stageduser.make_create_command()
|
command = stageduser.make_create_command()
|
||||||
|
Loading…
Reference in New Issue
Block a user