Skip to content

Commit

Permalink
Remove stream specific code from upgrade_list test (#12692)
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin-Sullivan authored Sep 22, 2023
1 parent 144877b commit ba74e9d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/foreman/maintain/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
:Upstream: No
"""
import re

import pytest

from robottelo.config import settings
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ba74e9d

Please sign in to comment.