tests/test-https.t
changeset 25472 4d2b9b304ad0
parent 25428 51e7acc34b0a
child 25478 d19787db6fe0
equal deleted inserted replaced
25470:378a8e700e02 25472:4d2b9b304ad0
   300 - ignores that certificate doesn't match hostname
   300 - ignores that certificate doesn't match hostname
   301   $ hg -R copy-pull id https://127.0.0.1:$HGPORT/
   301   $ hg -R copy-pull id https://127.0.0.1:$HGPORT/
   302   5fed3813f7f5
   302   5fed3813f7f5
   303 
   303 
   304 HGPORT1 is reused below for tinyproxy tests. Kill that server.
   304 HGPORT1 is reused below for tinyproxy tests. Kill that server.
   305   $ "$TESTDIR/killdaemons.py" hg1.pid
   305   $ killdaemons.py hg1.pid
   306 
   306 
   307 Prepare for connecting through proxy
   307 Prepare for connecting through proxy
   308 
   308 
   309   $ "$TESTDIR/tinyproxy.py" $HGPORT1 localhost >proxy.log </dev/null 2>&1 &
   309   $ tinyproxy.py $HGPORT1 localhost >proxy.log </dev/null 2>&1 &
   310   $ while [ ! -f proxy.pid ]; do sleep 0; done
   310   $ while [ ! -f proxy.pid ]; do sleep 0; done
   311   $ cat proxy.pid >> $DAEMON_PIDS
   311   $ cat proxy.pid >> $DAEMON_PIDS
   312 
   312 
   313   $ echo "[http_proxy]" >> copy-pull/.hg/hgrc
   313   $ echo "[http_proxy]" >> copy-pull/.hg/hgrc
   314   $ echo "always=True" >> copy-pull/.hg/hgrc
   314   $ echo "always=True" >> copy-pull/.hg/hgrc
   344   pulling from https://localhost:$HGPORT2/
   344   pulling from https://localhost:$HGPORT2/
   345   abort: error: *certificate verify failed* (glob)
   345   abort: error: *certificate verify failed* (glob)
   346   [255]
   346   [255]
   347 
   347 
   348 
   348 
   349   $ "$TESTDIR/killdaemons.py" hg0.pid
   349   $ killdaemons.py hg0.pid
   350 
   350 
   351 #if sslcontext
   351 #if sslcontext
   352 
   352 
   353 Start patched hgweb that requires client certificates:
   353 Start patched hgweb that requires client certificates:
   354 
   354