Skip to content

Commit

Permalink
fix in CR for import ansible role
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 committed Nov 4, 2024
1 parent 6d81c3a commit db65397
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/foreman/ui/test_computeresource_vmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,9 @@ def test_positive_provision_end_to_end(
'network': f'VLAN {settings.provisioning.vlan_id}',
}
}
proxy_id = target_sat.nailgun_smart_proxy.id
target_sat.api.AnsibleRoles().sync(data={'proxy_id': proxy_id, 'role_names': [SELECTED_ROLE]})
with target_sat.ui_session() as session:
session.ansibleroles.import_all_roles()
assert session.ansibleroles.import_all_roles() == session.ansibleroles.imported_roles_count
session.location.select(module_location.name)
session.organization.select(module_sca_manifest_org.name)
session.hostgroup.assign_role_to_hostgroup(
Expand Down Expand Up @@ -649,7 +649,9 @@ def test_positive_provision_end_to_end(
silent_failure=True,
handle_exception=True,
)
values = session.host_new.get_host_statuses(host_name)
values = session.host_new.get_host_statuses(
f'{host_name}.{module_vmware_hostgroup.domain.read().name}'
)
assert values['Build']['Status'] == 'Installed'
assert values['Execution']['Status'] == 'Last execution succeeded'

Expand Down

0 comments on commit db65397

Please sign in to comment.