ipatests: ipahealthcheck remove test skipped in pytest run

TestIpaHealthCLI::test_input_file test was skipped due to
bz1866558. Removed the below statement so that the test can
now run as the bug is fixed.

@pytest.mark.xfail(reason='BZ 1866558', strict=False)

Also changed the assert statement to search text in
stdout_text rather than sdterr_text

Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Sudhir Menon authored and Florence Blanc-Renaud committed 2021-01-06 08:53:37 +01:00
1 parent d7eece2ea1
commit d91690d5df
1 file changed
+2 -3
@@ -2049,7 +2049,6 @@ class TestIpaHealthCLI(IntegrationTest):
assert result.returncode == 2
assert 'invalid choice' in result.stderr_text
@pytest.mark.xfail(reason='BZ 1866558', strict=False)
def test_input_file(self):
"""
Verify the --input-file option
@@ -2073,13 +2072,13 @@ class TestIpaHealthCLI(IntegrationTest):
cmd = self.base_cmd + ["--input-file", "/tmp/enoent"]
result = self.master.run_command(cmd, raiseonerr=False)
assert result.returncode == 1
assert 'No such file or directory' in result.stderr_text
assert 'No such file or directory' in result.stdout_text
# Invalid input file
cmd = ["ipa-healthcheck", "--input-file", paths.IPA_CA_CRT]
result = self.master.run_command(cmd, raiseonerr=False)
assert result.returncode == 1
assert 'Expecting value' in result.stderr_text
assert 'Expecting value' in result.stdout_text
def test_output_type(self):
"""