changeset 36385:003ae586a02e

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).
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 23 Feb 2018 20:50:10 -0500
parents caa3d42f616d
children dbf34d0ef9f6
files tests/common-pattern.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)