From d76111554d7cfebac4155bc23b8e1e7cddeb1d9a Mon Sep 17 00:00:00 2001 From: Griffin Sullivan <48397354+Griffin-Sullivan@users.noreply.github.com> Date: Fri, 22 Sep 2023 04:14:38 -0400 Subject: [PATCH] Remove stream specific code from upgrade_list test (#12692) --- tests/foreman/maintain/test_upgrade.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/foreman/maintain/test_upgrade.py b/tests/foreman/maintain/test_upgrade.py index 9fc02d39799..c9b6044f44c 100644 --- a/tests/foreman/maintain/test_upgrade.py +++ b/tests/foreman/maintain/test_upgrade.py @@ -16,8 +16,6 @@ :Upstream: No """ -import re - import pytest from robottelo.config import settings @@ -66,12 +64,8 @@ def test_positive_satellite_maintain_upgrade_list(sat_maintain): result = sat_maintain.cli.Upgrade.list_versions() assert result.status == 0 assert 'FAIL' not in result.stdout - # If on stream, check there is no version listed - if sat_maintain.is_stream: - assert not bool(re.search(r'\d', result.stdout)) - else: - for ver in versions: - assert ver in result.stdout + for ver in versions: + assert ver in result.stdout @pytest.mark.include_capsule