Several fixes in replica_promotion tests

In test_one_command_installation the ipa-replica-install was missing '--server'
and '-U' options which resulted in false negative result. In
test_client_enrollment_by_unprivileged_user '--server' option was messing.
test_replica_promotion_after_adding_to_admin_group lacked '-U' option. It
leaded to 3 failed cases.

https://fedorahosted.org/freeipa/ticket/6301

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Oleg Fayans 2016-09-05 09:05:06 +02:00 committed by Martin Basti
parent e265853d05
commit cd6adafbf6

View File

@ -187,7 +187,9 @@ class TestReplicaPromotionLevel1(ReplicaPromotionBase):
self.replicas[0].run_command(['ipa-replica-install', '-w',
self.master.config.admin_password,
'-n', self.master.domain.name,
'-r', self.master.domain.realm])
'-r', self.master.domain.realm,
'--server', self.master.hostname,
'-U'])
class TestReplicaManageCommands(IntegrationTest):
@ -307,7 +309,8 @@ class TestUnprivilegedUserPermissions(IntegrationTest):
'-p', self.username,
'-w', self.new_password,
'--domain', replica.domain.name,
'--realm', replica.domain.realm, '-U'],
'--realm', replica.domain.realm, '-U',
'--server', self.master.hostname],
raiseonerr=False)
assert_error(result1, "No permission to join this host", 1)
@ -331,7 +334,8 @@ class TestUnprivilegedUserPermissions(IntegrationTest):
'-P', self.username,
'-p', self.new_password,
'-n', self.master.domain.name,
'-r', self.master.domain.realm])
'-r', self.master.domain.realm,
'-U'])
class TestProhibitReplicaUninstallation(IntegrationTest):