Deleted
Added
test_routing.py (1875:6e77d607c7a3) | test_routing.py (1930:fb8b29aac7a1) |
---|---|
1# -*- coding: utf-8 -*- 2import pytest 3 4from unit.applications.proto import TestApplicationProto 5from unit.option import option 6 7 8class TestRouting(TestApplicationProto): --- 1737 unchanged lines hidden (view full) --- 1746 self.route_match_invalid({"source": "2001::/129"}) 1747 self.route_match_invalid({"source": "::FFFFF"}) 1748 self.route_match_invalid({"source": "[::1]:"}) 1749 self.route_match_invalid({"source": "[:::]:7080"}) 1750 self.route_match_invalid({"source": "*:"}) 1751 self.route_match_invalid({"source": "*:1-a"}) 1752 self.route_match_invalid({"source": "*:65536"}) 1753 | 1# -*- coding: utf-8 -*- 2import pytest 3 4from unit.applications.proto import TestApplicationProto 5from unit.option import option 6 7 8class TestRouting(TestApplicationProto): --- 1737 unchanged lines hidden (view full) --- 1746 self.route_match_invalid({"source": "2001::/129"}) 1747 self.route_match_invalid({"source": "::FFFFF"}) 1748 self.route_match_invalid({"source": "[::1]:"}) 1749 self.route_match_invalid({"source": "[:::]:7080"}) 1750 self.route_match_invalid({"source": "*:"}) 1751 self.route_match_invalid({"source": "*:1-a"}) 1752 self.route_match_invalid({"source": "*:65536"}) 1753 |
1754 def test_routes_match_source_none(self): 1755 self.route_match({"source": []}) 1756 assert self.get()['status'] == 404, 'source none' 1757 |
|
1754 def test_routes_match_destination(self): 1755 assert 'success' in self.conf( 1756 {"*:7080": {"pass": "routes"}, "*:7081": {"pass": "routes"}}, 1757 'listeners', 1758 ), 'listeners configure' 1759 1760 self.route_match({"destination": "*:7080"}) 1761 assert self.get()['status'] == 200, 'dest' --- 74 unchanged lines hidden --- | 1758 def test_routes_match_destination(self): 1759 assert 'success' in self.conf( 1760 {"*:7080": {"pass": "routes"}, "*:7081": {"pass": "routes"}}, 1761 'listeners', 1762 ), 'listeners configure' 1763 1764 self.route_match({"destination": "*:7080"}) 1765 assert self.get()['status'] == 200, 'dest' --- 74 unchanged lines hidden --- |