diff --git a/etcd3gw/client.py b/etcd3gw/client.py index ce14923..694bcb0 100644 --- a/etcd3gw/client.py +++ b/etcd3gw/client.py @@ -42,7 +42,7 @@ _EXCEPTIONS_BY_CODE = { class Etcd3Client(object): def __init__(self, host='localhost', port=2379, protocol="http", ca_cert=None, cert_key=None, cert_cert=None, timeout=None, - api_path='/v3beta/'): + api_path='/v3alpha/'): """Construct an client to talk to etcd3's grpc-gateway's /v3 HTTP API :param host: diff --git a/etcd3gw/tests/test_client.py b/etcd3gw/tests/test_client.py index 955aab2..9b0a145 100644 --- a/etcd3gw/tests/test_client.py +++ b/etcd3gw/tests/test_client.py @@ -22,17 +22,17 @@ class TestEtcd3Gateway(base.TestCase): def test_client_default(self): client = Etcd3Client() - self.assertEqual("http://localhost:2379/v3beta/lease/grant", + self.assertEqual("http://localhost:2379/v3alpha/lease/grant", client.get_url("/lease/grant")) def test_client_ipv4(self): client = Etcd3Client(host="127.0.0.1") - self.assertEqual("http://127.0.0.1:2379/v3beta/lease/grant", + self.assertEqual("http://127.0.0.1:2379/v3alpha/lease/grant", client.get_url("/lease/grant")) def test_client_ipv6(self): client = Etcd3Client(host="::1") - self.assertEqual("http://[::1]:2379/v3beta/lease/grant", + self.assertEqual("http://[::1]:2379/v3alpha/lease/grant", client.get_url("/lease/grant")) def test_client_bad_request(self):