Esempio n. 1
0
 def test_bulk_activate(self):
     '''
     Test for activate 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_activate(["node1", "node2", "node3"],
                                             'loadbalancer1'))
Esempio n. 2
0
 def test_bulk_activate(self):
     '''
     Test for activate 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_activate(["node1", "node2", "node3"],
                                             'loadbalancer1'))
Esempio n. 3
0
def test_bulk_activate():
    """
    Test for activate all the given workers in the specific load balancer
    """
    with patch.object(modjk,
                      "_do_http",
                      return_value={"worker.result.type": "OK"}):
        assert modjk.bulk_activate(["node1", "node2", "node3"],
                                   "loadbalancer1")