tests/test-hgweb.t
changeset 22560 4109cc16279e
parent 22046 7a9cbb315d84
parent 22506 6e1fbcb18a75
child 22578 939ce500c92a
equal deleted inserted replaced
22559:4e0b696a1cb3 22560:4109cc16279e
   118   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?cmd=spam&style=raw'
   118   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?cmd=spam&style=raw'
   119   400* (glob)
   119   400* (glob)
   120   
   120   
   121   
   121   
   122   error: no such method: spam
   122   error: no such method: spam
       
   123   [1]
       
   124 
       
   125   $ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT '?cmd=spam'
       
   126   400 no such method: spam
       
   127   [1]
       
   128 
       
   129 should give a 400 - bad command as a part of url path (issue4071)
       
   130 
       
   131   $ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT 'spam'
       
   132   400 no such method: spam
       
   133   [1]
       
   134 
       
   135   $ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT 'raw-spam'
       
   136   400 no such method: spam
       
   137   [1]
       
   138 
       
   139   $ "$TESTDIR/get-with-headers.py" --headeronly localhost:$HGPORT 'spam/tip/foo'
       
   140   400 no such method: spam
   123   [1]
   141   [1]
   124 
   142 
   125 should give a 404 - file does not exist
   143 should give a 404 - file does not exist
   126 
   144 
   127   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork?style=raw'
   145   $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork?style=raw'
   306   $ cat hg.pid >> $DAEMON_PIDS
   324   $ cat hg.pid >> $DAEMON_PIDS
   307 
   325 
   308 Test the access/error files are opened in append mode
   326 Test the access/error files are opened in append mode
   309 
   327 
   310   $ python -c "print len(file('access.log').readlines()), 'log lines written'"
   328   $ python -c "print len(file('access.log').readlines()), 'log lines written'"
   311   10 log lines written
   329   14 log lines written
   312 
   330 
   313 static file
   331 static file
   314 
   332 
   315   $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
   333   $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
   316   200 Script output follows
   334   200 Script output follows