Skip to content

Commit

Permalink
Add customer coverage to health check
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin-Sullivan committed Sep 26, 2023
1 parent e07ed76 commit 81bd9b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/foreman/maintain/test_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,17 @@ def test_positive_health_check(sat_maintain):
1. Run satellite-maintain health check
:expectedresults: Health check should pass.
:BZ: 1956210
:customerscenario: true
"""
result = sat_maintain.cli.Health.check(options={'assumeyes': True})
assert result.status == 0
if 'paused tasks in the system' not in result.stdout:
assert 'FAIL' not in result.stdout
result = sat_maintain.cli.execute('tail /var/log/foreman-proxy/proxy.log')
assert 'sslv3 alert bad certificate' not in result.stdout


@pytest.mark.include_capsule
Expand Down

0 comments on commit 81bd9b7

Please sign in to comment.