diff options
author | Sachin Kelkar <sachinkel19@gmail.com> | 2016-07-27 17:57:38 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-07-27 17:57:38 -0700 |
commit | 17fdb841f023a546ebb56bc8ae81fb6f74b224cc (patch) | |
tree | 178b84e74637bd096621d661c594e6dc9a5592aa /test/mitmproxy/test_proxy.py | |
parent | 3636ed7d41a53819e38996022c16326a53e47a9e (diff) | |
download | mitmproxy-17fdb841f023a546ebb56bc8ae81fb6f74b224cc.tar.gz mitmproxy-17fdb841f023a546ebb56bc8ae81fb6f74b224cc.tar.bz2 mitmproxy-17fdb841f023a546ebb56bc8ae81fb6f74b224cc.zip |
verify upstream certificates by default (#1111)
squashed and merged by @mhils
Diffstat (limited to 'test/mitmproxy/test_proxy.py')
-rw-r--r-- | test/mitmproxy/test_proxy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mitmproxy/test_proxy.py b/test/mitmproxy/test_proxy.py index 6e790e28..84838018 100644 --- a/test/mitmproxy/test_proxy.py +++ b/test/mitmproxy/test_proxy.py @@ -146,9 +146,9 @@ class TestProcessProxyOptions: "--singleuser", "test") - def test_verify_upstream_cert(self): - p = self.assert_noerr("--verify-upstream-cert") - assert p.openssl_verification_mode_server == SSL.VERIFY_PEER + def test_insecure(self): + p = self.assert_noerr("--insecure") + assert p.openssl_verification_mode_server == SSL.VERIFY_NONE def test_upstream_trusted_cadir(self): expected_dir = "/path/to/a/ca/dir" |