History log of /unit/test/test_routing.py (Results 1 – 25 of 64)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2592:e079c44a8340 08-Nov-2023 Andrei Zeliankou

Tests: 8XXX used as default port range.

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

Tests: 8XXX used as default port range.

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.

show more ...


Revision tags: 1.31.1-1, 1.31.1, 1.31.0-1, 1.31.0
# 2491:aae60837ac20 14-Jun-2023 Andrei Zeliankou

Tests: get rid of classes in test files.

Class usage came from the unittest framework and it was always redundant
after migration to the pytest. This commit removes classes from files
containing te

Tests: get rid of classes in test files.

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.

show more ...


# 2488:55440e02a873 12-Jun-2023 Andrei Zeliankou

Tests: prerequisites checking reworked.

Prerequisites check moved to the module level to simplify class structure.
Discovery and prerequisites checks functions moved to the separate files.
Introduce

Tests: prerequisites checking reworked.

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.

show more ...


# 2478:c08289a08a73 25-May-2023 Andrei Zeliankou

Tests: unified setup method usage.

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 s

Tests: unified setup method usage.

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.

show more ...


# 2477:4633c7db7fb5 25-May-2023 Andrei Zeliankou

Tests: removed unused variables.


Revision tags: 1.30.0-1, 1.30.0, 1.29.1-1, 1.29.1
# 2330:4b1f175f9c88 21-Feb-2023 Andrei Zeliankou

Tests: switched to using f-strings.

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

Tests: switched to using f-strings.

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.

show more ...


Revision tags: 1.29.0-1, 1.29.0
# 2212:975ab1624784 11-Oct-2022 Andrei Zeliankou

Tests: don't try to return response when "no_recv" is True.


# 2203:6b6b979e8214 18-Sep-2022 Zhidao HONG

HTTP: fixed cookie parsing.

The fixing supports the cookie value with the '=' character.

This is related to #756 PR on Github.
Thanks to changxiaocui.


Revision tags: 1.28.0-1, 1.28.0
# 2171:20f712007059 08-Aug-2022 Andrei Zeliankou

Tests: added tests with UNIX sockets in "source".


Revision tags: 1.27.0-1, 1.27.0
# 2073:bc6ad31ce286 11-Apr-2022 Andrei Zeliankou

Tests: style.


# 2055:84cb1ec94bae 12-Dec-2021 Andrei Zeliankou

Tests: fixed type of applications.


Revision tags: 1.26.1-1, 1.26.1, 1.26.0-1, 1.26.0
# 2001:9d1eda3634b3 10-Nov-2021 Andrei Zeliankou

Tests: added more tests for "query" routing pattern.


# 1991:61155eb41a96 05-Nov-2021 Zhidao HONG

Router: matching query string support.

The "query" option matches decoded arguments, including plus ('+') to
space (' '). Like "uri", it can be a string or an array of strings.


# 1971:3410f9d2a662 18-Oct-2021 Andrei Zeliankou

Tests: style.


Revision tags: 1.25.0-1, 1.25.0
# 1930:fb8b29aac7a1 05-Aug-2021 Oisin Canty

Router: fixed crash when matching an empty address pattern array.

A crash would occur when the router tried to match an
against an empty address pattern array.

The following configuration was used

Router: fixed crash when matching an empty address pattern array.

A crash would occur when the router tried to match an
against an empty address pattern array.

The following configuration was used to reproduce the
issue:

{
"listeners": {
"127.0.0.1:8082": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"source": []
},
"action": {
"return": 200
}
}
]
}

show more ...


Revision tags: 1.24.0-1, 1.24.0
# 1875:6e77d607c7a3 24-May-2021 Andrei Zeliankou

Tests: minor fixes.


# 1848:4bd548074e2c 05-Apr-2021 Andrei Zeliankou

Tests: style.


# 1846:b94036cd2d95 31-Mar-2021 Andrei Zeliankou

Tests: removed skip_alert().


Revision tags: 1.23.0-1, 1.23.0
# 1807:858dbd8c0894 18-Feb-2021 Andrei Zeliankou

Tests: added regex check.


Revision tags: 1.22.0-1, 1.22.0
# 1775:4b4991514356 14-Jan-2021 Andrei Zeliankou

Tests: added missing checks for configuration results.


# 1771:94cf6c5fafbd 13-Jan-2021 Andrei Zeliankou

Tests: style.


# 1736:22db875fda34 08-Dec-2020 Andrei Zeliankou

Tests: skip_alert() converted to the fixture.


# 1730:44912af5b3e6 06-Dec-2020 Andrei Zeliankou

Tests: options moved to the separate class.

This change is necessary to separate the logic
and prevent possible circular dependency.


Revision tags: 1.21.0-1, 1.21.0
# 1721:53b6ab9b324b 17-Nov-2020 Axel Duch

Router: matching regular expressions support.


# 1654:fc7d0578e124 19-Oct-2020 Andrei Zeliankou

Tests: fixed unit.log print.


123