예제 #1
0
 def _start_server(cls):
     cls.io_loop = ioloop.IOLoop.current()
     app = web.Application([(r".*", TestingApp)])
     cls.server, cls.port = run_tornado_app(
         app, cls.io_loop, cls.certs, cls.scheme, cls.host
     )
     cls.server_thread = run_loop_in_thread(cls.io_loop)
예제 #2
0
    def setup_class(cls):
        cls.io_loop = ioloop.IOLoop.current()

        app = web.Application([(r".*", TestingApp)])
        cls.http_server, cls.http_port = run_tornado_app(
            app, cls.io_loop, None, "http", cls.http_host
        )

        app = web.Application([(r".*", TestingApp)])
        cls.https_server, cls.https_port = run_tornado_app(
            app, cls.io_loop, cls.https_certs, "https", cls.http_host
        )

        app = web.Application([(r".*", ProxyHandler)])
        cls.proxy_server, cls.proxy_port = run_tornado_app(
            app, cls.io_loop, None, "http", cls.proxy_host
        )

        upstream_ca_certs = cls.https_certs.get("ca_certs", None)
        app = web.Application(
            [(r".*", ProxyHandler)], upstream_ca_certs=upstream_ca_certs
        )
        cls.https_proxy_server, cls.https_proxy_port = run_tornado_app(
            app, cls.io_loop, cls.https_certs, "https", cls.proxy_host
        )

        cls.server_thread = run_loop_in_thread(cls.io_loop)
예제 #3
0
    def setUpClass(cls):
        cls.io_loop = ioloop.IOLoop()

        app = web.Application([(r".*", TestingApp)])
        cls.http_server, cls.http_port = run_tornado_app(app, cls.io_loop, None, "http", cls.http_host)

        app = web.Application([(r".*", TestingApp)])
        cls.https_server, cls.https_port = run_tornado_app(app, cls.io_loop, cls.https_certs, "https", cls.http_host)

        app = web.Application([(r".*", ProxyHandler)])
        cls.proxy_server, cls.proxy_port = run_tornado_app(app, cls.io_loop, None, "http", cls.proxy_host)

        cls.server_thread = run_loop_in_thread(cls.io_loop)
예제 #4
0
    def setUpClass(cls):
        cls.io_loop = ioloop.IOLoop()

        app = web.Application([(r'.*', TestingApp)])
        cls.http_server, cls.http_port = run_tornado_app(
            app, cls.io_loop, None, 'http', cls.http_host)

        app = web.Application([(r'.*', TestingApp)])
        cls.https_server, cls.https_port = run_tornado_app(
            app, cls.io_loop, cls.https_certs, 'https', cls.http_host)

        app = web.Application([(r'.*', ProxyHandler)])
        cls.proxy_server, cls.proxy_port = run_tornado_app(
            app, cls.io_loop, None, 'http', cls.proxy_host)

        cls.server_thread = run_loop_in_thread(cls.io_loop)
예제 #5
0
    def setUpClass(cls):
        cls.io_loop = ioloop.IOLoop()

        app = wsgi.WSGIContainer(TestingApp())
        cls.http_server, cls.http_port = run_tornado_app(
            app, cls.io_loop, None, 'http', cls.http_host)

        app = wsgi.WSGIContainer(TestingApp())
        cls.https_server, cls.https_port = run_tornado_app(
            app, cls.io_loop, cls.https_certs, 'https', cls.http_host)

        app = web.Application([(r'.*', ProxyHandler)])
        cls.proxy_server, cls.proxy_port = run_tornado_app(
            app, cls.io_loop, None, 'http', cls.proxy_host)

        cls.server_thread = run_loop_in_thread(cls.io_loop)
예제 #6
0
 def _start_server(cls):
     cls.io_loop = ioloop.IOLoop()
     app = web.Application([(r".*", TestingApp)])
     cls.server, cls.port = run_tornado_app(app, cls.io_loop, cls.certs,
                                            cls.scheme, cls.host)
     cls.server_thread = run_loop_in_thread(cls.io_loop)
예제 #7
0
 def _start_server(cls):
     cls.io_loop = ioloop.IOLoop()
     app = wsgi.WSGIContainer(TestingApp())
     cls.server, cls.port = run_tornado_app(app, cls.io_loop, cls.certs,
                                            cls.scheme, cls.host)
     cls.server_thread = run_loop_in_thread(cls.io_loop)
예제 #8
0
 def _start_server(cls):
     cls.io_loop = ioloop.IOLoop()
     app = wsgi.WSGIContainer(TestingApp())
     cls.server, cls.port = run_tornado_app(app, cls.io_loop, cls.certs,
                                            cls.scheme, cls.host)
     cls.server_thread = run_loop_in_thread(cls.io_loop)