Esempio n. 1
0
def mock_local_mapreduce_dns():
    mapping = {x: ('127.0.0.1', 443) for x in MOCKED_HOSTS}
    with mock_local(mapping):
        yield
Esempio n. 2
0
def mock_local_tls_dns():
    with mock_local(HOSTNAME_TO_PORT_MAPPING):
        yield
Esempio n. 3
0
def mock_local_kafka_hosts_dns():
    mapping = {'kafka1': ('127.0.0.1', 9092), 'kafka2': ('127.0.0.1', 9093)}
    with mock_local(mapping):
        yield