Skip to content

Conversation

@shinrich
Copy link
Member

@shinrich shinrich commented Sep 24, 2018

Adding another test with a chunked post body that will cross multiple data frames.

In the course of writing this test, I realized that the micro server does not check the post body to verify that the post body matches the request definition. Need to add another lookup key option, but will do that in a separate PR.

I eyeballed the debug messages to ensure that the post data chunks were overlapping appropriately.

@shinrich shinrich added this to the 9.0.0 milestone Sep 24, 2018
@shinrich shinrich self-assigned this Sep 24, 2018
{"headers": "HTTP/1.1 200 OK\r\nServer: microserver\r\nConnection: close\r\nContent-Length: 10\r\n\r\n", "timestamp": "1469733493.993", "body": "0123456789"})

# Make a post body that will be split across at least two frames
big_post_body = "023456789" * 131070
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpicks: 023?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, meant to have a 1 there too. Will add

@shinrich shinrich force-pushed the augment_post_chunked_tests branch from 78b68b5 to c8acee4 Compare September 25, 2018 13:26
@shinrich
Copy link
Member Author

Pushed new version to fix typo in big post body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants