Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-07-11 | Tests: added tests for response header variables. | Andrei Zeliankou | 1 | -0/+93 | |
2023-06-14 | Tests: no caching for $uri variable. | Andrei Zeliankou | 1 | -0/+23 | |
2023-06-14 | Tests: get rid of classes in test files. | Andrei Zeliankou | 1 | -336/+345 | |
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-12 | Tests: prerequisites checking reworked. | Andrei Zeliankou | 1 | -2/+0 | |
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-29 | Tests: more fixtures. | Andrei Zeliankou | 1 | -61/+62 | |
Common methods from applications/proto.py converted to the fixtures. sysctl check moved to the specific file where it is using. Some options moved to the constructor to have early access. | |||||
2023-05-25 | Tests: assertion related fixes. | Andrei Zeliankou | 1 | -7/+10 | |
2023-05-25 | Tests: "temp_dir" fixture used were possible. | Andrei Zeliankou | 1 | -2/+2 | |
2023-05-25 | Tests: unified setup method usage. | Andrei Zeliankou | 1 | -1/+3 | |
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-02-21 | Tests: switched to using f-strings. | Andrei Zeliankou | 1 | -11/+11 | |
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-11-20 | Var: improved variable parsing with empty names. | Zhidao HONG | 1 | -0/+1 | |
Unit parsed the case of "$uri$$host" into unknown variables. This commit makes it invalid variable instead. | |||||
2022-11-15 | Tests: fixed assertion in test_variables_dynamic. | Andrei Zeliankou | 1 | -4/+7 | |
2022-10-13 | Tests: added tests for the $request_time variable. | Andrei Zeliankou | 1 | -0/+29 | |
2022-10-11 | Tests: reworked "test_variables.py". | Andrei Zeliankou | 1 | -194/+259 | |
Access log used for the variables testing instead of limited routing. Added missed test for $status variable. Some tests moved from "test_access_log.py" to "test_variables.py". | |||||
2022-07-20 | Tests: added tests for translating $dollar into a literal $. | Andrew Clayton | 1 | -0/+21 | |
If you need to specify a $ in a URI you can now use '$dollar' or '${dollar}'. Added some tests for the above to test_variables.py setting a Location string. | |||||
2022-07-19 | Tests: added tests for more HTTP variables. | Andrei Zeliankou | 1 | -0/+51 | |
2022-07-14 | Tests: added tests for dynamic variables. | Andrei Zeliankou | 1 | -0/+82 | |
2022-06-01 | Tests: improved test for $request_uri variable. | Andrei Zeliankou | 1 | -2/+2 | |
2022-05-31 | Tests: Added tests for $request_uri. | Alejandro Colomar | 1 | -0/+9 | |
2022-01-31 | Tests: removed TestApplicationTLS.get_server_certificate(). | Andrei Zeliankou | 1 | -8/+4 | |
distutils.version is replaced by packaging.version. Also minor style fixes. | |||||
2021-08-02 | Router: fixed segmentation fault. | Zhidao HONG | 1 | -0/+19 | |
In the case that routes or upstreams is empty and the pass option is a variable. If the resolved pass is routes or upstreams, a segment error occurred. | |||||
2021-04-05 | Tests: style. | Andrei Zeliankou | 1 | -10/+2 | |
2020-10-19 | Tests: fixed unit.log print. | Andrei Zeliankou | 1 | -2/+0 | |
2020-09-21 | Tests: added variable test with nonexistent upstream. | Andrei Zeliankou | 1 | -0/+23 | |
2020-09-16 | Tests: migrated to the pytest. | Andrei Zeliankou | 1 | -49/+40 | |
2020-08-31 | Tests: $host varaible test. | Andrei Zeliankou | 1 | -7/+24 | |
Also added few tests for $uri and minor style fixes. | |||||
2020-08-13 | Tests: added variables tests. | Andrei Zeliankou | 1 | -0/+94 | |