Mercurial > hg-stable
comparison tests/test-http-api-httpv2.t @ 37724:deff7cf7eefd
wireprotov2: change frame type and name for command response
There was hole at frame type value 3. And the frame is better
named as a command response.
Differential Revision: https://phab.mercurial-scm.org/D3384
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 14 Apr 2018 14:37:23 -0700 |
parents | 89a16704114c |
children | 3ea8323d6f95 |
comparison
equal
deleted
inserted
replaced
37723:e8fba6d578f0 | 37724:deff7cf7eefd |
---|---|
173 s> Date: $HTTP_DATE$\r\n | 173 s> Date: $HTTP_DATE$\r\n |
174 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 174 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
175 s> Transfer-Encoding: chunked\r\n | 175 s> Transfer-Encoding: chunked\r\n |
176 s> \r\n | 176 s> \r\n |
177 s> 27\r\n | 177 s> 27\r\n |
178 s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response | 178 s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response |
179 s> \r\n | 179 s> \r\n |
180 s> 0\r\n | 180 s> 0\r\n |
181 s> \r\n | 181 s> \r\n |
182 | 182 |
183 $ sendhttpv2peer << EOF | 183 $ sendhttpv2peer << EOF |
200 s> Date: $HTTP_DATE$\r\n | 200 s> Date: $HTTP_DATE$\r\n |
201 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 201 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
202 s> Transfer-Encoding: chunked\r\n | 202 s> Transfer-Encoding: chunked\r\n |
203 s> \r\n | 203 s> \r\n |
204 s> 27\r\n | 204 s> 27\r\n |
205 s> \x1f\x00\x00\x01\x00\x02\x01B | 205 s> \x1f\x00\x00\x01\x00\x02\x012 |
206 s> X\x1dcustomreadonly bytes response | 206 s> X\x1dcustomreadonly bytes response |
207 s> \r\n | 207 s> \r\n |
208 received frame(size=31; request=1; stream=2; streamflags=stream-begin; type=bytes-response; flags=eos) | 208 received frame(size=31; request=1; stream=2; streamflags=stream-begin; type=command-response; flags=eos) |
209 s> 0\r\n | 209 s> 0\r\n |
210 s> \r\n | 210 s> \r\n |
211 response: [b'customreadonly bytes response'] | 211 response: [b'customreadonly bytes response'] |
212 | 212 |
213 Request to read-write command fails because server is read-only by default | 213 Request to read-write command fails because server is read-only by default |
314 s> Date: $HTTP_DATE$\r\n | 314 s> Date: $HTTP_DATE$\r\n |
315 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 315 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
316 s> Transfer-Encoding: chunked\r\n | 316 s> Transfer-Encoding: chunked\r\n |
317 s> \r\n | 317 s> \r\n |
318 s> 27\r\n | 318 s> 27\r\n |
319 s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response | 319 s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response |
320 s> \r\n | 320 s> \r\n |
321 s> 0\r\n | 321 s> 0\r\n |
322 s> \r\n | 322 s> \r\n |
323 | 323 |
324 Authorized request for unknown command is rejected | 324 Authorized request for unknown command is rejected |
437 s> Date: $HTTP_DATE$\r\n | 437 s> Date: $HTTP_DATE$\r\n |
438 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 438 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
439 s> Transfer-Encoding: chunked\r\n | 439 s> Transfer-Encoding: chunked\r\n |
440 s> \r\n | 440 s> \r\n |
441 s> 27\r\n | 441 s> 27\r\n |
442 s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response | 442 s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response |
443 s> \r\n | 443 s> \r\n |
444 s> 0\r\n | 444 s> 0\r\n |
445 s> \r\n | 445 s> \r\n |
446 | 446 |
447 Multiple requests to "multirequest" URL are allowed | 447 Multiple requests to "multirequest" URL are allowed |
470 s> Date: $HTTP_DATE$\r\n | 470 s> Date: $HTTP_DATE$\r\n |
471 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 471 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
472 s> Transfer-Encoding: chunked\r\n | 472 s> Transfer-Encoding: chunked\r\n |
473 s> \r\n | 473 s> \r\n |
474 s> 27\r\n | 474 s> 27\r\n |
475 s> \x1f\x00\x00\x01\x00\x02\x01BX\x1dcustomreadonly bytes response | 475 s> \x1f\x00\x00\x01\x00\x02\x012X\x1dcustomreadonly bytes response |
476 s> \r\n | 476 s> \r\n |
477 s> 27\r\n | 477 s> 27\r\n |
478 s> \x1f\x00\x00\x03\x00\x02\x00BX\x1dcustomreadonly bytes response | 478 s> \x1f\x00\x00\x03\x00\x02\x002X\x1dcustomreadonly bytes response |
479 s> \r\n | 479 s> \r\n |
480 s> 0\r\n | 480 s> 0\r\n |
481 s> \r\n | 481 s> \r\n |
482 | 482 |
483 Interleaved requests to "multirequest" are processed | 483 Interleaved requests to "multirequest" are processed |
508 s> Date: $HTTP_DATE$\r\n | 508 s> Date: $HTTP_DATE$\r\n |
509 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 509 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
510 s> Transfer-Encoding: chunked\r\n | 510 s> Transfer-Encoding: chunked\r\n |
511 s> \r\n | 511 s> \r\n |
512 s> 28\r\n | 512 s> 28\r\n |
513 s> \x00\x00\x03\x00\x02\x01B\xa3Fphases@Ibookmarks@Jnamespaces@ | 513 s> \x00\x00\x03\x00\x02\x012\xa3Fphases@Ibookmarks@Jnamespaces@ |
514 s> \r\n | 514 s> \r\n |
515 s> 9\r\n | 515 s> 9\r\n |
516 s> \x01\x00\x00\x01\x00\x02\x00B\xa0 | 516 s> \x01\x00\x00\x01\x00\x02\x002\xa0 |
517 s> \r\n | 517 s> \r\n |
518 s> 0\r\n | 518 s> 0\r\n |
519 s> \r\n | 519 s> \r\n |
520 | 520 |
521 Restart server to disable read-write access | 521 Restart server to disable read-write access |