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 cf6b533
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions tests/foreman/api/test_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
from robottelo import constants
from robottelo.cli.base import CLIReturnCodeError
from robottelo.config import settings
from robottelo.constants import DEFAULT_ARCHITECTURE
from robottelo.constants import MIRRORING_POLICIES
from robottelo.constants import REPOS
from robottelo.constants import DEFAULT_ARCHITECTURE, MIRRORING_POLICIES, REPOS
from robottelo.utils.datafactory import parametrized


Expand Down
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.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 cf6b533

Please sign in to comment.