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).
--- 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)