mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 23:58:23 -05:00
ipatests: Test for ipahealthcheck tool for IPADomainCheck.
This testcase checks that when trust isn't setup between IPA server and Windows AD, IPADomainCheck displays key value as domain-check and result is SUCCESS Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
@@ -565,6 +565,22 @@ class TestIpaHealthCheck(IntegrationTest):
|
||||
ruvs.remove(check["kw"]["ruv"])
|
||||
assert not ruvs
|
||||
|
||||
def test_ipa_healthcheck_without_trust_setup(self):
|
||||
"""
|
||||
This testcase checks that when trust isn't setup between IPA
|
||||
server and Windows AD, IPADomainCheck displays key value as
|
||||
domain-check and result is SUCCESS
|
||||
"""
|
||||
returncode, data = run_healthcheck(
|
||||
self.master,
|
||||
"ipahealthcheck.ipa.trust",
|
||||
"IPADomainCheck"
|
||||
)
|
||||
assert returncode == 0
|
||||
for check in data:
|
||||
assert check["result"] == "SUCCESS"
|
||||
assert check["kw"]["key"] == "domain-check"
|
||||
|
||||
def test_ipa_healthcheck_output_indent(self):
|
||||
"""
|
||||
This test case checks whether default (2) indentation is applied
|
||||
|
||||
Reference in New Issue
Block a user