tests/test-lfs-serve-access.t
changeset 40662 93e5d18251d6
parent 40661 380f5131ee7b
child 40881 8695fbe17f7c
equal deleted inserted replaced
40661:380f5131ee7b 40662:93e5d18251d6
   280 Test a bad checksum sent by the client in the transfer API
   280 Test a bad checksum sent by the client in the transfer API
   281 
   281 
   282   $ hg -R client push http://localhost:$HGPORT1
   282   $ hg -R client push http://localhost:$HGPORT1
   283   pushing to http://localhost:$HGPORT1/
   283   pushing to http://localhost:$HGPORT1/
   284   searching for changes
   284   searching for changes
   285   abort: HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)!
   285   abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)!
   286   [255]
   286   [255]
   287 
   287 
   288   $ echo 'test lfs file' > server/lfs3.bin
   288   $ echo 'test lfs file' > server/lfs3.bin
   289   $ hg --config experimental.lfs.disableusercache=True \
   289   $ hg --config experimental.lfs.disableusercache=True \
   290   >    -R server ci -Aqm 'another lfs file'
   290   >    -R server ci -Aqm 'another lfs file'
   292 
   292 
   293 Test an I/O error during the processing of the GET request
   293 Test an I/O error during the processing of the GET request
   294 
   294 
   295   $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
   295   $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
   296   >    -R client update -r tip
   296   >    -R client update -r tip
   297   abort: HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
   297   abort: LFS HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
   298   [255]
   298   [255]
   299 
   299 
   300 Test a checksum failure during the processing of the GET request
   300 Test a checksum failure during the processing of the GET request
   301 
   301 
   302   $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
   302   $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
   303   >    -R client update -r tip
   303   >    -R client update -r tip
   304   abort: HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
   304   abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
   305   [255]
   305   [255]
   306 
   306 
   307   $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
   307   $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
   308 
   308 
   309   $ cat $TESTTMP/access.log
   309   $ cat $TESTTMP/access.log