Esempio n. 1
0
    def test_start_service(self):
        service = JunebugService(JunebugConfig({
            'host': '127.0.0.1',
            'port': 0,
        }))

        yield service.startService()
        server = service._port
        self.assertTrue(server.connected)

        yield service.stopService()
        self.assertFalse(server.connected)
Esempio n. 2
0
    def test_start_service(self):
        service = JunebugService(
            JunebugConfig({
                'host': '127.0.0.1',
                'port': 0,
            }))

        yield service.startService()
        server = service._port
        self.assertTrue(server.connected)

        yield service.stopService()
        self.assertFalse(server.connected)
Esempio n. 3
0
def start_server(config):
    '''Starts a new Junebug HTTP API server on the specified resource and
    port'''
    service = JunebugService(config)
    yield service.startService()
    returnValue(service)
Esempio n. 4
0
def start_server(config):
    '''Starts a new Junebug HTTP API server on the specified resource and
    port'''
    service = JunebugService(config)
    yield service.startService()
    returnValue(service)