Mercurial > hg
comparison tests/test-http-api-httpv2.t @ 41502:2f7408b7d247
tests: give up and make setsockopt() calls optional in the output
I can't figure out what causes these calls to happen or not, and I
weary of dealing with them. End the madness for now by marking them
all as optional lines of output.
Differential Revision: https://phab.mercurial-scm.org/D5762
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 30 Jan 2019 17:04:26 -0500 |
parents | 4f0aca2b8c21 |
children | 675775c33ab6 |
comparison
equal
deleted
inserted
replaced
41501:13dad5cb4b99 | 41502:2f7408b7d247 |
---|---|
16 $ sendhttpraw << EOF | 16 $ sendhttpraw << EOF |
17 > httprequest GET api/$HTTPV2 | 17 > httprequest GET api/$HTTPV2 |
18 > user-agent: test | 18 > user-agent: test |
19 > EOF | 19 > EOF |
20 using raw connection to peer | 20 using raw connection to peer |
21 s> setsockopt(6, 1, 1) -> None (py3 !) | 21 s> setsockopt(6, 1, 1) -> None (?) |
22 s> GET /api/exp-http-v2-0003 HTTP/1.1\r\n | 22 s> GET /api/exp-http-v2-0003 HTTP/1.1\r\n |
23 s> Accept-Encoding: identity\r\n | 23 s> Accept-Encoding: identity\r\n |
24 s> user-agent: test\r\n | 24 s> user-agent: test\r\n |
25 s> host: $LOCALIP:$HGPORT\r\n (glob) | 25 s> host: $LOCALIP:$HGPORT\r\n (glob) |
26 s> \r\n | 26 s> \r\n |
45 $ sendhttpraw << EOF | 45 $ sendhttpraw << EOF |
46 > httprequest POST api/$HTTPV2/ro/badcommand | 46 > httprequest POST api/$HTTPV2/ro/badcommand |
47 > user-agent: test | 47 > user-agent: test |
48 > EOF | 48 > EOF |
49 using raw connection to peer | 49 using raw connection to peer |
50 s> setsockopt(6, 1, 1) -> None (py3 !) | 50 s> setsockopt(6, 1, 1) -> None (?) |
51 s> POST /api/exp-http-v2-0003/ro/badcommand HTTP/1.1\r\n | 51 s> POST /api/exp-http-v2-0003/ro/badcommand HTTP/1.1\r\n |
52 s> Accept-Encoding: identity\r\n | 52 s> Accept-Encoding: identity\r\n |
53 s> user-agent: test\r\n | 53 s> user-agent: test\r\n |
54 s> host: $LOCALIP:$HGPORT\r\n (glob) | 54 s> host: $LOCALIP:$HGPORT\r\n (glob) |
55 s> \r\n | 55 s> \r\n |
67 $ sendhttpraw << EOF | 67 $ sendhttpraw << EOF |
68 > httprequest GET api/$HTTPV2/ro/customreadonly | 68 > httprequest GET api/$HTTPV2/ro/customreadonly |
69 > user-agent: test | 69 > user-agent: test |
70 > EOF | 70 > EOF |
71 using raw connection to peer | 71 using raw connection to peer |
72 s> setsockopt(6, 1, 1) -> None (py3 !) | 72 s> setsockopt(6, 1, 1) -> None (?) |
73 s> GET /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n | 73 s> GET /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n |
74 s> Accept-Encoding: identity\r\n | 74 s> Accept-Encoding: identity\r\n |
75 s> user-agent: test\r\n | 75 s> user-agent: test\r\n |
76 s> host: $LOCALIP:$HGPORT\r\n (glob) | 76 s> host: $LOCALIP:$HGPORT\r\n (glob) |
77 s> \r\n | 77 s> \r\n |
89 $ sendhttpraw << EOF | 89 $ sendhttpraw << EOF |
90 > httprequest POST api/$HTTPV2/ro/customreadonly | 90 > httprequest POST api/$HTTPV2/ro/customreadonly |
91 > user-agent: test | 91 > user-agent: test |
92 > EOF | 92 > EOF |
93 using raw connection to peer | 93 using raw connection to peer |
94 s> setsockopt(6, 1, 1) -> None (py3 !) | 94 s> setsockopt(6, 1, 1) -> None (?) |
95 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n | 95 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n |
96 s> Accept-Encoding: identity\r\n | 96 s> Accept-Encoding: identity\r\n |
97 s> user-agent: test\r\n | 97 s> user-agent: test\r\n |
98 s> host: $LOCALIP:$HGPORT\r\n (glob) | 98 s> host: $LOCALIP:$HGPORT\r\n (glob) |
99 s> \r\n | 99 s> \r\n |
112 > httprequest POST api/$HTTPV2/ro/customreadonly | 112 > httprequest POST api/$HTTPV2/ro/customreadonly |
113 > accept: invalid | 113 > accept: invalid |
114 > user-agent: test | 114 > user-agent: test |
115 > EOF | 115 > EOF |
116 using raw connection to peer | 116 using raw connection to peer |
117 s> setsockopt(6, 1, 1) -> None (py3 !) | 117 s> setsockopt(6, 1, 1) -> None (?) |
118 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n | 118 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n |
119 s> Accept-Encoding: identity\r\n | 119 s> Accept-Encoding: identity\r\n |
120 s> accept: invalid\r\n | 120 s> accept: invalid\r\n |
121 s> user-agent: test\r\n | 121 s> user-agent: test\r\n |
122 s> host: $LOCALIP:$HGPORT\r\n (glob) | 122 s> host: $LOCALIP:$HGPORT\r\n (glob) |
137 > accept: $MEDIATYPE | 137 > accept: $MEDIATYPE |
138 > user-agent: test | 138 > user-agent: test |
139 > content-type: badmedia | 139 > content-type: badmedia |
140 > EOF | 140 > EOF |
141 using raw connection to peer | 141 using raw connection to peer |
142 s> setsockopt(6, 1, 1) -> None (py3 !) | 142 s> setsockopt(6, 1, 1) -> None (?) |
143 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n | 143 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n |
144 s> Accept-Encoding: identity\r\n | 144 s> Accept-Encoding: identity\r\n |
145 s> accept: application/mercurial-exp-framing-0006\r\n | 145 s> accept: application/mercurial-exp-framing-0006\r\n |
146 s> content-type: badmedia\r\n | 146 s> content-type: badmedia\r\n |
147 s> user-agent: test\r\n | 147 s> user-agent: test\r\n |
164 > content-type: $MEDIATYPE | 164 > content-type: $MEDIATYPE |
165 > user-agent: test | 165 > user-agent: test |
166 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} | 166 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} |
167 > EOF | 167 > EOF |
168 using raw connection to peer | 168 using raw connection to peer |
169 s> setsockopt(6, 1, 1) -> None (py3 !) | 169 s> setsockopt(6, 1, 1) -> None (?) |
170 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n | 170 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n |
171 s> Accept-Encoding: identity\r\n | 171 s> Accept-Encoding: identity\r\n |
172 s> *\r\n (glob) | 172 s> *\r\n (glob) |
173 s> content-type: application/mercurial-exp-framing-0006\r\n | 173 s> content-type: application/mercurial-exp-framing-0006\r\n |
174 s> user-agent: test\r\n | 174 s> user-agent: test\r\n |
201 $ sendhttpv2peerverbose << EOF | 201 $ sendhttpv2peerverbose << EOF |
202 > command customreadonly | 202 > command customreadonly |
203 > EOF | 203 > EOF |
204 creating http peer for wire protocol version 2 | 204 creating http peer for wire protocol version 2 |
205 sending customreadonly command | 205 sending customreadonly command |
206 s> setsockopt(6, 1, 1) -> None (py3 !) | 206 s> setsockopt(6, 1, 1) -> None (?) |
207 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n | 207 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n |
208 s> Accept-Encoding: identity\r\n | 208 s> Accept-Encoding: identity\r\n |
209 s> accept: application/mercurial-exp-framing-0006\r\n | 209 s> accept: application/mercurial-exp-framing-0006\r\n |
210 s> content-type: application/mercurial-exp-framing-0006\r\n | 210 s> content-type: application/mercurial-exp-framing-0006\r\n |
211 s> content-length: 65\r\n | 211 s> content-length: 65\r\n |
249 $ sendhttpraw << EOF | 249 $ sendhttpraw << EOF |
250 > httprequest GET api/$HTTPV2/rw/customreadonly | 250 > httprequest GET api/$HTTPV2/rw/customreadonly |
251 > user-agent: test | 251 > user-agent: test |
252 > EOF | 252 > EOF |
253 using raw connection to peer | 253 using raw connection to peer |
254 s> setsockopt(6, 1, 1) -> None (py3 !) | 254 s> setsockopt(6, 1, 1) -> None (?) |
255 s> GET /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n | 255 s> GET /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n |
256 s> Accept-Encoding: identity\r\n | 256 s> Accept-Encoding: identity\r\n |
257 s> user-agent: test\r\n | 257 s> user-agent: test\r\n |
258 s> host: $LOCALIP:$HGPORT\r\n (glob) | 258 s> host: $LOCALIP:$HGPORT\r\n (glob) |
259 s> \r\n | 259 s> \r\n |
271 $ sendhttpraw << EOF | 271 $ sendhttpraw << EOF |
272 > httprequest GET api/$HTTPV2/rw/badcommand | 272 > httprequest GET api/$HTTPV2/rw/badcommand |
273 > user-agent: test | 273 > user-agent: test |
274 > EOF | 274 > EOF |
275 using raw connection to peer | 275 using raw connection to peer |
276 s> setsockopt(6, 1, 1) -> None (py3 !) | 276 s> setsockopt(6, 1, 1) -> None (?) |
277 s> GET /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n | 277 s> GET /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n |
278 s> Accept-Encoding: identity\r\n | 278 s> Accept-Encoding: identity\r\n |
279 s> user-agent: test\r\n | 279 s> user-agent: test\r\n |
280 s> host: $LOCALIP:$HGPORT\r\n (glob) | 280 s> host: $LOCALIP:$HGPORT\r\n (glob) |
281 s> \r\n | 281 s> \r\n |
293 $ sendhttpraw << EOF | 293 $ sendhttpraw << EOF |
294 > httprequest POST api/$HTTPV2/rw/customreadonly | 294 > httprequest POST api/$HTTPV2/rw/customreadonly |
295 > user-agent: test | 295 > user-agent: test |
296 > EOF | 296 > EOF |
297 using raw connection to peer | 297 using raw connection to peer |
298 s> setsockopt(6, 1, 1) -> None (py3 !) | 298 s> setsockopt(6, 1, 1) -> None (?) |
299 s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n | 299 s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n |
300 s> Accept-Encoding: identity\r\n | 300 s> Accept-Encoding: identity\r\n |
301 s> user-agent: test\r\n | 301 s> user-agent: test\r\n |
302 s> host: $LOCALIP:$HGPORT\r\n (glob) | 302 s> host: $LOCALIP:$HGPORT\r\n (glob) |
303 s> \r\n | 303 s> \r\n |
332 > accept: $MEDIATYPE | 332 > accept: $MEDIATYPE |
333 > content-type: $MEDIATYPE | 333 > content-type: $MEDIATYPE |
334 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} | 334 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} |
335 > EOF | 335 > EOF |
336 using raw connection to peer | 336 using raw connection to peer |
337 s> setsockopt(6, 1, 1) -> None (py3 !) | 337 s> setsockopt(6, 1, 1) -> None (?) |
338 s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n | 338 s> POST /api/exp-http-v2-0003/rw/customreadonly HTTP/1.1\r\n |
339 s> Accept-Encoding: identity\r\n | 339 s> Accept-Encoding: identity\r\n |
340 s> accept: application/mercurial-exp-framing-0006\r\n | 340 s> accept: application/mercurial-exp-framing-0006\r\n |
341 s> content-type: application/mercurial-exp-framing-0006\r\n | 341 s> content-type: application/mercurial-exp-framing-0006\r\n |
342 s> user-agent: test\r\n | 342 s> user-agent: test\r\n |
372 > httprequest POST api/$HTTPV2/rw/badcommand | 372 > httprequest POST api/$HTTPV2/rw/badcommand |
373 > user-agent: test | 373 > user-agent: test |
374 > accept: $MEDIATYPE | 374 > accept: $MEDIATYPE |
375 > EOF | 375 > EOF |
376 using raw connection to peer | 376 using raw connection to peer |
377 s> setsockopt(6, 1, 1) -> None (py3 !) | 377 s> setsockopt(6, 1, 1) -> None (?) |
378 s> POST /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n | 378 s> POST /api/exp-http-v2-0003/rw/badcommand HTTP/1.1\r\n |
379 s> Accept-Encoding: identity\r\n | 379 s> Accept-Encoding: identity\r\n |
380 s> accept: application/mercurial-exp-framing-0006\r\n | 380 s> accept: application/mercurial-exp-framing-0006\r\n |
381 s> user-agent: test\r\n | 381 s> user-agent: test\r\n |
382 s> host: $LOCALIP:$HGPORT\r\n (glob) | 382 s> host: $LOCALIP:$HGPORT\r\n (glob) |
395 $ sendhttpraw << EOF | 395 $ sendhttpraw << EOF |
396 > httprequest POST api/$HTTPV2/ro/debugreflect | 396 > httprequest POST api/$HTTPV2/ro/debugreflect |
397 > user-agent: test | 397 > user-agent: test |
398 > EOF | 398 > EOF |
399 using raw connection to peer | 399 using raw connection to peer |
400 s> setsockopt(6, 1, 1) -> None (py3 !) | 400 s> setsockopt(6, 1, 1) -> None (?) |
401 s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n | 401 s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n |
402 s> Accept-Encoding: identity\r\n | 402 s> Accept-Encoding: identity\r\n |
403 s> user-agent: test\r\n | 403 s> user-agent: test\r\n |
404 s> host: $LOCALIP:$HGPORT\r\n (glob) | 404 s> host: $LOCALIP:$HGPORT\r\n (glob) |
405 s> \r\n | 405 s> \r\n |
436 > content-type: $MEDIATYPE | 436 > content-type: $MEDIATYPE |
437 > user-agent: test | 437 > user-agent: test |
438 > frame 1 1 stream-begin command-request new cbor:{b'name': b'command1', b'args': {b'foo': b'val1', b'bar1': b'val'}} | 438 > frame 1 1 stream-begin command-request new cbor:{b'name': b'command1', b'args': {b'foo': b'val1', b'bar1': b'val'}} |
439 > EOF | 439 > EOF |
440 using raw connection to peer | 440 using raw connection to peer |
441 s> setsockopt(6, 1, 1) -> None (py3 !) | 441 s> setsockopt(6, 1, 1) -> None (?) |
442 s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n | 442 s> POST /api/exp-http-v2-0003/ro/debugreflect HTTP/1.1\r\n |
443 s> Accept-Encoding: identity\r\n | 443 s> Accept-Encoding: identity\r\n |
444 s> accept: application/mercurial-exp-framing-0006\r\n | 444 s> accept: application/mercurial-exp-framing-0006\r\n |
445 s> content-type: application/mercurial-exp-framing-0006\r\n | 445 s> content-type: application/mercurial-exp-framing-0006\r\n |
446 s> user-agent: test\r\n | 446 s> user-agent: test\r\n |
468 > content-type: $MEDIATYPE | 468 > content-type: $MEDIATYPE |
469 > user-agent: test | 469 > user-agent: test |
470 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} | 470 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} |
471 > EOF | 471 > EOF |
472 using raw connection to peer | 472 using raw connection to peer |
473 s> setsockopt(6, 1, 1) -> None (py3 !) | 473 s> setsockopt(6, 1, 1) -> None (?) |
474 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n | 474 s> POST /api/exp-http-v2-0003/ro/customreadonly HTTP/1.1\r\n |
475 s> Accept-Encoding: identity\r\n | 475 s> Accept-Encoding: identity\r\n |
476 s> accept: application/mercurial-exp-framing-0006\r\n | 476 s> accept: application/mercurial-exp-framing-0006\r\n |
477 s> content-type: application/mercurial-exp-framing-0006\r\n | 477 s> content-type: application/mercurial-exp-framing-0006\r\n |
478 s> user-agent: test\r\n | 478 s> user-agent: test\r\n |
511 > user-agent: test | 511 > user-agent: test |
512 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} | 512 > frame 1 1 stream-begin command-request new cbor:{b'name': b'customreadonly'} |
513 > frame 3 1 0 command-request new cbor:{b'name': b'customreadonly'} | 513 > frame 3 1 0 command-request new cbor:{b'name': b'customreadonly'} |
514 > EOF | 514 > EOF |
515 using raw connection to peer | 515 using raw connection to peer |
516 s> setsockopt(6, 1, 1) -> None (py3 !) | 516 s> setsockopt(6, 1, 1) -> None (?) |
517 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n | 517 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n |
518 s> Accept-Encoding: identity\r\n | 518 s> Accept-Encoding: identity\r\n |
519 s> *\r\n (glob) | 519 s> *\r\n (glob) |
520 s> *\r\n (glob) | 520 s> *\r\n (glob) |
521 s> user-agent: test\r\n | 521 s> user-agent: test\r\n |
565 > frame 3 1 0 command-request new|more \xa2Dargs\xa1Inamespace | 565 > frame 3 1 0 command-request new|more \xa2Dargs\xa1Inamespace |
566 > frame 3 1 0 command-request continuation JnamespacesDnameHlistkeys | 566 > frame 3 1 0 command-request continuation JnamespacesDnameHlistkeys |
567 > frame 1 1 0 command-request continuation IbookmarksDnameHlistkeys | 567 > frame 1 1 0 command-request continuation IbookmarksDnameHlistkeys |
568 > EOF | 568 > EOF |
569 using raw connection to peer | 569 using raw connection to peer |
570 s> setsockopt(6, 1, 1) -> None (py3 !) | 570 s> setsockopt(6, 1, 1) -> None (?) |
571 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n | 571 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n |
572 s> Accept-Encoding: identity\r\n | 572 s> Accept-Encoding: identity\r\n |
573 s> accept: application/mercurial-exp-framing-0006\r\n | 573 s> accept: application/mercurial-exp-framing-0006\r\n |
574 s> content-type: application/mercurial-exp-framing-0006\r\n | 574 s> content-type: application/mercurial-exp-framing-0006\r\n |
575 s> user-agent: test\r\n | 575 s> user-agent: test\r\n |
631 > content-type: $MEDIATYPE | 631 > content-type: $MEDIATYPE |
632 > user-agent: test | 632 > user-agent: test |
633 > frame 1 1 stream-begin command-request new cbor:{b'name': b'pushkey'} | 633 > frame 1 1 stream-begin command-request new cbor:{b'name': b'pushkey'} |
634 > EOF | 634 > EOF |
635 using raw connection to peer | 635 using raw connection to peer |
636 s> setsockopt(6, 1, 1) -> None (py3 !) | 636 s> setsockopt(6, 1, 1) -> None (?) |
637 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n | 637 s> POST /api/exp-http-v2-0003/ro/multirequest HTTP/1.1\r\n |
638 s> Accept-Encoding: identity\r\n | 638 s> Accept-Encoding: identity\r\n |
639 s> accept: application/mercurial-exp-framing-0006\r\n | 639 s> accept: application/mercurial-exp-framing-0006\r\n |
640 s> content-type: application/mercurial-exp-framing-0006\r\n | 640 s> content-type: application/mercurial-exp-framing-0006\r\n |
641 s> user-agent: test\r\n | 641 s> user-agent: test\r\n |
658 > command heads | 658 > command heads |
659 > EOF | 659 > EOF |
660 creating http peer for wire protocol version 2 | 660 creating http peer for wire protocol version 2 |
661 sending heads command | 661 sending heads command |
662 wire protocol version 2 encoder referenced in config (badencoder) is not known; ignoring | 662 wire protocol version 2 encoder referenced in config (badencoder) is not known; ignoring |
663 s> setsockopt(6, 1, 1) -> None (py3 !) | 663 s> setsockopt(6, 1, 1) -> None (?) |
664 s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n | 664 s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n |
665 s> Accept-Encoding: identity\r\n | 665 s> Accept-Encoding: identity\r\n |
666 s> accept: application/mercurial-exp-framing-0006\r\n | 666 s> accept: application/mercurial-exp-framing-0006\r\n |
667 s> content-type: application/mercurial-exp-framing-0006\r\n | 667 s> content-type: application/mercurial-exp-framing-0006\r\n |
668 s> content-length: 56\r\n | 668 s> content-length: 56\r\n |
704 $ hg --verbose debugwireproto --nologhandshake --peer http2 http://$LOCALIP:$HGPORT/ << EOF | 704 $ hg --verbose debugwireproto --nologhandshake --peer http2 http://$LOCALIP:$HGPORT/ << EOF |
705 > command heads | 705 > command heads |
706 > EOF | 706 > EOF |
707 creating http peer for wire protocol version 2 | 707 creating http peer for wire protocol version 2 |
708 sending heads command | 708 sending heads command |
709 s> setsockopt(6, 1, 1) -> None (py3 !) | 709 s> setsockopt(6, 1, 1) -> None (?) |
710 s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n | 710 s> POST /api/exp-http-v2-0003/ro/heads HTTP/1.1\r\n |
711 s> Accept-Encoding: identity\r\n | 711 s> Accept-Encoding: identity\r\n |
712 s> accept: application/mercurial-exp-framing-0006\r\n | 712 s> accept: application/mercurial-exp-framing-0006\r\n |
713 s> content-type: application/mercurial-exp-framing-0006\r\n | 713 s> content-type: application/mercurial-exp-framing-0006\r\n |
714 s> content-length: 70\r\n | 714 s> content-length: 70\r\n |