tests: add HTTP POST and PUT support to the $LOGDATE$ substitution
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 23 Feb 2018 20:50:10 -0500
changeset 36385 003ae586a02e
parent 36384 caa3d42f616d
child 36387 dbf34d0ef9f6
tests: add HTTP POST and PUT support to the $LOGDATE$ substitution The lfs serving code uses both POST and PUT requests (and there's existing support for POST).
tests/common-pattern.py
--- a/tests/common-pattern.py	Fri Feb 23 18:47:26 2018 +0530
+++ b/tests/common-pattern.py	Fri Feb 23 20:50:10 2018 -0500
@@ -69,8 +69,8 @@
      br'$USUAL_BUNDLE2_CAPS_SERVER$'
      ),
     # HTTP log dates
-    (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "GET',
-     br' - - [$LOGDATE$] "GET'
+    (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "(GET|PUT|POST)',
+     lambda m: br' - - [$LOGDATE$] "' + m.group(1)
     ),
     # Windows has an extra '/' in the following lines that get globbed away:
     #   pushing to file:/*/$TESTTMP/r2 (glob)