[PATCH] tests: add HTTP POST and PUT support to the $LOGDATE$ substitution
Matt Harbison
mharbison72 at gmail.com
Sat Feb 24 03:02:10 UTC 2018
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1519437010 18000
# Fri Feb 23 20:50:10 2018 -0500
# Node ID 14510712ffab7d3b779fe3eeba6b94f003ca10f7
# Parent 762820292aea1fe3948e05b3ac65f2d448386626
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).
diff --git a/tests/common-pattern.py b/tests/common-pattern.py
--- a/tests/common-pattern.py
+++ b/tests/common-pattern.py
@@ -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)
More information about the Mercurial-devel
mailing list