tests/test-http.t
changeset 47329 717a94b423b9
parent 47318 5ac0f2a8ba72
child 48600 d9017df70135
equal deleted inserted replaced
47328:27e9ed1217c5 47329:717a94b423b9
   179   >    --pid-file=pid --config server.preferuncompressed=True -E ../errors2.log \
   179   >    --pid-file=pid --config server.preferuncompressed=True -E ../errors2.log \
   180   >    --config web.push_ssl=False --config web.allow_push=* -A ../access.log
   180   >    --config web.push_ssl=False --config web.allow_push=* -A ../access.log
   181   $ cat pid >> $DAEMON_PIDS
   181   $ cat pid >> $DAEMON_PIDS
   182 
   182 
   183   $ cat << EOF > get_pass.py
   183   $ cat << EOF > get_pass.py
   184   > import getpass
   184   > from mercurial import util
   185   > def newgetpass(arg):
   185   > def newgetpass():
   186   >   return "pass"
   186   >   return "pass"
   187   > getpass.getpass = newgetpass
   187   > util.get_password = newgetpass
   188   > EOF
   188   > EOF
   189 
   189 
   190   $ hg id http://localhost:$HGPORT2/
   190   $ hg id http://localhost:$HGPORT2/
   191   abort: http authorization required for http://localhost:$HGPORT2/
   191   abort: http authorization required for http://localhost:$HGPORT2/
   192   [255]
   192   [255]