--- a/tests/test-wireproto-command-listkeys.t Wed Oct 03 12:57:01 2018 -0700
+++ b/tests/test-wireproto-command-listkeys.t Wed Oct 03 09:48:22 2018 -0700
@@ -31,44 +31,11 @@
> EOF
creating http peer for wire protocol version 2
sending listkeys command
- s> POST /api/exp-http-v2-0002/ro/listkeys HTTP/1.1\r\n
- s> Accept-Encoding: identity\r\n
- s> accept: application/mercurial-exp-framing-0005\r\n
- s> content-type: application/mercurial-exp-framing-0005\r\n
- s> content-length: 50\r\n
- s> host: $LOCALIP:$HGPORT\r\n (glob)
- s> user-agent: Mercurial debugwireproto\r\n
- s> \r\n
- s> *\x00\x00\x01\x00\x01\x01\x11\xa2Dargs\xa1InamespaceJnamespacesDnameHlistkeys
- s> makefile('rb', None)
- s> HTTP/1.1 200 OK\r\n
- s> Server: testing stub value\r\n
- s> Date: $HTTP_DATE$\r\n
- s> Content-Type: application/mercurial-exp-framing-0005\r\n
- s> Transfer-Encoding: chunked\r\n
- s> \r\n
- s> 13\r\n
- s> \x0b\x00\x00\x01\x00\x02\x011
- s> \xa1FstatusBok
- s> \r\n
- received frame(size=11; request=1; stream=2; streamflags=stream-begin; type=command-response; flags=continuation)
- s> 28\r\n
- s> \x00\x00\x01\x00\x02\x001
- s> \xa3Ibookmarks@Jnamespaces@Fphases@
- s> \r\n
- received frame(size=32; request=1; stream=2; streamflags=; type=command-response; flags=continuation)
- s> 8\r\n
- s> \x00\x00\x00\x01\x00\x02\x002
- s> \r\n
- s> 0\r\n
- s> \r\n
- received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
response: {
b'bookmarks': b'',
b'namespaces': b'',
b'phases': b''
}
- (sent 2 HTTP requests and * bytes; received * bytes in responses) (glob)
Request for phases works
@@ -78,43 +45,10 @@
> EOF
creating http peer for wire protocol version 2
sending listkeys command
- s> POST /api/exp-http-v2-0002/ro/listkeys HTTP/1.1\r\n
- s> Accept-Encoding: identity\r\n
- s> accept: application/mercurial-exp-framing-0005\r\n
- s> content-type: application/mercurial-exp-framing-0005\r\n
- s> content-length: 46\r\n
- s> host: $LOCALIP:$HGPORT\r\n (glob)
- s> user-agent: Mercurial debugwireproto\r\n
- s> \r\n
- s> &\x00\x00\x01\x00\x01\x01\x11\xa2Dargs\xa1InamespaceFphasesDnameHlistkeys
- s> makefile('rb', None)
- s> HTTP/1.1 200 OK\r\n
- s> Server: testing stub value\r\n
- s> Date: $HTTP_DATE$\r\n
- s> Content-Type: application/mercurial-exp-framing-0005\r\n
- s> Transfer-Encoding: chunked\r\n
- s> \r\n
- s> 13\r\n
- s> \x0b\x00\x00\x01\x00\x02\x011
- s> \xa1FstatusBok
- s> \r\n
- received frame(size=11; request=1; stream=2; streamflags=stream-begin; type=command-response; flags=continuation)
- s> 45\r\n
- s> =\x00\x00\x01\x00\x02\x001
- s> \xa2X(be0ef73c17ade3fc89dc41701eb9fc3a91b58282A1JpublishingDTrue
- s> \r\n
- received frame(size=61; request=1; stream=2; streamflags=; type=command-response; flags=continuation)
- s> 8\r\n
- s> \x00\x00\x00\x01\x00\x02\x002
- s> \r\n
- s> 0\r\n
- s> \r\n
- received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
response: {
b'be0ef73c17ade3fc89dc41701eb9fc3a91b58282': b'1',
b'publishing': b'True'
}
- (sent 2 HTTP requests and * bytes; received * bytes in responses) (glob)
Request for bookmarks works
@@ -124,41 +58,8 @@
> EOF
creating http peer for wire protocol version 2
sending listkeys command
- s> POST /api/exp-http-v2-0002/ro/listkeys HTTP/1.1\r\n
- s> Accept-Encoding: identity\r\n
- s> accept: application/mercurial-exp-framing-0005\r\n
- s> content-type: application/mercurial-exp-framing-0005\r\n
- s> content-length: 49\r\n
- s> host: $LOCALIP:$HGPORT\r\n (glob)
- s> user-agent: Mercurial debugwireproto\r\n
- s> \r\n
- s> )\x00\x00\x01\x00\x01\x01\x11\xa2Dargs\xa1InamespaceIbookmarksDnameHlistkeys
- s> makefile('rb', None)
- s> HTTP/1.1 200 OK\r\n
- s> Server: testing stub value\r\n
- s> Date: $HTTP_DATE$\r\n
- s> Content-Type: application/mercurial-exp-framing-0005\r\n
- s> Transfer-Encoding: chunked\r\n
- s> \r\n
- s> 13\r\n
- s> \x0b\x00\x00\x01\x00\x02\x011
- s> \xa1FstatusBok
- s> \r\n
- received frame(size=11; request=1; stream=2; streamflags=stream-begin; type=command-response; flags=continuation)
- s> 35\r\n
- s> -\x00\x00\x01\x00\x02\x001
- s> \xa1A@X(26805aba1e600a82e93661149f2313866a221a7b
- s> \r\n
- received frame(size=45; request=1; stream=2; streamflags=; type=command-response; flags=continuation)
- s> 8\r\n
- s> \x00\x00\x00\x01\x00\x02\x002
- s> \r\n
- s> 0\r\n
- s> \r\n
- received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
response: {
b'@': b'26805aba1e600a82e93661149f2313866a221a7b'
}
- (sent 2 HTTP requests and * bytes; received * bytes in responses) (glob)
$ cat error.log