Example #1
0
def test_client_ssl():
    docker_rm_etcd_ssl()
    _, port, _ = docker_run_etcd_ssl()
    time.sleep(2)
    client = Client(host, port, cert=(CERT_PATH, KEY_PATH), verify=CA_PATH)
    assert client.version()
    docker_rm_etcd_ssl()
Example #2
0
def client():
    """
    init Etcd3Client, close its connection-pool when teardown
    """
    _, p, _ = docker_run_etcd_main()
    c = Client(host, p, protocol)
    yield c
    c.close()