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

Commit db13c6f

Browse files
committed
Automated Ansible test related to non-ascii hostname.
1 parent 8cc4476 commit db13c6f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

cfme/tests/ansible/test_embedded_ansible_services.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,3 +1094,42 @@ def _revert():
10941094
# Go to Ordered service page and assert new name of service.
10951095
service = MyService(appliance, service_name)
10961096
assert service.exists
1097+
1098+
1099+
@pytest.mark.tier(3)
1100+
@pytest.mark.meta(automates=[1534039])
1101+
def test_service_ansible_playbook_order_non_ascii(
1102+
appliance,
1103+
ansible_catalog_item,
1104+
ansible_service_request,
1105+
ansible_service_catalog,
1106+
ansible_service_funcscope,
1107+
):
1108+
"""
1109+
Look for Standard ouptut
1110+
Bugzilla:
1111+
1534039
1112+
Polarion:
1113+
assignee: sbulage
1114+
casecomponent: Ansible
1115+
caseimportance: medium
1116+
initialEstimate: 1/6h
1117+
tags: ansible_embed
1118+
"""
1119+
ele_name = "hosts"
1120+
# Extracting Ansible Catalog Item and Element name from fixture.
1121+
ansible_cat_item, ansible_catalog = dialog_with_catalog_item(ele_name)
1122+
# Navigate to Service Catalog order page.
1123+
service_catalogs = ServiceCatalogs(
1124+
appliance, ansible_catalog, ansible_cat_item.name)
1125+
view = navigate_to(service_catalogs, 'Order')
1126+
# Non-ASCII hostname element name.
1127+
hostname = fauxfactory.gen_alphanumeric(start="àcon_")
1128+
view.fields(ele_name).fill(hostname)
1129+
time.sleep(5)
1130+
view.submit_button.click()
1131+
ansible_service_request.wait_for_request()
1132+
1133+
# Go to Ordered service page and assert hostname in it.
1134+
view = navigate_to(ansible_service_funcscope, "Details")
1135+
assert view.provisioning.credentials.get_text_of("Hosts") == hostname

0 commit comments

Comments
 (0)