Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Automated Ansible test related to non-ascii hostname.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulage committed Feb 24, 2020
1 parent 8cc4476 commit db13c6f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions cfme/tests/ansible/test_embedded_ansible_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,3 +1094,42 @@ def _revert():
# Go to Ordered service page and assert new name of service.
service = MyService(appliance, service_name)
assert service.exists


@pytest.mark.tier(3)
@pytest.mark.meta(automates=[1534039])
def test_service_ansible_playbook_order_non_ascii(
appliance,
ansible_catalog_item,
ansible_service_request,
ansible_service_catalog,
ansible_service_funcscope,
):
"""
Look for Standard ouptut
Bugzilla:
1534039
Polarion:
assignee: sbulage
casecomponent: Ansible
caseimportance: medium
initialEstimate: 1/6h
tags: ansible_embed
"""
ele_name = "hosts"
# Extracting Ansible Catalog Item and Element name from fixture.
ansible_cat_item, ansible_catalog = dialog_with_catalog_item(ele_name)
# Navigate to Service Catalog order page.
service_catalogs = ServiceCatalogs(
appliance, ansible_catalog, ansible_cat_item.name)
view = navigate_to(service_catalogs, 'Order')
# Non-ASCII hostname element name.
hostname = fauxfactory.gen_alphanumeric(start="àcon_")
view.fields(ele_name).fill(hostname)
time.sleep(5)
view.submit_button.click()
ansible_service_request.wait_for_request()

# Go to Ordered service page and assert hostname in it.
view = navigate_to(ansible_service_funcscope, "Details")
assert view.provisioning.credentials.get_text_of("Hosts") == hostname

0 comments on commit db13c6f

Please sign in to comment.