summaryrefslogtreecommitdiffhomepage
path: root/test/test_proxy.py (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-0/+1
Also fixed various pylint errors and style issues.
2023-11-08Tests: 8XXX used as default port range.Andrei Zeliankou1-30/+30
After the launch of the project, the testing infrastructure was shared with nginx project in some cases. To avoid port overlap, a decision was made to shift the port range for Unit tests. This problem was resolved a long time ago and is no longer relevant, so it is now safe to use port 8XXX range as the default, as it is more appropriate for testing purposes.
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-394/+411
Class usage came from the unittest framework and it was always redundant after migration to the pytest. This commit removes classes from files containing tests to make them more readable and understandable.
2023-06-12Tests: prerequisites checking reworked.Andrei Zeliankou1-2/+2
Prerequisites check moved to the module level to simplify class structure. Discovery and prerequisites checks functions moved to the separate files. Introduced "require" fixture to provide per-test requirements check.
2023-05-25Tests: unified setup method usage.Andrei Zeliankou1-38/+39
To make fixtures accessible inside of setup methods in tests all these methods are renamed to the "setup_method_fixture" and decorated by autouse flag. Also all setup methods moved to the top of the files.
2023-05-25Tests: removed unused variables.Andrei Zeliankou1-1/+1
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-25/+18
Previously, it was necessary to support older versions of Python for compatibility. F-strings were released in Python 3.6. Python 3.5 was marked as unsupported by the end of 2020, so now it's possible to start using f-strings safely for better readability and performance.
2022-10-11Tests: don't try to return response when "no_recv" is True.Andrei Zeliankou1-18/+7
2022-09-07Tests: minor fixes.Andrei Zeliankou1-4/+0
2022-04-11Tests: style.Andrei Zeliankou1-6/+3
2021-12-12Tests: fixed type of applications.Andrei Zeliankou1-5/+5
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-04-05Tests: style.Andrei Zeliankou1-4/+6
2021-02-08Tests: added "--restart" option.Andrei Zeliankou1-0/+1
Now Unit do not restart after each test by default.
2021-01-14Tests: added missing checks for configuration results.Andrei Zeliankou1-2/+4
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2020-12-08Tests: skip_alert() converted to the fixture.Andrei Zeliankou1-2/+1
2020-12-08Tests: utils module introduced.Andrei Zeliankou1-1/+1
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-6/+6
2020-10-07Tests: minor fixes.Andrei Zeliankou1-3/+5
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-243/+174
2020-03-17Fixing body fd access racing condition.Max Romanov1-2/+0
To avoid closing the body fd prematurely, the fd value is moved from the request struct to the app link. The body fd should not be closed immediately after the request is sent to the application due to possible request rescheduling.
2020-03-12Tests: skip "close failed" alert in test_proxy_parallel test.Andrei Zeliankou1-0/+2
2020-05-15Tests: style.Andrei Zeliankou1-1/+2
2020-05-15Tests: test_proxy_invalid simplified.Andrei Zeliankou1-79/+20
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2020-04-20Tests: skips adjusted.Andrei Zeliankou1-1/+8
2020-02-04Tests: fixing Python 3.8.1 errors on Mac.Max Romanov1-3/+4
- "Can't pickle local object ..." - "if __name__ == '__main__':" pattern required for multiprocessing
2020-02-20Tests: added proxy test with large body.Andrei Zeliankou1-0/+7
2019-11-14Tests: proxy tests.Andrei Zeliankou1-0/+622