mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: add test for ipa-replica-install options
Add a test checking that --password and --admin-password options are mutually exclusive. Related to https://pagure.io/freeipa/issue/6353 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
23306a28c9
commit
26e35dca41
@ -49,6 +49,26 @@ class TestReplicaPromotionLevel1(ReplicaPromotionBase):
|
||||
num_replicas = 1
|
||||
domain_level = DOMAIN_LEVEL_1
|
||||
|
||||
@replicas_cleanup
|
||||
def test_one_step_install_pwd_and_admin_pwd(self):
|
||||
"""--password and --admin-password options are mutually exclusive
|
||||
|
||||
Test for ticket 6353
|
||||
"""
|
||||
expected_err = "--password and --admin-password options are " \
|
||||
"mutually exclusive"
|
||||
result = self.replicas[0].run_command([
|
||||
'ipa-replica-install', '-w',
|
||||
self.master.config.admin_password,
|
||||
'-p', 'OTPpwd',
|
||||
'-n', self.master.domain.name,
|
||||
'-r', self.master.domain.realm,
|
||||
'--server', self.master.hostname,
|
||||
'-U'],
|
||||
raiseonerr=False)
|
||||
assert result.returncode == 1
|
||||
assert expected_err in result.stderr_text
|
||||
|
||||
@replicas_cleanup
|
||||
def test_one_command_installation(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user