diff --git a/tests/test-http-api-httpv2.t b/tests/test-http-api-httpv2.t --- a/tests/test-http-api-httpv2.t +++ b/tests/test-http-api-httpv2.t @@ -18,6 +18,7 @@ HTTP v2 protocol not enabled by default > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> GET /api/exp-http-v2-0003 HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -46,6 +47,7 @@ Request to unknown command yields 404 > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/badcommand HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -67,6 +69,7 @@ GET to read-only command yields a 405 > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> GET /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -88,6 +91,7 @@ Missing Accept header results in 406 > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -110,6 +114,7 @@ Bad Accept header results in 406 > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: invalid\r\n @@ -134,6 +139,7 @@ Bad Content-Type header results in 415 > content-type: badmedia > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -160,6 +166,7 @@ Request to read-only command works out o > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> *\r\n (glob) @@ -196,6 +203,7 @@ Request to read-only command works out o > EOF creating http peer for wire protocol version 2 sending customreadonly command + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -243,6 +251,7 @@ GET to read-write request yields 405 > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> GET /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -264,6 +273,7 @@ Even for unknown commands > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> GET /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -285,6 +295,7 @@ SSL required by default > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -323,6 +334,7 @@ Authorized request for valid read-write > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -362,6 +374,7 @@ Authorized request for unknown command i > accept: $MEDIATYPE > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -384,6 +397,7 @@ debugreflect isn't enabled by default > user-agent: test > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> user-agent: test\r\n @@ -424,6 +438,7 @@ Command frames can be reflected via debu > frame 1 1 stream-begin command-request new cbor:{b'name': b'command1', b'args': {b'foo': b'val1', b'bar1': b'val'}} > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -455,6 +470,7 @@ Multiple requests to regular command URL > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -497,6 +513,7 @@ Multiple requests to "multirequest" URL > frame 3 1 0 command-request new cbor:{b'name': b'customreadonly'} > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> *\r\n (glob) @@ -550,6 +567,7 @@ Interleaved requests to "multirequest" a > frame 1 1 0 command-request continuation IbookmarksDnameHlistkeys > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -615,6 +633,7 @@ Attempting to run a read-write command v > frame 1 1 stream-begin command-request new cbor:{b'name': b'pushkey'} > EOF using raw connection to peer + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -641,6 +660,7 @@ Defining an invalid content encoding res creating http peer for wire protocol version 2 sending heads command wire protocol version 2 encoder referenced in config (badencoder) is not known; ignoring + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n @@ -686,6 +706,7 @@ Defining an invalid content encoding res > EOF creating http peer for wire protocol version 2 sending heads command + s> setsockopt(6, 1, 1) -> None (py3 !) s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0006\r\n