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:
Anuja More 2023-03-09 17:32:53 +05:30 committed by Florence Blanc-Renaud
parent 34d048ede0
commit 983a6516f1

View File

@ -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)