From 80690b79062c739fc8adfc725d39a68d4b65b43a Mon Sep 17 00:00:00 2001 From: "Michael J. Bazzinotti" Date: Mon, 28 Dec 2015 15:20:45 -0500 Subject: [docs/libmproxy/test] Support single client-side cert file as argument to --client-certs --- test/test_proxy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/test_proxy.py') diff --git a/test/test_proxy.py b/test/test_proxy.py index b3e7258a..a0530c79 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -1,3 +1,4 @@ +import os import mock from OpenSSL import SSL @@ -99,8 +100,11 @@ class TestProcessProxyOptions: def test_client_certs(self): with tutils.tmpdir() as cadir: self.assert_noerr("--client-certs", cadir) + self.assert_noerr( + "--client-certs", + os.path.join(tutils.test_data.path("data/clientcert"), "client.pem")) self.assert_err( - "directory does not exist", + "not a file or directory", "--client-certs", "nonexistent") -- cgit v1.2.3 From 09168e1274b0e33448811c39efa3fbdd2aeff756 Mon Sep 17 00:00:00 2001 From: "Michael J. Bazzinotti" Date: Tue, 29 Dec 2015 11:48:02 -0500 Subject: client-cert: Simplify and cleanup simplify the error message when cert path does not exist. During tests, reset the clientcerts proxy config setting to None Remove now-unused clientcerts code from class ProxTestBase --- test/test_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_proxy.py') diff --git a/test/test_proxy.py b/test/test_proxy.py index a0530c79..b498c800 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -104,7 +104,7 @@ class TestProcessProxyOptions: "--client-certs", os.path.join(tutils.test_data.path("data/clientcert"), "client.pem")) self.assert_err( - "not a file or directory", + "path does not exist", "--client-certs", "nonexistent") -- cgit v1.2.3