From bf88a7928c72274a001a96db85accdeec12ee9f5 Mon Sep 17 00:00:00 2001 From: Griffin Sullivan Date: Tue, 26 Sep 2023 12:23:49 -0400 Subject: [PATCH] Add customer coverage to health check --- tests/foreman/api/test_repositories.py | 4 +--- tests/foreman/maintain/test_health.py | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/foreman/api/test_repositories.py b/tests/foreman/api/test_repositories.py index a7c4b1a5340..58cbd9792b2 100644 --- a/tests/foreman/api/test_repositories.py +++ b/tests/foreman/api/test_repositories.py @@ -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 diff --git a/tests/foreman/maintain/test_health.py b/tests/foreman/maintain/test_health.py index c1d590546ec..dc54061daa4 100644 --- a/tests/foreman/maintain/test_health.py +++ b/tests/foreman/maintain/test_health.py @@ -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