mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
e265853d05
commit
cd6adafbf6
@ -187,7 +187,9 @@ class TestReplicaPromotionLevel1(ReplicaPromotionBase):
|
|||||||
self.replicas[0].run_command(['ipa-replica-install', '-w',
|
self.replicas[0].run_command(['ipa-replica-install', '-w',
|
||||||
self.master.config.admin_password,
|
self.master.config.admin_password,
|
||||||
'-n', self.master.domain.name,
|
'-n', self.master.domain.name,
|
||||||
'-r', self.master.domain.realm])
|
'-r', self.master.domain.realm,
|
||||||
|
'--server', self.master.hostname,
|
||||||
|
'-U'])
|
||||||
|
|
||||||
|
|
||||||
class TestReplicaManageCommands(IntegrationTest):
|
class TestReplicaManageCommands(IntegrationTest):
|
||||||
@ -307,7 +309,8 @@ class TestUnprivilegedUserPermissions(IntegrationTest):
|
|||||||
'-p', self.username,
|
'-p', self.username,
|
||||||
'-w', self.new_password,
|
'-w', self.new_password,
|
||||||
'--domain', replica.domain.name,
|
'--domain', replica.domain.name,
|
||||||
'--realm', replica.domain.realm, '-U'],
|
'--realm', replica.domain.realm, '-U',
|
||||||
|
'--server', self.master.hostname],
|
||||||
raiseonerr=False)
|
raiseonerr=False)
|
||||||
assert_error(result1, "No permission to join this host", 1)
|
assert_error(result1, "No permission to join this host", 1)
|
||||||
|
|
||||||
@ -331,7 +334,8 @@ class TestUnprivilegedUserPermissions(IntegrationTest):
|
|||||||
'-P', self.username,
|
'-P', self.username,
|
||||||
'-p', self.new_password,
|
'-p', self.new_password,
|
||||||
'-n', self.master.domain.name,
|
'-n', self.master.domain.name,
|
||||||
'-r', self.master.domain.realm])
|
'-r', self.master.domain.realm,
|
||||||
|
'-U'])
|
||||||
|
|
||||||
|
|
||||||
class TestProhibitReplicaUninstallation(IntegrationTest):
|
class TestProhibitReplicaUninstallation(IntegrationTest):
|
||||||
|
Loading…
Reference in New Issue
Block a user