#8892 [RFE] When IPA system is healthy, ipa-healthcheck --failures-only should display proper message instead of empty list
Closed: fixed by frenaud. Opened by mpolovka.

Description of problem: When IPA system is healthy, ipa-healthcheck --failures-only should display proper message instead of empty list

Version-Release number of selected component (if applicable):
ipa-server-4.8.0-11.module+el8.1.0+4247+9f3fd721.x86_64

How reproducible: Always

Steps to Reproduce:
1. Lets assume ipa system is healthy.
2. Now run ipa-healthcheck-tool --failures-only
3. Check the output

Actual results:
The output displays an empty list i.e []

Expected results:
Instead of displaying an empty list i.e [], which doesn't make sense when a report is revisited, instead it should display user-friendly message e.g 'IPA system is/was in healthy state : '.
This makes sense for the customer viewing the report


To be clear it will only display the message when --output-type is human.

PR with a test opened at https://github.com/freeipa/freeipa/pull/5853

master:

  • b43ac4fdd20a0c1b122d6a58cea4a5f91e498fe6 ipatests: test_ipahealthcheck: print a message if a system is healthy

ipa-4-9:

  • 7f910eb2dda8595da435b4aed6e759a2916df813 ipatests: test_ipahealthcheck: print a message if a system is healthy

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata