From b2dbc274b5ecf8b5820324cd87d8a4c506c1d207 Mon Sep 17 00:00:00 2001 From: Griffin Sullivan <48397354+Griffin-Sullivan@users.noreply.github.com> Date: Wed, 3 Apr 2024 03:54:07 -0400 Subject: [PATCH] Fix foreman service test (#14583) (cherry picked from commit 932b588adffc0e8017c81124782b51667d5a06d1) --- tests/foreman/maintain/test_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/foreman/maintain/test_service.py b/tests/foreman/maintain/test_service.py index 9b2970a8a64..5fece7c6aaf 100644 --- a/tests/foreman/maintain/test_service.py +++ b/tests/foreman/maintain/test_service.py @@ -226,7 +226,9 @@ def test_positive_foreman_service(sat_maintain): assert 'foreman' in result.stdout result = sat_maintain.cli.Service.status(options={'only': 'httpd'}) assert result.status == 0 - result = sat_maintain.cli.Health.check(options={'assumeyes': True}) + result = sat_maintain.cli.Health.check( + options={'assumeyes': True, 'whitelist': 'check-tftp-storage'} + ) assert result.status == 0 assert 'foreman' in result.stdout assert sat_maintain.cli.Service.start(options={'only': 'foreman'}).status == 0