Deleted Added
1import re
2import time
3import socket
4import unittest
5from unit.applications.lang.python import TestApplicationPython
6
7
8class TestProxy(TestApplicationPython):

--- 587 unchanged lines hidden (view full) ---

596 self.assertIn(
597 'error',
598 self.conf(
599 [{"action": {"proxy": 'http://[::7080'}}], 'routes'
600 ),
601 'proxy ipv6 invalid 4',
602 )
603
604 @unittest.skip('not yet')
605 def test_proxy_loop(self):
606 self.conf(
607 {
608 "listeners": {
609 "*:7080": {"pass": "routes"},
610 "*:7081": {"pass": "applications/mirror"},
611 "*:7082": {"pass": "routes"},
612 },
613 "routes": [{"action": {"proxy": "http://127.0.0.1:7082"}}],

--- 6 unchanged lines hidden (view full) ---

620 + "/python/mirror",
621 "module": "wsgi",
622 },
623 },
624 }
625 )
626
627 self.get_http10(no_recv=True)
628
629if __name__ == '__main__':
630 TestProxy.main()