Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshdubey-star committed Dec 18, 2023
1 parent 83faca6 commit af08623
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pytest_fixtures/core/xdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def align_to_satellite(request, worker_id, satellite_factory):
worker_pos = int(worker_id.replace('gw', ''))

# attempt to add potential satellites from the broker inventory file
# if settings.server.inventory_filter:
# hosts = Satellite.get_hosts_from_inventory(filter=settings.server.inventory_filter)
# settings.server.hostnames += [host.hostname for host in hosts]
if settings.server.inventory_filter:
hosts = Satellite.get_hosts_from_inventory(filter=settings.server.inventory_filter)
settings.server.hostnames += [host.hostname for host in hosts]

# attempt to align a worker to a satellite
if settings.server.xdist_behavior == 'run-on-one' and settings.server.hostnames:
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/ui/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_positive_verify_default_values_for_global_registration(
ak = module_target_sat.cli_factory.make_activation_key(
{'organization-id': default_org.id, 'name': gen_string('alpha')}
)
with session:
with module_target_sat.ui_session() as session:
session.organization.select(org_name=default_org.name)
session.location.select(loc_name=default_location.name)
cmd = session.host.get_register_command(
Expand Down

0 comments on commit af08623

Please sign in to comment.