Exemplo n.º 1
0
def test_socket_no_title(cartridge_cmd, project_with_instances_no_cartridge):
    project = project_with_instances_no_cartridge.project
    instances = project_with_instances_no_cartridge.instances

    router = instances['router']
    console_sock_path = project.get_console_sock(router.name)

    cmd = [
        cartridge_cmd,
        'connect',
        console_sock_path,
    ]

    assert_successful_piped_commands(project,
                                     cmd,
                                     exp_connect=console_sock_path)
Exemplo n.º 2
0
def test_enter_piped(cartridge_cmd, project_with_instances):
    project = project_with_instances.project
    instances = project_with_instances.instances

    router = instances['router']

    cmd = [
        cartridge_cmd,
        'enter',
        router.name,
    ]

    assert_successful_piped_commands(project,
                                     cmd,
                                     exp_connect='%s.%s' %
                                     (project.name, router.name))
Exemplo n.º 3
0
def test_socket_piped(cartridge_cmd, project_with_instances):
    project = project_with_instances.project
    instances = project_with_instances.instances

    router = instances['router']
    console_sock_path = project.get_console_sock(router.name)

    cmd = [
        cartridge_cmd,
        'connect',
        console_sock_path,
    ]

    assert_successful_piped_commands(project,
                                     cmd,
                                     exp_connect='%s.%s' %
                                     (project.name, router.name))
Exemplo n.º 4
0
def test_uri_piped(cartridge_cmd, project_with_instances):
    project = project_with_instances.project
    instances = project_with_instances.instances

    router = instances['router']

    cmd = [
        cartridge_cmd,
        'connect',
        router.advertise_uri,
        '--username',
        'admin',
        '--password',
        '%s-cluster-cookie' % project.name,
    ]

    assert_successful_piped_commands(project,
                                     cmd,
                                     exp_connect='%s.%s' %
                                     (project.name, router.name))
Exemplo n.º 5
0
def test_uri_piped(cartridge_cmd, project_with_instances):
    project = project_with_instances.project
    instances = project_with_instances.instances

    router = instances['router']

    cmd = [
        cartridge_cmd,
        'connect',
        router.advertise_uri,
        '--username',
        'admin',
        '--password',
        DEFAULT_CLUSTER_COOKIE,
    ]

    assert_successful_piped_commands(project,
                                     cmd,
                                     exp_connect='%s.%s' %
                                     (project.name, router.name),
                                     remote_control=True)