Mercurial > hg > mercurial-source
changeset 23835:bd72e75f09e7
test-https: glob error messages more so we pass on Python 2.7.9
Python 2.7.9 cleans up how it stringifies SSL errors, so we have to look only
for the important bit (certificate verify failed) rather than looking for
specific ssl module goop (which is now unstable).
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Jan 2015 15:15:37 -0500 |
parents | 02f4560b69b7 |
children | e278fc8bb0c3 |
files | tests/test-https.t |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-https.t +++ b/tests/test-https.t @@ -121,7 +121,7 @@ $ DISABLEOSXDUMMYCERT= #if osx $ hg clone https://localhost:$HGPORT/ copy-pull - abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) + abort: error: *certificate verify failed* (glob) [255] $ DISABLEOSXDUMMYCERT="--config=web.cacerts=" @@ -205,7 +205,7 @@ searching for changes no changes found $ hg -R copy-pull pull --config web.cacerts=pub-other.pem - abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) + abort: error: *certificate verify failed* (glob) [255] $ hg -R copy-pull pull --config web.cacerts=pub-other.pem --insecure warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting) @@ -218,7 +218,7 @@ $ hg -R test serve -p $HGPORT1 -d --pid-file=hg1.pid --certificate=server-not-yet.pem $ cat hg1.pid >> $DAEMON_PIDS $ hg -R copy-pull pull --config web.cacerts=pub-not-yet.pem https://localhost:$HGPORT1/ - abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) + abort: error: *certificate verify failed* (glob) [255] Test server cert which no longer is valid @@ -226,7 +226,7 @@ $ hg -R test serve -p $HGPORT2 -d --pid-file=hg2.pid --certificate=server-expired.pem $ cat hg2.pid >> $DAEMON_PIDS $ hg -R copy-pull pull --config web.cacerts=pub-expired.pem https://localhost:$HGPORT2/ - abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) + abort: error: *certificate verify failed* (glob) [255] Fingerprints @@ -286,8 +286,8 @@ Test https with cert problems through proxy $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --config web.cacerts=pub-other.pem - abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) + abort: error: *certificate verify failed* (glob) [255] $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --config web.cacerts=pub-expired.pem https://localhost:$HGPORT2/ - abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) + abort: error: *certificate verify failed* (glob) [255]