From b950d756a222b2ab6c43205d67388ad7288820cb Mon Sep 17 00:00:00 2001 From: Kedar Kulkarni Date: Wed, 23 Aug 2017 05:08:09 -0400 Subject: [PATCH] Adding extended timeout to avoid RHV Console failure due to TimedOutError (#5168) --- cfme/tests/cloud_infra_common/test_html5_vm_console.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cfme/tests/cloud_infra_common/test_html5_vm_console.py b/cfme/tests/cloud_infra_common/test_html5_vm_console.py index c3bcba55df..2bc1086bc7 100644 --- a/cfme/tests/cloud_infra_common/test_html5_vm_console.py +++ b/cfme/tests/cloud_infra_common/test_html5_vm_console.py @@ -86,7 +86,7 @@ def configure_websocket(): @pytest.mark.uncollectif(lambda: version.current_version() < '5.8', reason='Only valid for >= 5.8') -def test_html5_vm_console(appliance, provider, vm_obj, configure_websocket, +def test_html5_vm_console(appliance, provider, configure_websocket, vm_obj, configure_vmware_console_for_test): """ Test the HTML5 console support for a particular provider. @@ -195,4 +195,12 @@ def _validate_login(): assert command_result finally: vm_console.close_console_window() + # Logout is required because when running the Test back 2 back against RHV and VMware + # Providers, following issue would arise: + # If test for RHV is just finished, code would proceed to adding VMware Provider and once it + # is added, then it will navigate to Infrastructure -> Virtual Machines Page, it will see + # "Page Does not Exists" Error, because the browser will try to go to the + # VM details page of RHV VM which is already deleted + # at the End of test for RHV Provider Console and test would fail. + # Logging out would get rid of this issue. appliance.server.logout()