##// END OF EJS Templates
tests: test https through http proxy...
Mads Kiilerich -
r13423:4e60dad2 default
parent child Browse files
Show More
@@ -224,3 +224,47 b' Fingerprints'
224 224 - ignores that certificate doesn't match hostname
225 225 $ hg -R copy-pull id https://127.0.0.1:$HGPORT/
226 226 5fed3813f7f5
227
228 Prepare for connecting through proxy
229
230 $ kill `cat hg1.pid`
231 $ sleep 1
232
233 $ ("$TESTDIR/tinyproxy.py" $HGPORT1 localhost >proxy.log 2>&1 </dev/null &
234 $ echo $! > proxy.pid)
235 $ cat proxy.pid >> $DAEMON_PIDS
236 $ sleep 2
237
238 $ echo "[http_proxy]" >> copy-pull/.hg/hgrc
239 $ echo "always=True" >> copy-pull/.hg/hgrc
240 $ echo "[hostfingerprints]" >> copy-pull/.hg/hgrc
241 $ echo "localhost =" >> copy-pull/.hg/hgrc
242
243 Test unvalidated https through proxy
244
245 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --insecure --traceback
246 pulling from https://localhost:$HGPORT/
247 searching for changes
248 no changes found
249
250 Test https with cacert and fingerprint through proxy
251
252 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --config web.cacerts=pub.pem
253 pulling from https://localhost:$HGPORT/
254 searching for changes
255 no changes found
256 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull https://127.0.0.1:$HGPORT/
257 pulling from https://127.0.0.1:$HGPORT/
258 searching for changes
259 no changes found
260
261 Test https with cert problems through proxy
262
263 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --config web.cacerts=pub-other.pem
264 pulling from https://localhost:$HGPORT/
265 searching for changes
266 no changes found
267 $ http_proxy=http://localhost:$HGPORT1/ hg -R copy-pull pull --config web.cacerts=pub-expired.pem https://localhost:$HGPORT2/
268 pulling from https://localhost:$HGPORT2/
269 searching for changes
270 no changes found
General Comments 0
You need to be logged in to leave comments. Login now