Пример #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()
Пример #2
0
 def test_launch_app(self):
     service.serve(self.service)
     self.assertNotEqual(0, self.service.port)
     service._launcher.stop()
Пример #3
0
 def test_launch_app(self):
     service.serve(self.service)
     self.assertNotEqual(0, self.service.port)
     service._launcher.stop()