diff options
author | Jose Plana <jplana@gmail.com> | 2013-10-09 22:09:15 +0200 |
---|---|---|
committer | Jose Plana <jplana@gmail.com> | 2013-10-09 22:09:15 +0200 |
commit | 4792c04bd14d72e0a18c322cbed567c94e07b793 (patch) | |
tree | ccd0cd3e3df10f4bba71bfcc52fa05882abdaf06 /src/etcd | |
parent | 5cc33f757e0e3682f0fe17e8ce153404f9bf915c (diff) |
Added correct test for server authf
Diffstat (limited to 'src/etcd')
-rw-r--r-- | src/etcd/tests/integration/test_simple.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/etcd/tests/integration/test_simple.py b/src/etcd/tests/integration/test_simple.py index 9f31e98..8b8fca9 100644 --- a/src/etcd/tests/integration/test_simple.py +++ b/src/etcd/tests/integration/test_simple.py @@ -440,6 +440,7 @@ class TestClientAuthenticatedAccess(EtcdIntegrationTest): proc_args=[ '-clientCert=%s' % server_cert_path, '-clientKey=%s' % server_key_path, + '-clientCAFile=%s' % cls.ca_cert_path ]) def test_get_set_unauthenticated(self): @@ -467,7 +468,9 @@ class TestClientAuthenticatedAccess(EtcdIntegrationTest): client = etcd.Client( port=6001, protocol='https', - cert=self.client_all_cert) + cert=self.client_all_cert, + ca_cert=self.ca_cert_path + ) set_result = client.set('/test_set', 'test-key') self.assertEquals('SET', set_result.action) |