tempesta-tech / tempesta-test

Test suite for Tempesta FW
11 stars 4 forks source link

Test explicit body length specification for methdos having body #287

Open krizhanovsky opened 2 years ago

krizhanovsky commented 2 years ago

The development task is https://github.com/tempesta-tech/tempesta/issues/1676 . Need to fix currently disabled tests long_body.test_request_wrong_length.RequestMissingBodyLength and long_body.test_request_wrong_length.RequestSmallBodyLength and also please implement the test with 2 requests are the above. Implement the tests for POST as well. Test that Tempesta FW resets connection and prints warnings.

RomanBelozerov commented 2 years ago

I reworked tests with new framework in #304. But long_body.test_request_wrong_length.RequestSmallBodyLength is requires reworking deproxy client. Now read_sized_body method splits request into two, If Content-length header is smaller than actual body length. And we receive two responses from Tempesta.