Closed RomanBelozerov closed 1 year ago
Tests are failing becase of the wrong Deproxy address:
======================================================================
FAIL: test_parsing_make_request (selftests.test_deproxy.DeproxyTestH2)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/b3bf/git/tempesta-pr/selftests/test_deproxy.py", line 163, in test_parsing_make_request
self.start_all()
File "/home/b3bf/git/tempesta-pr/selftests/test_deproxy.py", line 143, in start_all
self.assertTrue(self.wait_all_connections())
AssertionError: False is not true
======================================================================
FAIL: test_with_body (selftests.test_deproxy.DeproxyTestH2)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/b3bf/git/tempesta-pr/selftests/test_deproxy.py", line 232, in test_with_body
self.start_all()
File "/home/b3bf/git/tempesta-pr/selftests/test_deproxy.py", line 143, in start_all
self.assertTrue(self.wait_all_connections())
AssertionError: False is not true
----------------------------------------------------------------------
Added new
parsing
variable for deproxy/deproxy-h2 clients. Parsing is enabled by default. And also removedH2Request
class because we use h2 library with integrated request parsing.Usage example:
deproxy
We will receive -
ValueError: invalid literal for int() with base 10: 'invalid'
. But if we disable request parsing:We will send request and receive response:
deproxy h2
Traceback output -
h2.exceptions.ProtocolError: Request header block does not have an :authority or Host header.
We will send request and receive dmesg warning -
Cant convert h2 request to http/1.1: no authority found
and response