History log of /unit/test/test_routing.py (Results 1 – 25 of 58)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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.


Revision tags: 1.20.0-1, 1.20.0
# 1635:97afbb6c5a15 07-Oct-2020 Andrei Zeliankou

Tests: minor fixes.


# 1633:e3b9665c4fdf 07-Oct-2020 Valentin Bartenev

Router: fixed "not empty" pattern matching.

The "!" pattern should be opposite to "", i.e. match only non-empty values.
But after 3c00af54b937 it was equal to "!*", which is wrong.


# 1597:be1483ecf2a0 28-Aug-2020 hongzhidao

Router: fixed "pass" to upstreams.

Messed up return values in nxt_upstream_find() caused error in applying any
configuration with a valid "pass" value in router configuration pointing to
upstream.

Router: fixed "pass" to upstreams.

Messed up return values in nxt_upstream_find() caused error in applying any
configuration with a valid "pass" value in router configuration pointing to
upstream. That wasn't the case in "listeners" objects, where the return value
wasn't checked.

Also, it caused segfault in cases where the "pass" option was configured with
variables and resulting value was pointing to a non-existent upstream.

Added missing return checks as well to catch possible memory allocation errors.

The bug was introduced in d32bc428f46b.

This closes #472 issue on GitHub.

show more ...


# 1596:b7e2d4d92624 16-Sep-2020 Andrei Zeliankou

Tests: migrated to the pytest.


Revision tags: 1.19.0-1, 1.19.0
# 1510:945e0b006858 10-Jul-2020 Axel Duch

Router: route patterns multi wildcards fix.

Matching 'start' and 'end' position now adjusted to avoid false matching.

This is related to #434 issue on Github.
Thanks to 洪志道 (Hong Zhi Dao).


# 1508:3c00af54b937 04-Jul-2020 Axel Duch

Router: route patterns multi wildcards support.


123