Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove stream specific code from upgrade_list test #12692

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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