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

[1LP][RFR] New Test:: Testing start EVM command #9782

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions cfme/tests/cli/test_appliance_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,9 +820,8 @@ def test_appliance_console_evm_stop():
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_appliance_console_evm_start():
def test_appliance_console_evm_start(request, appliance):
"""
test starting the evm server process

Expand All @@ -844,7 +843,16 @@ def test_appliance_console_evm_start():
4. Confirm EVM service is being started.
5. Confirm replication is working correctly
"""
pass
appliance.evmserverd.stop()
wait_for(lambda: appliance.is_web_ui_running(), delay=30, num_sec=10, fail_condition=True)

# Actual testcase starting from here
start_evm_command = ("ap", RETURN, "17", "Y", RETURN, RETURN, "21")
appliance.appliance_console.run_commands(start_evm_command, timeout=300)
wait_for(lambda: appliance.is_web_ui_running(), delay=30, num_sec=10)
logged_in_page = appliance.server.login()
request.addfinalizer(appliance.server.logout)
assert logged_in_page.is_displayed, "UI is not working after starting the EVM service."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dgaikwad
If assertion gets failed then this line(logged_in_page.logout()) will not execute. So is it okay if we add this in request.addfinalizer above the assertion. Thus it will act as teardown for this test case.


@pytest.mark.manual
Expand Down