Esempio n. 1
0
def start_wsgi_server(step):
    world.server_proc = mp.Process(
        target=pywsgi.WSGIServer(('127.0.0.1', 8013), answer).serve_forever)
    world.vpc_proc = mp.Process(
        target=pywsgi.WSGIServer(('127.0.0.1', 80), answer).serve_forever)
    world.server_proc.start()

    assert lib.stop_service('apache2')

    world.vpc_proc.start()
Esempio n. 2
0
def start_wsgi_server(step):
    world.server_proc = mp.Process(
            target=pywsgi.WSGIServer(('127.0.0.1', 8013), answer).serve_forever)
    world.vpc_proc = mp.Process(
            target=pywsgi.WSGIServer(('127.0.0.1', 80), answer).serve_forever)
    world.server_proc.start()

    assert lib.stop_service('apache2')

    world.vpc_proc.start()
Esempio n. 3
0
def stop_service(step, name):
    assert lib.stop_service(name)
Esempio n. 4
0
def stop_service(step, name):
    assert lib.stop_service(name)
Esempio n. 5
0
def start_wsgi_server(step):
    assert lib.stop_service("apache2")
    world.server_proc = mp.Process(target=pywsgi.WSGIServer(("127.0.0.1", 8081), answer).serve_forever)
    world.server_proc.start()