Ejemplo n.º 1
0
 def test_bulk_recover(self):
     '''
     Test for recover all the given workers in the specific load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.bulk_recover(["node1", "node2", "node3"],
                                            'loadbalancer1'))
Ejemplo n.º 2
0
def test_bulk_recover():
    """
    Test for recover all the given workers in the specific load balancer
    """
    with patch.object(modjk,
                      "_do_http",
                      return_value={"worker.result.type": "OK"}):
        assert modjk.bulk_recover(["node1", "node2", "node3"], "loadbalancer1")
Ejemplo n.º 3
0
 def test_bulk_recover(self):
     '''
     Test for recover all the given workers in the specific load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.bulk_recover(["node1", "node2", "node3"],
                                            'loadbalancer1'))