def setup_method(self): run_process(self.run_server, self.SERVER_PORT) waitforsocket(self.SERVER_PORT) assert 'success' in self.conf({ "listeners": { "*:7080": { "pass": "******" }, "*:7081": { "pass": "******" }, }, "routes": [{ "action": { "proxy": "http://127.0.0.1:7081" } }], "applications": { "mirror": { "type": "python", "processes": { "spare": 0 }, "path": option.test_dir + "/python/mirror", "working_directory": option.test_dir + "/python/mirror", "module": "wsgi", }, "custom_header": { "type": "python", "processes": { "spare": 0 }, "path": option.test_dir + "/python/custom_header", "working_directory": option.test_dir + "/python/custom_header", "module": "wsgi", }, "delayed": { "type": "python", "processes": { "spare": 0 }, "path": option.test_dir + "/python/delayed", "working_directory": option.test_dir + "/python/delayed", "module": "wsgi", }, }, }), 'proxy initial configuration'
def setup_method(self): run_process(self.run_server, self.SERVER_PORT, option.temp_dir) waitforsocket(self.SERVER_PORT) assert 'success' in self.conf({ "listeners": { "*:7080": { "pass": "******" }, }, "routes": [{ "action": { "proxy": "http://127.0.0.1:" + str(self.SERVER_PORT) } }], }), 'proxy initial configuration'