Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed May 21, 2024
1 parent 1d53210 commit bea5fc8
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tests/foreman/ui/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def test_end_to_end(
],
'module_stream_packages': [],
}
# client was registered with no repos
# client was registered with single custom repo
client = registered_contenthost
hostname = client.hostname
assert client.subscribed
Expand Down Expand Up @@ -369,7 +369,7 @@ def test_end_to_end(
environment=module_lce.name,
)
assert len(results) == 1
# BZ 2265095: Check all columns in table of applicable host:
# BZ 2265095: Check default columns in table of applicable host:
# from ContentTypes > Errata > Details > Content Hosts tab
assert results[0]['Name'] == hostname
# assert str(client.deploy_rhel_version) in results[0]['OS']
Expand Down Expand Up @@ -529,12 +529,12 @@ def test_host_content_errata_tab_pagination(
:BZ: 1662254, 1846670
"""
org = module_sca_manifest_org
all_repos = module_target_sat.api.Repository(organization=org).search()
# custom_repo was created & added to cv, in registered_contenthost fixture
# search for the instance
custom_repo = [repo for repo in all_repos if repo.url == CUSTOM_REPO_3_URL]
assert len(custom_repo) > 0
custom_repo = custom_repo[0].read()
# custom_repo was created & added to cv, enabled in registered_contenthost.
repos = [
repo.read() for repo in module_cv.read().repository if repo.read().url == CUSTOM_REPO_3_URL
]
assert len(repos) > 0
custom_repo = repos[0]
custom_repo.sync()
# Set up rh_repo
rh_repo_id = module_target_sat.api_factory.enable_rhrepo_and_fetchid(
Expand Down Expand Up @@ -570,10 +570,8 @@ def test_host_content_errata_tab_pagination(
assert registered_contenthost.execute(f'yum install -y {pkgs}').status == 0

with session:
# Go to new host's page UI, Content>Errata tab,
# read the view's pagination entitity
session.organization.select(org_name=org.name)
session.location.select(loc_name=DEFAULT_LOC)
# Go to new host's page UI, Content>Errata tab,
# There are two pagination objects on errata tab, we read the top one
pf4_pagination = session.host_new.get_errata_pagination(_chost_name)
assert pf4_pagination.read()
Expand Down

0 comments on commit bea5fc8

Please sign in to comment.