-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reworked long body tests #304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests looks good, but need some changes in request parsing and error handling
edd7b6c
to
c5a9e67
Compare
Need to develop tests to verify tempesta-tech/tempesta#1418. Tests must include:
Also need to make version of each test with enabled tempesta caching. In case of chunked, response returned from cache must contain |
c5a9e67
to
49f4df5
Compare
…nd big data for client and server deproxy. Added disabling start clients in start_all_services method.
49f4df5
to
1ff9428
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got errors when running with the default config.
./run_tests.py t_long_body t_wrong_body_length t_stress
======================================================================
FAIL: test_http (t_long_body.test_long_request.LongBodyInRequest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 158, in test_http
self._test(
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 134, in _test
client.send_request(
File "/root/tempesta-test2/framework/deproxy_client.py", line 319, in send_request
assert curr_responses + 1 == len(self.responses), "Deproxy client has lost response."
AssertionError: Deproxy client has lost response.
======================================================================
FAIL: test_https (t_long_body.test_long_request.LongBodyInRequest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 163, in test_https
self._test(
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 134, in _test
client.send_request(
File "/root/tempesta-test2/framework/deproxy_client.py", line 319, in send_request
assert curr_responses + 1 == len(self.responses), "Deproxy client has lost response."
AssertionError: Deproxy client has lost response.
======================================================================
FAIL: test_many_big_chunks_in_request_http (t_long_body.test_long_request.LongBodyInRequest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 185, in test_many_big_chunks_in_request_http
self._test(
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 134, in _test
client.send_request(
File "/root/tempesta-test2/framework/deproxy_client.py", line 319, in send_request
assert curr_responses + 1 == len(self.responses), "Deproxy client has lost response."
AssertionError: Deproxy client has lost response.
======================================================================
FAIL: test_many_big_chunks_in_request_https (t_long_body.test_long_request.LongBodyInRequest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 192, in test_many_big_chunks_in_request_https
self._test(
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 134, in _test
client.send_request(
File "/root/tempesta-test2/framework/deproxy_client.py", line 319, in send_request
assert curr_responses + 1 == len(self.responses), "Deproxy client has lost response."
AssertionError: Deproxy client has lost response.
======================================================================
FAIL: test_one_big_chunk_in_request_http (t_long_body.test_long_request.LongBodyInRequest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 171, in test_one_big_chunk_in_request_http
self._test(
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 134, in _test
client.send_request(
File "/root/tempesta-test2/framework/deproxy_client.py", line 319, in send_request
assert curr_responses + 1 == len(self.responses), "Deproxy client has lost response."
AssertionError: Deproxy client has lost response.
======================================================================
FAIL: test_one_big_chunk_in_request_https (t_long_body.test_long_request.LongBodyInRequest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 178, in test_one_big_chunk_in_request_https
self._test(
File "/root/tempesta-test2/t_long_body/test_long_request.py", line 134, in _test
client.send_request(
File "/root/tempesta-test2/framework/deproxy_client.py", line 319, in send_request
assert curr_responses + 1 == len(self.responses), "Deproxy client has lost response."
AssertionError: Deproxy client has lost response.
----------------------------------------------------------------------
Ran 77 tests in 499.843s
FAILED (failures=6, skipped=11)
|
Checked how
|
…n tests_disabled.json
I checked this branch on CI machine and it works with 500 MB body. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
long_body tests is separated to t_long_body, t_wrong_body_length and t_stress.
I reworked old tests for new framework, and also added tests: