def test_domain_server_suspend_resume(provider, domain_server): """Tests domain mode server suspend/resume operation on UI Steps: * Invokes 'Suspend Server' toolbar operation * Checks that server status is not running in UI, in DB and in MGMT. * Invokes 'Resume Server' toolbar operation * Waits for some time * Checks that server status is running in UI, in DB and in MGMT. """ verify_server_running(provider, domain_server) domain_server.suspend_server() verify_server_suspended(provider, domain_server) domain_server.resume_server() verify_server_running(provider, domain_server)
def test_server_suspend_resume(provider, server): """Tests server suspend/resume operation on UI Steps: * Invokes Suspend Server' toolbar operation * Checks that server status is not running in UI, in DB and in MGMT. * Invokes 'Resume Server' toolbar operation * Waits for some time * Checks that server status is running in UI, in DB and in MGMT. """ verify_server_running(provider, server) server.suspend_server() verify_server_suspended(provider, server) server.resume_server() verify_server_running(provider, server)
def test_server_suspend_resume(provider, server): """Tests server suspend/resume operation on UI Steps: * Invokes Suspend Server' toolbar operation * Checks that server status is not running in UI, in DB and in MGMT. * Invokes 'Resume Server' toolbar operation * Waits for some time * Checks that server status is running in UI, in DB and in MGMT. """ verify_server_running(provider, server) server.suspend_server() flash.assert_success_message('Suspend initiated for selected server(s)') verify_server_suspended(provider, server) server.resume_server() flash.assert_success_message('Resume initiated for selected server(s)') verify_server_running(provider, server)
def verify_server_group_suspended(provider, server_group): for server in server_group_servers(provider, server_group): verify_server_suspended(provider, server)