summaryrefslogtreecommitdiffhomepage
path: root/test/test_routing.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-7/+5
2020-10-07Tests: minor fixes.Andrei Zeliankou1-1/+2
2020-10-07Router: fixed "not empty" pattern matching.Valentin Bartenev1-0/+15
The "!" pattern should be opposite to "", i.e. match only non-empty values. But after 3c00af54b937 it was equal to "!*", which is wrong.
2020-08-28Router: fixed "pass" to upstreams.hongzhidao1-0/+79
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.
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-1061/+816
2020-07-10Router: route patterns multi wildcards fix.Axel Duch1-0/+21
Matching 'start' and 'end' position now adjusted to avoid false matching. This is related to #434 issue on Github. Thanks to 洪志道 (Hong Zhi Dao).
2020-07-04Router: route patterns multi wildcards support.Axel Duch1-5/+44
2020-05-15Tests: added test for encoding in the "pass" option.Andrei Zeliankou1-0/+55
2020-05-15Tests: style.Andrei Zeliankou1-1/+2
2020-05-14Tests: decode uri and args.Axel Duch1-35/+158
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2020-04-14Tests: minor fixes and style.Andrei Zeliankou1-1/+1
2020-03-27Tests: added tests for "return" action.Andrei Zeliankou1-136/+25
2020-01-31Tests: more routing tests with negative rules.Andrei Zeliankou1-0/+57
2020-03-03Tests: check unique options in "action" object.Andrei Zeliankou1-0/+50
2020-03-03Improved validation of the "action" object.Valentin Bartenev1-2/+0
Now it enforces the mutual exclusivity of "pass", "proxy", and "share" options.
2020-02-27Tests: added test with invalid IPv6 address in routing block.Andrei Zeliankou1-0/+1
2019-12-24Tests: routing by listener address.Axel Duch1-0/+58
2019-12-24Tests: routing by client address configuration.Axel Duch1-0/+353
2019-12-09Tests: routing tests refactored.Andrei Zeliankou1-1770/+329
2019-10-23Tests: more URI normalization tests.Andrey Zelenkov1-8/+52
2019-10-23Tests: check initial configuration in test_routing.py.Andrey Zelenkov1-27/+31
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-07-24Added routing based on request scheme.Axel Duch1-0/+94
Scheme matches exact string “http” or “https”.
2019-07-14Tests: simplified one route case configuration.Andrey Zelenkov1-661/+406
No functional changes.
2019-07-02Tests: removed misleading comments in test_routing.t.Andrey Zelenkov1-2/+2
2019-06-10Cookie-based routing should be case-sensitive.Igor Sysoev1-11/+22
2019-05-30Tests: routing "cookies" tests.Andrey Zelenkov1-0/+482
2019-05-30Tests: routing "arguments" tests.Andrey Zelenkov1-0/+434
2019-05-30Tests: routing "headers" tests.Andrey Zelenkov1-0/+481
2019-05-30Tests: fixed tests without "Host" header.Andrey Zelenkov1-6/+23
2019-05-30Tests: adjusted skipping tests.Andrey Zelenkov1-20/+0
2019-05-30Tests: configure arrays with PUT tests.Andrey Zelenkov1-0/+22
2019-04-26Tests: more routing tests with arrays.Andrey Zelenkov1-0/+407
2019-04-22Tests: fixed naming.Andrey Zelenkov1-1/+1
2019-04-15Tests: more wildcard pattern tests for routing.Andrey Zelenkov1-0/+304
2019-04-09Tests: simplified module checking.Andrey Zelenkov1-2/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-5/+4
2019-03-26Tests: style.Andrey Zelenkov1-342/+648
2019-02-27Tests: routing.Andrey Zelenkov1-0/+458