mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: Test ipa-advise is not failing with error.
The ipa-advise command should not fail with error in command. Related: https://pagure.io/freeipa/issue/6044 Signed-off-by: Anuja More <amore@redhat.com> Reviewed-By: Sudhir Menon <sumenon@redhat.com>
This commit is contained in:
parent
34d048ede0
commit
983a6516f1
@ -174,3 +174,14 @@ class TestAdvice(IntegrationTest):
|
|||||||
self.execute_advise(client, advice_id, ca_file)
|
self.execute_advise(client, advice_id, ca_file)
|
||||||
finally:
|
finally:
|
||||||
client.run_command(['rm', '-f', ca_file])
|
client.run_command(['rm', '-f', ca_file])
|
||||||
|
|
||||||
|
def test_ipa_advise(self):
|
||||||
|
"""Test ipa-advise is not failing with error.
|
||||||
|
|
||||||
|
The command should not fail with error in command.
|
||||||
|
|
||||||
|
Related: https://pagure.io/freeipa/issue/6044
|
||||||
|
"""
|
||||||
|
test = self.master.run_command(["ipa-advise"], raiseonerr=False)
|
||||||
|
error = "object of type 'type' has no len()"
|
||||||
|
assert error not in (test.stdout_text + test.stderr_text)
|
||||||
|
Loading…
Reference in New Issue
Block a user