Closed Satellite-QE closed 1 month ago
trigger: test-robottelo pytest: tests/foreman/ui/test_ansible.py::TestAnsibleCfgMgmt -k 'test_positive_assign_and_remove_ansible_role_to_host or test_positive_assign_and_remove_ansible_role_to_hostgroup or test_positive_non_admin_user_access_with_usergroup or test_positive_ansible_config_report_changes_notice_and_failed_tasks_errors' robottelo: 16054
Cherrypick of PR: https://github.com/SatelliteQE/airgun/pull/1542
I've updated the code. Previously, the role selection was hardcoded based on the locator, but now the code dynamically selects a single Ansible role based on user input.
This update has been applied wherever the 'add_single_ansible_role' method is used in the test case.
Dependent PR: https://github.com/SatelliteQE/robottelo/pull/16054