Exemplo n.º 1
0
def test_domain_server_kill(provider, domain_server):
    """Tests domain mode server kill operation on UI

    Steps:
        * Invokes 'Kill Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, domain_server)
    domain_server.kill_server()
    verify_server_stopping(provider, domain_server, silent_failure=True)
    verify_server_stopped(provider, domain_server)
def test_domain_server_kill(provider, domain_server):
    """Tests domain mode server kill operation on UI

    Steps:
        * Invokes 'Kill Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, domain_server)
    domain_server.kill_server()
    flash.assert_success_message('Kill initiated for selected server(s)')
    verify_server_stopping(provider, domain_server)
    verify_server_stopped(provider, domain_server)
def test_domain_server_kill(provider, domain_server):
    """Tests domain mode server kill operation on UI

    Steps:
        * Invokes 'Kill Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, domain_server)
    domain_server.kill_server()
    flash.assert_success_message('Kill initiated for selected server(s)')
    verify_server_stopping(provider, domain_server)
    verify_server_stopped(provider, domain_server)
Exemplo n.º 4
0
def test_server_shutdown(provider, server):
    """Tests server gracefully shutdown operation on UI

    Steps:
        * Invokes 'Gracefully shutdown Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, server)
    server.shutdown_server()
    verify_server_stopping(provider, server)
    verify_server_stopped(provider, server)
    server.start_server()
    verify_server_starting(provider, server)
    verify_server_running(provider, server)
Exemplo n.º 5
0
def test_server_stop(provider, server):
    """Tests server stop operation on UI

    Steps:
        * Invokes 'Stop Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, server)
    server.stop_server()
    verify_server_stopping(provider, server)
    verify_server_stopped(provider, server)
    server.start_server()
    verify_server_starting(provider, server)
    verify_server_running(provider, server)
def test_server_shutdown(provider, server):
    """Tests server gracefully shutdown operation on UI

    Steps:
        * Invokes 'Gracefully shutdown Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, server)
    server.shutdown_server()
    verify_server_stopping(provider, server)
    verify_server_stopped(provider, server)
    server.start_server()
    verify_server_starting(provider, server)
    verify_server_running(provider, server)
def test_server_stop(provider, server):
    """Tests server stop operation on UI

    Steps:
        * Invokes 'Stop Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, server)
    server.stop_server()
    verify_server_stopping(provider, server)
    verify_server_stopped(provider, server)
    server.start_server()
    verify_server_starting(provider, server)
    verify_server_running(provider, server)
Exemplo n.º 8
0
def test_server_shutdown(provider, server):
    """Tests server gracefully shutdown operation on UI

    Steps:
        * Invokes 'Gracefully shutdown Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, server)
    server.shutdown_server()
    flash.assert_success_message('Shutdown initiated for selected server(s)')
    verify_server_stopping(provider, server)
    verify_server_stopped(provider, server)
    server.start_server()
    flash.assert_success_message('Start initiated for selected server(s)')
    verify_server_starting(provider, server)
    verify_server_running(provider, server)
def test_server_shutdown(provider, server):
    """Tests server gracefully shutdown operation on UI

    Steps:
        * Invokes 'Gracefully shutdown Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, server)
    server.shutdown_server()
    flash.assert_success_message('Shutdown initiated for selected server(s)')
    verify_server_stopping(provider, server)
    verify_server_stopped(provider, server)
    server.start_server()
    flash.assert_success_message('Start initiated for selected server(s)')
    verify_server_starting(provider, server)
    verify_server_running(provider, server)
Exemplo n.º 10
0
def test_server_stop(provider, server):
    """Tests server stop operation on UI

    Steps:
        * Invokes 'Stop Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
    """
    verify_server_running(provider, server)
    server.stop_server()
    flash.assert_success_message("Stop initiated for selected server(s)")
    verify_server_stopping(provider, server)
    verify_server_stopped(provider, server)
    server.start_server()
    flash.assert_success_message("Start initiated for selected server(s)")
    verify_server_starting(provider, server)
    verify_server_running(provider, server)
Exemplo n.º 11
0
def test_domain_server_stop_start(provider, domain_server):
    """Tests domain mode server stop/start operation on UI

    Steps:
        * Invokes 'Stop Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
        * Invokes 'Start 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.stop_server()
    verify_server_stopping(provider, domain_server, silent_failure=True)
    verify_server_stopped(provider, domain_server)
    domain_server.start_server()
    verify_server_starting(provider, domain_server, silent_failure=True)
    verify_server_running(provider, domain_server)
def test_domain_server_stop_start(provider, domain_server):
    """Tests domain mode server stop/start operation on UI

    Steps:
        * Invokes 'Stop Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
        * Invokes 'Start 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.stop_server()
    flash.assert_success_message('Stop initiated for selected server(s)')
    verify_server_stopping(provider, domain_server)
    verify_server_stopped(provider, domain_server)
    domain_server.start_server()
    flash.assert_success_message('Start initiated for selected server(s)')
    verify_server_starting(provider, domain_server)
    verify_server_running(provider, domain_server)
def test_domain_server_stop_start(provider, domain_server):
    """Tests domain mode server stop/start operation on UI

    Steps:
        * Invokes 'Stop Server' toolbar operation
        * Checks that server status is stopped in UI, in DB and in MGMT.
        * Invokes 'Start 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.stop_server()
    flash.assert_success_message('Stop initiated for selected server(s)')
    verify_server_stopping(provider, domain_server)
    verify_server_stopped(provider, domain_server)
    domain_server.start_server()
    flash.assert_success_message('Start initiated for selected server(s)')
    verify_server_starting(provider, domain_server)
    verify_server_running(provider, domain_server)
Exemplo n.º 14
0
def verify_server_group_stopping(provider, server_group):
    for server in server_group_servers(provider, server_group):
        verify_server_stopping(provider, server)