Example #1
0
 def _test_circushttpd(self):
     fact = self.arbiter_factory
     arbiter = fact([], background=True, debug=True, httpd=True)
     self.arbiters.append(arbiter)
     yield arbiter.start()
     poll_for_callable(self.assertDictEqual,
                       arbiter.statuses, {'circushttpd': 'active'})
Example #2
0
 def test_circushttpd(self):
     fact = self.arbiter_factory
     arbiter = fact([], background=True, debug=True, httpd=True)
     self.arbiters.append(arbiter)
     yield arbiter.start()
     poll_for_callable(self.assertDictEqual,
                       arbiter.statuses, {'circushttpd': 'active'})
Example #3
0
 def test_circushttpd(self):
     arbiter = Arbiter([], DEFAULT_ENDPOINT_DEALER, DEFAULT_ENDPOINT_SUB,
                       loop=tornado.ioloop.IOLoop.instance(),
                       check_delay=-1, httpd=True, debug=True)
     self.arbiters.append(arbiter)
     try:
         yield arbiter.start()
         poll_for_callable(self.assertDictEqual,
                           arbiter.statuses, {'circushttpd': 'active'})
     finally:
         yield arbiter.stop()
Example #4
0
    def test_circushttpd(self):
        controller = "tcp://127.0.0.1:%d" % get_available_port()
        sub = "tcp://127.0.0.1:%d" % get_available_port()

        arbiter = Arbiter([], controller, sub, loop=get_ioloop(),
                          check_delay=-1, httpd=True, debug=True)
        self.arbiters.append(arbiter)
        try:
            yield arbiter.start()
            poll_for_callable(self.assertDictEqual,
                              arbiter.statuses, {'circushttpd': 'active'})
        finally:
            yield arbiter.stop()
Example #5
0
    def test_circushttpd(self):
        controller = "tcp://127.0.0.1:%d" % get_available_port()
        sub = "tcp://127.0.0.1:%d" % get_available_port()

        arbiter = Arbiter([], controller, sub, loop=get_ioloop(),
                          check_delay=-1, httpd=True, debug=True)
        self.arbiters.append(arbiter)
        try:
            yield arbiter.start()
            poll_for_callable(self.assertDictEqual,
                              arbiter.statuses, {'circushttpd': 'active'})
        finally:
            yield arbiter.stop()
Example #6
0
 def test_circushttpd(self):
     arbiter = Arbiter([],
                       DEFAULT_ENDPOINT_DEALER,
                       DEFAULT_ENDPOINT_SUB,
                       loop=tornado.ioloop.IOLoop.instance(),
                       check_delay=-1,
                       httpd=True,
                       debug=True)
     self.arbiters.append(arbiter)
     try:
         yield arbiter.start()
         poll_for_callable(self.assertDictEqual, arbiter.statuses,
                           {'circushttpd': 'active'})
     finally:
         yield arbiter.stop()