tests/test-http-bundle1.t
changeset 28549 e01bd7385f4f
parent 27739 d6d3cf5fda6f
child 28996 b74ca9ace65e
equal deleted inserted replaced
28548:b7a31068cc80 28549:e01bd7385f4f
    20   adding foo
    20   adding foo
    21   adding foo.d/bAr.hg.d/BaR
    21   adding foo.d/bAr.hg.d/BaR
    22   adding foo.d/baR.d.hg/bAR
    22   adding foo.d/baR.d.hg/bAR
    23   adding foo.d/foo
    23   adding foo.d/foo
    24   $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log
    24   $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log
    25   $ hg --config server.uncompressed=False serve -p $HGPORT1 -d --pid-file=../hg2.pid
    25   $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid
    26 
    26 
    27 Test server address cannot be reused
    27 Test server address cannot be reused
    28 
    28 
    29 #if windows
    29 #if windows
    30   $ hg serve -p $HGPORT1 2>&1
    30   $ hg serve -p $HGPORT1 2>&1
   161   >     if base64.b64decode(auth.split()[1]).split(':', 1) != ['user', 'pass']:
   161   >     if base64.b64decode(auth.split()[1]).split(':', 1) != ['user', 'pass']:
   162   >         raise common.ErrorResponse(common.HTTP_FORBIDDEN, 'no')
   162   >         raise common.ErrorResponse(common.HTTP_FORBIDDEN, 'no')
   163   > def extsetup():
   163   > def extsetup():
   164   >     common.permhooks.insert(0, perform_authentication)
   164   >     common.permhooks.insert(0, perform_authentication)
   165   > EOT
   165   > EOT
   166   $ hg --config extensions.x=userpass.py serve -p $HGPORT2 -d --pid-file=pid \
   166   $ hg serve --config extensions.x=userpass.py -p $HGPORT2 -d --pid-file=pid \
   167   >    --config server.preferuncompressed=True \
   167   >    --config server.preferuncompressed=True \
   168   >    --config web.push_ssl=False --config web.allow_push=* -A ../access.log
   168   >    --config web.push_ssl=False --config web.allow_push=* -A ../access.log
   169   $ cat pid >> $DAEMON_PIDS
   169   $ cat pid >> $DAEMON_PIDS
   170 
   170 
   171   $ cat << EOF > get_pass.py
   171   $ cat << EOF > get_pass.py