test: Verify request payload is uploaded consistently#34066
test: Verify request payload is uploaded consistently#34066aduh95 merged 1 commit intonodejs:mainfrom
Conversation
3a9b24a to
02d39b8
Compare
|
@awwright there are some failing tests which keep this from landing. Do you still want to work on this? |
|
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
|
@aduh95 Those failed tests are bugs in the HTTP implementation that need to be fixed. However I'm not sure what the process is for doing this, exactly. |
|
I think the process is to move those tests to |
|
@aduh95 I rebased and moved the tests, I'm hoping that is sufficient? |
|
Regarding the naming of the file, what about:
|
|
That seems reasonable. It's not obvious in how the files are written, but I'm trying to test the behavior in both directions, too. I actually forget off-hand if the bug is in requests only, or both request and responses. |
|
@awwright Do you want to rename those files so we can move forward with this? |
|
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
|
Closing this because it has stalled. Feel free to reopen if this PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions. |
|
@nodejs/http |
|
I am a little swamped atm. I don't think I am going to be able to work on it now. Sorry. |
|
What else exactly does this need? Can we not merge a test that's showing an actual, live bug? |
7cb53b7 to
b753797
Compare
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <aaa@bzfx.net> Co-authored-by: Lenvin Gonsalves <lenvingonsalves@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
|
Landed in d4e365f |
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <aaa@bzfx.net> Co-authored-by: Lenvin Gonsalves <lenvingonsalves@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <jasnell@gmail.com>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <aaa@bzfx.net> Co-authored-by: Lenvin Gonsalves <lenvingonsalves@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <jasnell@gmail.com>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <aaa@bzfx.net> Co-authored-by: Lenvin Gonsalves <lenvingonsalves@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <jasnell@gmail.com>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <aaa@bzfx.net> Co-authored-by: Lenvin Gonsalves <lenvingonsalves@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <jasnell@gmail.com>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <aaa@bzfx.net> Co-authored-by: Lenvin Gonsalves <lenvingonsalves@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: nodejs#34066 Refs: nodejs#27880 Reviewed-By: James M Snell <jasnell@gmail.com>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <aaa@bzfx.net> Co-authored-by: Lenvin Gonsalves <lenvingonsalves@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: nodejs#34066 Refs: nodejs#27880 Reviewed-By: James M Snell <jasnell@gmail.com>
This adds several HTTP tests testing for the behavior identified in #27880:
Connection: closeso shouldn't the server close the connection by this point?)ClientRequest#writeshould be a chunked encoding.ClientRequest#endshould be a standard message, with an automatically computed Content-Length header.ClientRequest#endshould have no payload headers if there's no response bodyNaming for the test files will probably need to be reconsidered; suggestions welcome.
Refs: #27880
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes