Mercurial > hg
diff tests/test-http-protocol.t @ 37008:16203c6079e7
tests: use $HTTP_DATE$ for Date header
Support for the $HTTP_DATE$ substitution was recently added. Let's
adopt it more widely.
We had to tweak the substitution to be case insensitive, since
HTTP headers are case insensitive. I also found a minor test
issue not globbing over the length of the Server response header.
Differential Revision: https://phab.mercurial-scm.org/D2839
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 13 Mar 2018 08:58:52 -0700 |
parents | a6d95a8b7243 |
children | 5890e5872f36 |
line wrap: on
line diff
--- a/tests/test-http-protocol.t Mon Mar 12 15:49:02 2018 -0700 +++ b/tests/test-http-protocol.t Tue Mar 13 08:58:52 2018 -0700 @@ -49,7 +49,7 @@ $ get-with-headers.py --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - 200 Script output follows content-type: application/mercurial-0.1 - date: * (glob) + date: $HTTP_DATE$ server: * (glob) transfer-encoding: chunked @@ -58,7 +58,7 @@ $ get-with-headers.py --hgproto '0.1' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - 200 Script output follows content-type: application/mercurial-0.1 - date: * (glob) + date: $HTTP_DATE$ server: * (glob) transfer-encoding: chunked @@ -67,14 +67,14 @@ $ get-with-headers.py --hgproto '0.2' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - 200 Script output follows content-type: application/mercurial-0.2 - date: * (glob) + date: $HTTP_DATE$ server: * (glob) transfer-encoding: chunked $ get-with-headers.py --hgproto '0.1 0.2' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - 200 Script output follows content-type: application/mercurial-0.2 - date: * (glob) + date: $HTTP_DATE$ server: * (glob) transfer-encoding: chunked @@ -83,7 +83,7 @@ $ get-with-headers.py --hgproto '0.2 comp=aa' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - 200 Script output follows content-type: application/mercurial-0.1 - date: * (glob) + date: $HTTP_DATE$ server: * (glob) transfer-encoding: chunked @@ -105,7 +105,7 @@ 200 Script output follows content-length: 41 content-type: application/mercurial-0.1 - date: * (glob) + date: $HTTP_DATE$ server: * (glob) e93700bd72895c5addab234c56d4024b487a362f