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

Commit

Permalink
Fixed automate tests for CF5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulage committed Oct 1, 2019
1 parent 1d5a922 commit 10eccfe
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions cfme/tests/ansible/test_embedded_ansible_automate.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ def test_embedded_ansible_custom_button_localhost(full_template_vm_modscope, cus
view = navigate_to(ansible_service, "Details")
hosts = view.provisioning.details.get_text_of("Hosts")
assert hosts == "localhost"
assert view.provisioning.results.get_text_of("Status") == "successful"
assert (
view.provisioning.results.get_text_of("Status") == "successful"
if appliance.version < "5.11"
else "Finished"
)


def test_embedded_ansible_custom_button_target_machine(full_template_vm_modscope, custom_vm_button,
Expand All @@ -258,7 +262,11 @@ def test_embedded_ansible_custom_button_target_machine(full_template_vm_modscope
view = navigate_to(ansible_service, "Details")
hosts = view.provisioning.details.get_text_of("Hosts")
assert hosts == full_template_vm_modscope.ip_address
assert view.provisioning.results.get_text_of("Status") == "successful"
assert (
view.provisioning.results.get_text_of("Status") == "successful"
if appliance.version < "5.11"
else "Finished"
)


def test_embedded_ansible_custom_button_specific_hosts(full_template_vm_modscope, custom_vm_button,
Expand All @@ -283,7 +291,11 @@ def test_embedded_ansible_custom_button_specific_hosts(full_template_vm_modscope
view = navigate_to(ansible_service, "Details")
hosts = view.provisioning.details.get_text_of("Hosts")
assert hosts == full_template_vm_modscope.ip_address
assert view.provisioning.results.get_text_of("Status") == "successful"
assert (
view.provisioning.results.get_text_of("Status") == "successful"
if appliance.version < "5.11"
else "Finished"
)


@test_requirements.alert
Expand Down

0 comments on commit 10eccfe

Please sign in to comment.