Exemplo n.º 1
0
    """Create elasticsearch fixture pairs."""
    proc = factories.elasticsearch_proc(executable, port=port, **kwargs)
    elasticsearch = factories.elasticsearch(proc_name)
    return proc, elasticsearch


# pylint:disable=invalid-name
elasticsearch_proc_5_6, elasticsearch_5_6 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_5_6, 'elasticsearch_proc_5_6', port=None)
elasticsearch_proc_6_8, elasticsearch_6_8 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_6_8, 'elasticsearch_proc_6_8', port=None)
elasticsearch_proc_7_4, elasticsearch_7_4 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_7_4, 'elasticsearch_proc_7_4', port=None)
elasticsearch_proc_7_5, elasticsearch_7_5 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_7_5, 'elasticsearch_proc_7_5', port=None)
elasticsearch_proc_7_6, elasticsearch_7_6 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_7_6, 'elasticsearch_proc_7_6', port=None)
elasticsearch_proc_7_7, elasticsearch_7_7 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_7_7, 'elasticsearch_proc_7_7', port=None)
elasticsearch_proc_7_8, elasticsearch_7_8 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_7_8, 'elasticsearch_proc_7_8', port=None)
elasticsearch_proc_7_9, elasticsearch_7_9 = elasticsearch_fixture_factory(
    ELASTICSEARCH_EXECUTABLE_7_9, 'elasticsearch_proc_7_9', port=None)

elasticsearch_proc2 = factories.elasticsearch_proc(
    executable=ELASTICSEARCH_EXECUTABLE_7_9, port=9393)
elasticsearch_nooproc2 = factories.elasticsearch_noproc(port=9393)
elasticsearch2 = factories.elasticsearch('elasticsearch_proc2')
elasticsearch2_noop = factories.elasticsearch('elasticsearch_nooproc2')
# pylint:enable=invalid-name
Exemplo n.º 2
0
    )

    parser.addoption(
        '--elasticsearch-network-publish-host',
        action='store',
        dest='elasticsearch_network_publish_host',
        help=_help_network_publish_host,
    )

    parser.addoption(
        '--elasticsearch-logs-prefix',
        action='store',
        dest='elasticsearch_logs_prefix',
        help=_help_logs_prefix,
    )

    parser.addoption('--elasticsearch-port',
                     action='store',
                     dest='elasticsearch_port',
                     help=_help_port)

    parser.addoption('--elasticsearch-transport-tcp-port',
                     action='store',
                     dest='elasticsearch_transport_tcp_port',
                     help=_help_elasticsearch_transport_tcp_port)


elasticsearch_proc = factories.elasticsearch_proc()
elasticsearch_nooproc = factories.elasticsearch_noproc()
elasticsearch = factories.elasticsearch('elasticsearch_proc')