Exemplo n.º 1
0
def main():
    config.parse_args(sys.argv)
    logging.setup("rack")
    utils.monkey_patch()

    server = service.Service.create(binary="rack-resourceoperator", topic=CONF.resourceoperator_topic)
    service.serve(server)
    service.wait()
Exemplo n.º 2
0
 def test_launch_app(self):
     service.serve(self.service)
     self.assertNotEqual(0, self.service.port)
     service._launcher.stop()
Exemplo n.º 3
0
 def test_launch_app(self):
     service.serve(self.service)
     self.assertNotEqual(0, self.service.port)
     service._launcher.stop()