-
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
Fix and enable test accoring to #1716 #486
Conversation
voodam
commented
Jul 7, 2023
- burst messages can exceed the limit x2, so we need to assert range
- connection_* frang limits (will be renamed to tcp_connection_*) affect any connection (both TLS and non TLS), so rework FrangConnectionTlsAndNonTlsRateBurst
- rename testcases for better readability
dad46f9
to
27efa75
Compare
4fc8c19
to
41615ba
Compare
It seems we need to merge broken tests because of config directives renaming. We can't redefine both branches of tempesta and tempesta-tests for now, as I know. |
41615ba
to
3bc4f01
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.
FAIL: test_connection_burst (t_frang.test_connection_rate_burst.FrangTls)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/other/tempesta-test/t_frang/test_connection_rate_burst.py", line 131, in test_connection_burst
self._base_burst_scenario(connections=11)
File "/mnt/other/tempesta-test/t_frang/test_connection_rate_burst.py", line 92, in _base_burst_scenario
self.assertConnReseted(curl.last_response)
File "/mnt/other/tempesta-test/t_frang/frang_test_case.py", line 108, in assertConnReseted
self.assertEqual(r.status, 0)
AssertionError: 200 != 0
FAIL: test_connection_burst (t_frang.test_connection_rate_burst.FrangTcp)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/other/tempesta-test/t_frang/test_connection_rate_burst.py", line 131, in test_connection_burst
self._base_burst_scenario(connections=11)
File "/mnt/other/tempesta-test/t_frang/test_connection_rate_burst.py", line 89, in _base_burst_scenario
self.assertFrangWarning(warning=self.burst_warning, expected=warning_count)
File "/mnt/other/tempesta-test/t_frang/frang_test_case.py", line 119, in assertFrangWarning
self.assertTrue(test_value, self.assert_msg.format(exp=expected, got=warning_count))
AssertionError: False is not true : Expected nums of warnings in `journalctl`: range(1, 6), but got 10
1e3b4b2
to
782d55e
Compare
The tests reworked significantly. |
e38a0fb
to
7052565
Compare
7052565
to
9db139a
Compare
9db139a
to
9f31bde
Compare
b218856
to
99cbbcb
Compare
- Client IP is bound to client by default - Proper IPs are set now in many tests
62a21e8
to
5a1def0
Compare
…due to active polling used inside.
- It created several times in Frang testcases before - It called sysctl even if message_cost is disabled already - It restored the original message_cost value in random time (when destuctor called) Some that cases (I don't know what exactly and how) led to the behaviour when messages was suppressed anyway.
IP confusling: - regression.test_invalid.TestInvalidResponse.test_204_with_body - regression.test_invalid.TestInvalidResponse.test_no_crlf_before_body - tcp_connection.test_connection_close.CloseConnection.test Flacking ones: - t_frang.test_request_rate_burst.FrangRequestBurstTestCase.test_two_clients_one_ip - t_frang.test_request_rate_burst.FrangRequestBurstTestCase.test_two_clients_two_ip - t_frang.test_request_rate_burst.FrangRequestRateTestCase.test_two_clients_one_ip - t_frang.test_request_rate_burst.FrangRequestRateTestCase.test_two_clients_two_ip
- Add getsockname info logging - Make output more uniform
6a89483
to
1b28904
Compare
Add --from-failstr parameter, example of usage: ./run_tests.py -F 'FAIL: test_connection_burst (t_frang.test_connection_rate_burst.FrangTls)'
- Main motivation wait_until moved under the hood of warn_count() (renamed to find()). This leads to changing signature - we need predicate to have valid poll condition. - Refactoring: renamed some arguments and methods. - Removed unused and unnecessary methods.
aae893b
to
16752be
Compare