##// END OF EJS Templates
tests: add optional setsockopt() lines for Python 3...
Gregory Szorc -
r41447:4f0aca2b default
parent child Browse files
Show More
@@ -18,6 +18,7 HTTP v2 protocol not enabled by default
18 18 > user-agent: test
19 19 > EOF
20 20 using raw connection to peer
21 s> setsockopt(6, 1, 1) -> None (py3 !)
21 22 s> GET /api/exp-http-v2-0003 HTTP/1.1\r\n
22 23 s> Accept-Encoding: identity\r\n
23 24 s> user-agent: test\r\n
@@ -46,6 +47,7 Request to unknown command yields 404
46 47 > user-agent: test
47 48 > EOF
48 49 using raw connection to peer
50 s> setsockopt(6, 1, 1) -> None (py3 !)
49 51 s> POST /api/exp-http-v2-0003/ro/badcommand HTTP/1.1\r\n
50 52 s> Accept-Encoding: identity\r\n
51 53 s> user-agent: test\r\n
@@ -67,6 +69,7 GET to read-only command yields a 405
67 69 > user-agent: test
68 70 > EOF
69 71 using raw connection to peer
72 s> setsockopt(6, 1, 1) -> None (py3 !)
70 73 s> GET /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n
71 74 s> Accept-Encoding: identity\r\n
72 75 s> user-agent: test\r\n
@@ -88,6 +91,7 Missing Accept header results in 406
88 91 > user-agent: test
89 92 > EOF
90 93 using raw connection to peer
94 s> setsockopt(6, 1, 1) -> None (py3 !)
91 95 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n
92 96 s> Accept-Encoding: identity\r\n
93 97 s> user-agent: test\r\n
@@ -110,6 +114,7 Bad Accept header results in 406
110 114 > user-agent: test
111 115 > EOF
112 116 using raw connection to peer
117 s> setsockopt(6, 1, 1) -> None (py3 !)
113 118 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n
114 119 s> Accept-Encoding: identity\r\n
115 120 s> accept: invalid\r\n
@@ -134,6 +139,7 Bad Content-Type header results in 415
134 139 > content-type: badmedia
135 140 > EOF
136 141 using raw connection to peer
142 s> setsockopt(6, 1, 1) -> None (py3 !)
137 143 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n
138 144 s> Accept-Encoding: identity\r\n
139 145 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -160,6 +166,7 Request to read-only command works out o
160 166 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'}
161 167 > EOF
162 168 using raw connection to peer
169 s> setsockopt(6, 1, 1) -> None (py3 !)
163 170 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n
164 171 s> Accept-Encoding: identity\r\n
165 172 s> *\r\n (glob)
@@ -196,6 +203,7 Request to read-only command works out o
196 203 > EOF
197 204 creating http peer for wire protocol version 2
198 205 sending customreadonly command
206 s> setsockopt(6, 1, 1) -> None (py3 !)
199 207 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n
200 208 s> Accept-Encoding: identity\r\n
201 209 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -243,6 +251,7 GET to read-write request yields 405
243 251 > user-agent: test
244 252 > EOF
245 253 using raw connection to peer
254 s> setsockopt(6, 1, 1) -> None (py3 !)
246 255 s> GET /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n
247 256 s> Accept-Encoding: identity\r\n
248 257 s> user-agent: test\r\n
@@ -264,6 +273,7 Even for unknown commands
264 273 > user-agent: test
265 274 > EOF
266 275 using raw connection to peer
276 s> setsockopt(6, 1, 1) -> None (py3 !)
267 277 s> GET /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n
268 278 s> Accept-Encoding: identity\r\n
269 279 s> user-agent: test\r\n
@@ -285,6 +295,7 SSL required by default
285 295 > user-agent: test
286 296 > EOF
287 297 using raw connection to peer
298 s> setsockopt(6, 1, 1) -> None (py3 !)
288 299 s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n
289 300 s> Accept-Encoding: identity\r\n
290 301 s> user-agent: test\r\n
@@ -323,6 +334,7 Authorized request for valid read-write
323 334 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'}
324 335 > EOF
325 336 using raw connection to peer
337 s> setsockopt(6, 1, 1) -> None (py3 !)
326 338 s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n
327 339 s> Accept-Encoding: identity\r\n
328 340 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -362,6 +374,7 Authorized request for unknown command i
362 374 > accept: $MEDIATYPE
363 375 > EOF
364 376 using raw connection to peer
377 s> setsockopt(6, 1, 1) -> None (py3 !)
365 378 s> POST /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n
366 379 s> Accept-Encoding: identity\r\n
367 380 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -384,6 +397,7 debugreflect isn't enabled by default
384 397 > user-agent: test
385 398 > EOF
386 399 using raw connection to peer
400 s> setsockopt(6, 1, 1) -> None (py3 !)
387 401 s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n
388 402 s> Accept-Encoding: identity\r\n
389 403 s> user-agent: test\r\n
@@ -424,6 +438,7 Command frames can be reflected via debu
424 438 > frame 1 1 stream-begin command-request new cbor:{b'name': b'command1', b'args': {b'foo': b'val1', b'bar1': b'val'}}
425 439 > EOF
426 440 using raw connection to peer
441 s> setsockopt(6, 1, 1) -> None (py3 !)
427 442 s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n
428 443 s> Accept-Encoding: identity\r\n
429 444 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -455,6 +470,7 Multiple requests to regular command URL
455 470 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'}
456 471 > EOF
457 472 using raw connection to peer
473 s> setsockopt(6, 1, 1) -> None (py3 !)
458 474 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n
459 475 s> Accept-Encoding: identity\r\n
460 476 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -497,6 +513,7 Multiple requests to "multirequest" URL
497 513 > frame 3 1 0 command-request new cbor:{b'name': b'customreadonly'}
498 514 > EOF
499 515 using raw connection to peer
516 s> setsockopt(6, 1, 1) -> None (py3 !)
500 517 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n
501 518 s> Accept-Encoding: identity\r\n
502 519 s> *\r\n (glob)
@@ -550,6 +567,7 Interleaved requests to "multirequest" a
550 567 > frame 1 1 0 command-request continuation IbookmarksDnameHlistkeys
551 568 > EOF
552 569 using raw connection to peer
570 s> setsockopt(6, 1, 1) -> None (py3 !)
553 571 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n
554 572 s> Accept-Encoding: identity\r\n
555 573 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -615,6 +633,7 Attempting to run a read-write command v
615 633 > frame 1 1 stream-begin command-request new cbor:{b'name': b'pushkey'}
616 634 > EOF
617 635 using raw connection to peer
636 s> setsockopt(6, 1, 1) -> None (py3 !)
618 637 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n
619 638 s> Accept-Encoding: identity\r\n
620 639 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -641,6 +660,7 Defining an invalid content encoding res
641 660 creating http peer for wire protocol version 2
642 661 sending heads command
643 662 wire protocol version 2 encoder referenced in config (badencoder) is not known; ignoring
663 s> setsockopt(6, 1, 1) -> None (py3 !)
644 664 s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n
645 665 s> Accept-Encoding: identity\r\n
646 666 s> accept: application/mercurial-exp-framing-0006\r\n
@@ -686,6 +706,7 Defining an invalid content encoding res
686 706 > EOF
687 707 creating http peer for wire protocol version 2
688 708 sending heads command
709 s> setsockopt(6, 1, 1) -> None (py3 !)
689 710 s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n
690 711 s> Accept-Encoding: identity\r\n
691 712 s> accept: application/mercurial-exp-framing-0006\r\n
General Comments 0
You need to be logged in to leave comments. Login now